Skip to content

Commit a2e16fa

Browse files
committed
Move AggregateDeclaration to declaration.dd
1 parent 016f5fb commit a2e16fa

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

spec/declaration.dd

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,22 @@ $(GNAME Declaration):
1010
$(GLINK VarDeclarations)
1111
$(GLINK AliasDeclaration)
1212
$(GLINK AliasAssign)
13-
$(GLINK2 struct, AggregateDeclaration)
13+
$(GLINK AggregateDeclaration)
1414
$(GLINK2 enum, EnumDeclaration)
1515
$(GLINK2 module, ImportDeclaration)
1616
$(GLINK2 version, ConditionalDeclaration)
1717
$(GLINK2 version, StaticForeachDeclaration)
1818
$(GLINK2 version, StaticAssert)
1919
)
2020

21+
$(GRAMMAR
22+
$(GNAME AggregateDeclaration):
23+
$(GLINK2 class, ClassDeclaration)
24+
$(GLINK2 interface, InterfaceDeclaration)
25+
$(GLINK2 struct, StructDeclaration)
26+
$(GLINK2 struct, UnionDeclaration)
27+
)
28+
2129
$(GRAMMAR
2230
$(GNAME VarDeclarations):
2331
$(GLINK StorageClasses)$(OPT) $(GLINK2 type, BasicType) $(GLINK Declarators) $(D ;)

spec/struct.dd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ $(H2 $(LNAME2 intro, Introduction))
1212
)
1313

1414
$(GRAMMAR
15-
$(GNAME AggregateDeclaration):
16-
$(GLINK2 class, ClassDeclaration)
17-
$(GLINK2 interface, InterfaceDeclaration)
18-
$(GLINK StructDeclaration)
19-
$(GLINK UnionDeclaration)
20-
2115
$(GNAME StructDeclaration):
2216
$(D struct) $(GLINK_LEX Identifier) $(D ;)
2317
$(D struct) $(GLINK_LEX Identifier) $(GLINK AggregateBody)

0 commit comments

Comments
 (0)