Skip to content

Commit

Permalink
LibCpp: Add public Parser::tokens() method
Browse files Browse the repository at this point in the history
  • Loading branch information
itamar8910 authored and awesomekling committed Feb 8, 2022
1 parent 4f1c77a commit 4a8afd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Userland/Libraries/LibCpp/Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Parser final {
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 {
Expand Down

0 comments on commit 4a8afd6

Please sign in to comment.