mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibCpp: Store filename in ASTNodes
As part of the position information, we now also store the filename the ASTNode belongs to.
This commit is contained in:
parent
c4139be461
commit
d3ff82ba80
5 changed files with 86 additions and 73 deletions
|
@ -48,7 +48,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
auto content = file->read_all();
|
||||
StringView content_view(content);
|
||||
::Cpp::Parser parser(content_view);
|
||||
::Cpp::Parser parser(content_view, path);
|
||||
if (tokens_mode) {
|
||||
parser.print_tokens();
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue