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
commit 232013c05b
Notes: sideshowbarker 2024-07-18 10:30:09 +09:00
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 {