Browse Source

LibCpp: Add public Parser::tokens() method

Itamar 3 years ago
parent
commit
4a8afd6b4e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Userland/Libraries/LibCpp/Parser.h

+ 1 - 0
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 {