mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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
Notes:
sideshowbarker
2024-07-18 22:06:40 +09:00
Author: https://github.com/itamar8910
Commit: d3ff82ba80
Pull-request: https://github.com/SerenityOS/serenity/pull/5424
Reviewed-by: https://github.com/awesomekling
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