Skip to content

Commit 59a4167

Browse files
authored
Remove redundant grammar rules with semicolons (#3667)
FunctionBody already has MissingFunctionBody, which allows a single semicolon. ConstructorTemplate also used a colon instead of a semicolon.
1 parent 74c06ae commit 59a4167

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

spec/class.dd

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,6 @@ $(H2 $(LNAME2 static-constructor, Static Constructors))
760760

761761
$(GRAMMAR
762762
$(GNAME StaticConstructor):
763-
$(D static this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(D ;)
764763
$(D static this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(GLINK2 function, FunctionBody)
765764
)
766765

@@ -855,7 +854,6 @@ $(H2 $(LNAME2 static-destructor, Static Destructors))
855854

856855
$(GRAMMAR
857856
$(GNAME StaticDestructor):
858-
$(D static ~ this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(D ;)
859857
$(D static ~ this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(GLINK2 function, FunctionBody)
860858
)
861859

@@ -903,7 +901,6 @@ $(H2 $(LNAME2 shared_static_constructors, Shared Static Constructors))
903901

904902
$(GRAMMAR
905903
$(GNAME SharedStaticConstructor):
906-
$(D shared static this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(D ;)
907904
$(D shared static this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(GLINK2 function, FunctionBody)
908905
)
909906

@@ -915,7 +912,6 @@ $(H2 $(LNAME2 shared_static_destructors, Shared Static Destructors))
915912

916913
$(GRAMMAR
917914
$(GNAME SharedStaticDestructor):
918-
$(D shared static ~ this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(D ;)
919915
$(D shared static ~ this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(GLINK2 function, FunctionBody)
920916
)
921917

spec/struct.dd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,6 @@ $(H2 $(LEGACY_LNAME2 StructPostblit, struct-postblit, Struct Postblits))
13201320

13211321
$(GRAMMAR
13221322
$(GNAME Postblit):
1323-
$(D this $(LPAREN) this $(RPAREN)) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(D ;)
13241323
$(D this $(LPAREN) this $(RPAREN)) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(GLINK2 function, FunctionBody)
13251324
)
13261325

spec/template.dd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,6 @@ $(H2 $(LNAME2 template_ctors, Template Constructors))
14731473

14741474
$(GRAMMAR
14751475
$(GNAME ConstructorTemplate):
1476-
$(D this) $(GLINK TemplateParameters) $(GLINK2 function, Parameters) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(GLINK Constraint)$(OPT) $(D :)
14771476
$(D this) $(GLINK TemplateParameters) $(GLINK2 function, Parameters) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(GLINK Constraint)$(OPT) $(GLINK2 function, FunctionBody)
14781477
)
14791478

0 commit comments

Comments
 (0)