mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
lambda body: expression -> statement by adding return
This commit is contained in:
parent
ea85f4a396
commit
d71a5f83f2
@ -982,7 +982,7 @@ implicit_anonymous_function_parameter_list:
|
||||
implicit_anonymous_function_parameter:
|
||||
identifier;
|
||||
anonymous_function_body:
|
||||
expression -> OPEN_BRACE[$expression.tree.Token, "{"] expression CLOSE_BRACE[$expression.tree.Token, "}"]
|
||||
expression -> OPEN_BRACE[$expression.tree.Token, "{"] ^(RETURN[$expression.tree.Token, "return"] expression) CLOSE_BRACE[$expression.tree.Token, "}"]
|
||||
| block ;
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user