@@ -1127,13 +1127,13 @@ topLevelDeclaration ::= classDeclaration
1127
1127
| extensionDeclaration
1128
1128
| enumType
1129
1129
| typeAlias
1130
- | 'external' functionSignature ';'
1131
- | 'external' getterSignature ';'
1132
- | 'external' setterSignature ';'
1133
- | 'external' finalVarOrType identifierList ';'
1134
- | 'augment'? functionSignature functionBody
1135
- | 'augment'? getterSignature functionBody
1136
- | 'augment'? setterSignature functionBody
1130
+ | 'augment'? ' external' functionSignature ';'
1131
+ | 'augment'? ' external' getterSignature ';'
1132
+ | 'augment'? ' external' setterSignature ';'
1133
+ | 'augment'? ' external' finalVarOrType identifierList ';'
1134
+ | 'augment'? functionSignature ( functionBody | ';')
1135
+ | 'augment'? getterSignature ( functionBody | ';')
1136
+ | 'augment'? setterSignature ( functionBody | ';')
1137
1137
| 'augment'? ('final' | 'const') type? initializedIdentifierList ';'
1138
1138
| 'augment'? 'late' 'final' type? initializedIdentifierList ';'
1139
1139
| 'augment'? 'late'? varOrType initializedIdentifierList ';'
@@ -1172,7 +1172,7 @@ memberedDeclarationBody ::= '{' memberDeclarations '}'
1172
1172
1173
1173
memberDeclarations ::= (metadata memberDeclaration)*
1174
1174
1175
- memberDeclaration ::= declaration ';'
1175
+ memberDeclaration ::= 'augment'? declaration ';'
1176
1176
| 'augment'? methodSignature functionBody
1177
1177
1178
1178
enumEntry ::= metadata 'augment'? identifier argumentPart?
@@ -1188,17 +1188,17 @@ declaration ::= 'external'? factoryConstructorSignature
1188
1188
| 'external' ('static'? finalVarOrType | 'covariant' varOrType) identifierList
1189
1189
| 'external'? operatorSignature
1190
1190
| 'abstract' (finalVarOrType | 'covariant' varOrType) identifierList
1191
- | 'augment'? ' static' 'const' type? initializedIdentifierList
1192
- | 'augment'? ' static' 'final' type? initializedIdentifierList
1193
- | 'augment'? ' static' 'late' 'final' type? initializedIdentifierList
1194
- | 'augment'? ' static' 'late'? varOrType initializedIdentifierList
1195
- | 'augment'? ' covariant' 'late' 'final' type? identifierList
1196
- | 'augment'? ' covariant' 'late'? varOrType initializedIdentifierList
1197
- | 'augment'? ' late'? 'final' type? initializedIdentifierList
1198
- | 'augment'? ' late'? varOrType initializedIdentifierList
1199
- | 'augment'? redirectingFactoryConstructorSignature
1200
- | 'augment'? constantConstructorSignature (redirection | initializers)?
1201
- | 'augment'? constructorSignature (redirection | initializers)?
1191
+ | 'static' 'const' type? initializedIdentifierList
1192
+ | 'static' 'final' type? initializedIdentifierList
1193
+ | 'static' 'late' 'final' type? initializedIdentifierList
1194
+ | 'static' 'late'? varOrType initializedIdentifierList
1195
+ | 'covariant' 'late' 'final' type? identifierList
1196
+ | 'covariant' 'late'? varOrType initializedIdentifierList
1197
+ | 'late'? 'final' type? initializedIdentifierList
1198
+ | 'late'? varOrType initializedIdentifierList
1199
+ | redirectingFactoryConstructorSignature
1200
+ | constantConstructorSignature (redirection | initializers)?
1201
+ | constructorSignature (redirection | initializers)?
1202
1202
```
1203
1203
1204
1204
** TODO: Define the grammar for the various ` augmented ` expressions.**
0 commit comments