소스 검색

LibCpp: Add public Parser::tokens() method

Itamar 3 년 전
부모
커밋
4a8afd6b4e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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 {