summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCpp/Parser.h
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2022-02-05 18:10:35 +0200
committerAndreas Kling <kling@serenityos.org>2022-02-09 00:51:31 +0100
commit4a8afd6b4edc8d99bcd1241a56ea787acdbd9c1c (patch)
tree0b7b16089fae576c26d9f448a10ddbccee5f5fdb /Userland/Libraries/LibCpp/Parser.h
parent4f1c77a0595b0656714811461846dcad66694ef2 (diff)
downloadserenity-4a8afd6b4edc8d99bcd1241a56ea787acdbd9c1c.zip
LibCpp: Add public Parser::tokens() method
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 ee74b28720..5ef0f36d08 100644
--- a/Userland/Libraries/LibCpp/Parser.h
+++ b/Userland/Libraries/LibCpp/Parser.h
@@ -32,6 +32,7 @@ public:
String text_of_node(const ASTNode&) const;
StringView text_of_token(const Cpp::Token& token) const;
void print_tokens() const;
+ Vector<Token> const& tokens() const { return m_tokens; }
const Vector<String>& errors() const { return m_errors; }
struct TodoEntry {