diff options
author | Itamar <itamar8910@gmail.com> | 2021-07-03 11:47:41 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-04 17:50:33 +0200 |
commit | 232013c05bd024efc62f23cf99bafe4f0bef1333 (patch) | |
tree | ab9bed449aed5ea8cc4f5f19584567ff86c0b5b5 /Userland/Libraries/LibCpp/Parser.h | |
parent | 9a31fb66730cff57a12407fab67aca3f8356c08c (diff) | |
download | serenity-232013c05bd024efc62f23cf99bafe4f0bef1333.zip |
LibCpp: Add Parser::tokens_in_range(start, end)
This function returns the tokens that exist in the specified range.
Diffstat (limited to 'Userland/Libraries/LibCpp/Parser.h')
-rw-r--r-- | Userland/Libraries/LibCpp/Parser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCpp/Parser.h b/Userland/Libraries/LibCpp/Parser.h index 63b8e5278c..665d8f71ee 100644 --- a/Userland/Libraries/LibCpp/Parser.h +++ b/Userland/Libraries/LibCpp/Parser.h @@ -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 { |