mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
LibCpp: Parser no longer holds the program's source
After we moved to storing the text of each token in the token itself, we no longer have to store the source of the program in the Parser. This makes more sense because the parser should deal with tokens, not with raw source code.
This commit is contained in:
parent
8a102fe3ec
commit
5b22f6f45a
2 changed files with 6 additions and 12 deletions
|
@ -159,13 +159,11 @@ private:
|
|||
bool match_attribute_specification();
|
||||
void consume_attribute_specification();
|
||||
bool match_ellipsis();
|
||||
void initialize_program_tokens();
|
||||
void initialize_program_tokens(const StringView& program);
|
||||
void add_tokens_for_preprocessor(Token& replaced_token, Preprocessor::DefinedValue&);
|
||||
Vector<StringView> parse_type_qualifiers();
|
||||
|
||||
StringView m_program;
|
||||
Preprocessor::Definitions m_definitions;
|
||||
Vector<StringView> m_lines;
|
||||
String m_filename;
|
||||
Vector<Token> m_tokens;
|
||||
State m_state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue