summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCpp/Parser.h
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-07-03 11:47:41 +0300
committerAndreas Kling <kling@serenityos.org>2021-07-04 17:50:33 +0200
commit232013c05bd024efc62f23cf99bafe4f0bef1333 (patch)
treeab9bed449aed5ea8cc4f5f19584567ff86c0b5b5 /Userland/Libraries/LibCpp/Parser.h
parent9a31fb66730cff57a12407fab67aca3f8356c08c (diff)
downloadserenity-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.h1
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 {