mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 17:47:18 +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:
committed by
Andrew Kaster
parent
ed5ef4da6d
commit
326bac19d9
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user