1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:37:45 +00:00

LibCpp: Add Parser::tokens_in_range(start, end)

This function returns the tokens that exist in the specified range.
This commit is contained in:
Itamar 2021-07-03 11:47:41 +03:00 committed by Andreas Kling
parent 9a31fb6673
commit 232013c05b
3 changed files with 15 additions and 5 deletions

View file

@ -49,6 +49,7 @@ public:
Preprocessor::DefinedValue preprocessor_value;
};
const Vector<TokenAndPreprocessorDefinition>& replaced_preprocessor_tokens() const { return m_replaced_preprocessor_tokens; }
Vector<Token> tokens_in_range(Position start, Position end) const;
private:
enum class DeclarationType {