|
15 | 15 | # typealias-name generic-parameter-clause?
|
16 | 16 | # type-assignment
|
17 | 17 | # typealias-name -> identifier
|
18 |
| - Node('TypealiasDecl', kind='Decl', |
| 18 | + Node('TypealiasDecl', kind='Decl', traits=['IdentifiedDeclSyntax'], |
19 | 19 | children=[
|
20 | 20 | Child('Attributes', kind='AttributeList',
|
21 | 21 | is_optional=True),
|
|
36 | 36 | # inheritance-clause? type-assignment?
|
37 | 37 | # generic-where-clause?
|
38 | 38 | # associatedtype-name -> identifier
|
39 |
| - Node('AssociatedtypeDecl', kind='Decl', |
| 39 | + Node('AssociatedtypeDecl', kind='Decl', traits=['IdentifiedDeclSyntax'], |
40 | 40 | children=[
|
41 | 41 | Child('Attributes', kind='AttributeList',
|
42 | 42 | is_optional=True),
|
|
157 | 157 | # generic-where-clause?
|
158 | 158 | # '{' class-members '}'
|
159 | 159 | # class-name -> identifier
|
160 |
| - Node('ClassDecl', kind='Decl', traits=['DeclGroupSyntax'], |
| 160 | + Node('ClassDecl', kind='Decl', |
| 161 | + traits=['DeclGroupSyntax', 'IdentifiedDeclSyntax'], |
161 | 162 | children=[
|
162 | 163 | Child('Attributes', kind='AttributeList',
|
163 | 164 | is_optional=True),
|
|
181 | 182 | # generic-where-clause?
|
182 | 183 | # '{' struct-members '}'
|
183 | 184 | # struct-name -> identifier
|
184 |
| - Node('StructDecl', kind='Decl', traits=['DeclGroupSyntax'], |
| 185 | + Node('StructDecl', kind='Decl', |
| 186 | + traits=['DeclGroupSyntax', 'IdentifiedDeclSyntax'], |
185 | 187 | children=[
|
186 | 188 | Child('Attributes', kind='AttributeList',
|
187 | 189 | is_optional=True),
|
|
198 | 200 | Child('Members', kind='MemberDeclBlock'),
|
199 | 201 | ]),
|
200 | 202 |
|
201 |
| - Node('ProtocolDecl', kind='Decl', traits=['DeclGroupSyntax'], |
| 203 | + Node('ProtocolDecl', kind='Decl', |
| 204 | + traits=['DeclGroupSyntax', 'IdentifiedDeclSyntax'], |
202 | 205 | children=[
|
203 | 206 | Child('Attributes', kind='AttributeList',
|
204 | 207 | is_optional=True),
|
|
312 | 315 | element='Syntax',
|
313 | 316 | element_name='Modifier'),
|
314 | 317 |
|
315 |
| - Node('FunctionDecl', kind='Decl', |
| 318 | + Node('FunctionDecl', kind='Decl', traits=['IdentifiedDeclSyntax'], |
316 | 319 | children=[
|
317 | 320 | Child('Attributes', kind='AttributeList',
|
318 | 321 | is_optional=True),
|
|
0 commit comments