Skip to content

Commit c4cc92c

Browse files
Quirin Schrolldlang-bot
authored andcommitted
Rename FunctionLiteralBody2 to FunctionLiteralBody
1 parent 47f6831 commit c4cc92c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

spec/expression.dd

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,8 @@ $(H3 $(LEGACY_LNAME2 slice_operations, slice_expressions, Slice Operations))
17291729
$(GRAMMAR
17301730
$(GNAME SliceOperation):
17311731
$(D [ ])
1732-
$(D [) $(GLINK Slice) $(D ,)$(OPT) $(D ])
1732+
$(D [) $(GLINK Slice) $(D ])
1733+
$(D [) $(GLINK Slice) $(D ,) $(D ])
17331734

17341735
$(GNAME Slice):
17351736
$(GLINK AssignExpression)
@@ -2271,9 +2272,9 @@ $(H3 $(LNAME2 function_literals, Function Literals))
22712272

22722273
$(GRAMMAR
22732274
$(GNAME FunctionLiteral):
2274-
$(D function) $(GLINK RefOrAutoRef)$(OPT) $(GLINK2 type, Type)$(OPT) $(GLINK ParameterWithAttributes)$(OPT) $(GLINK FunctionLiteralBody2)
2275-
$(D delegate) $(GLINK RefOrAutoRef)$(OPT) $(GLINK2 type, Type)$(OPT) $(GLINK ParameterWithMemberAttributes)$(OPT) $(GLINK FunctionLiteralBody2)
2276-
$(GLINK RefOrAutoRef)$(OPT) $(GLINK ParameterWithMemberAttributes) $(GLINK FunctionLiteralBody2)
2275+
$(D function) $(GLINK RefOrAutoRef)$(OPT) $(GLINK2 type, Type)$(OPT) $(GLINK ParameterWithAttributes)$(OPT) $(GLINK FunctionLiteralBody)
2276+
$(D delegate) $(GLINK RefOrAutoRef)$(OPT) $(GLINK2 type, Type)$(OPT) $(GLINK ParameterWithMemberAttributes)$(OPT) $(GLINK FunctionLiteralBody)
2277+
$(GLINK RefOrAutoRef)$(OPT) $(GLINK ParameterWithMemberAttributes) $(GLINK FunctionLiteralBody)
22772278
$(GLINK2 statement, BlockStatement)
22782279
$(IDENTIFIER) $(D =>) $(GLINK AssignExpression)
22792280

@@ -2283,7 +2284,7 @@ $(GNAME ParameterWithAttributes):
22832284
$(GNAME ParameterWithMemberAttributes):
22842285
$(GLINK2 function, Parameters) $(GLINK2 function, MemberFunctionAttributes)$(OPT)
22852286

2286-
$(GNAME FunctionLiteralBody2):
2287+
$(GNAME FunctionLiteralBody):
22872288
$(D =>) $(GLINK AssignExpression)
22882289
$(GLINK2 function, SpecifiedFunctionBody)
22892290

@@ -2329,7 +2330,7 @@ $(GNAME RefOrAutoRef):
23292330
}
23302331
-------------
23312332

2332-
$(P A delegate is necessary if the $(I FunctionLiteralBody2) accesses any non-static
2333+
$(P A delegate is necessary if the $(I FunctionLiteralBody) accesses any non-static
23332334
local variables in enclosing functions.)
23342335

23352336
-------------
@@ -2612,8 +2613,10 @@ $(GNAME AssertExpression):
26122613
$(D assert $(LPAREN)) $(GLINK AssertArguments) $(D $(RPAREN))
26132614

26142615
$(GNAME AssertArguments):
2615-
$(GLINK AssignExpression) $(D ,)$(OPT)
2616-
$(GLINK AssignExpression) $(D ,) $(GLINK AssignExpression) $(D ,)$(OPT)
2616+
$(GLINK AssignExpression)
2617+
$(GLINK AssignExpression) $(D ,)
2618+
$(GLINK AssignExpression) $(D ,) $(GLINK AssignExpression)
2619+
$(GLINK AssignExpression) $(D ,) $(GLINK AssignExpression) $(D ,)
26172620
)
26182621

26192622
$(P The first $(I AssignExpression) is evaluated and

0 commit comments

Comments
 (0)