mirror of
https://github.com/RGBCube/serenity
synced 2025-06-30 10:32:17 +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
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