mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
JSSpecCompiler: Make nodes inherit from Statement or Expression
The distinction between them will become important during CFG building.
This commit is contained in:
parent
ed5ef4da6d
commit
326bac19d9
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/DanShaders
Commit: 326bac19d9
Pull-request: https://github.com/SerenityOS/serenity/pull/21005
Reviewed-by: https://github.com/ADKaster ✅
5 changed files with 37 additions and 25 deletions
|
@ -306,7 +306,7 @@ ParseErrorOr<Tree> TextParser::parse_return_statement()
|
|||
auto return_value = TRY(parse_expression());
|
||||
|
||||
rollback.disarm();
|
||||
return make_ref_counted<ReturnExpression>(return_value);
|
||||
return make_ref_counted<ReturnNode>(return_value);
|
||||
}
|
||||
|
||||
// assert: <condition>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue