File tree 4 files changed +7
-7
lines changed
compiler/src/dotty/tools/dotc/parsing
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3627,7 +3627,7 @@ object Parsers {
3627
3627
finalizeDef(gdef, mods1, start)
3628
3628
}
3629
3629
3630
- /** Extension ::= ‘extension’ [DefTypeParamClause] ‘(’ DefParam ‘)’
3630
+ /** Extension ::= ‘extension’ [DefTypeParamClause] {UsingParamClause} ‘(’ DefParam ‘)’
3631
3631
* {UsingParamClause} ExtMethods
3632
3632
*/
3633
3633
def extension (): ExtMethods =
Original file line number Diff line number Diff line change @@ -414,8 +414,8 @@ EnumDef ::= id ClassConstr InheritClauses EnumBody
414
414
GivenDef ::= [GivenSig] (AnnotType [‘=’ Expr] | StructuralInstance)
415
415
GivenSig ::= [id] [DefTypeParamClause] {UsingParamClause} ‘:’ -- one of `id`, `DefParamClause`, `UsingParamClause` must be present
416
416
StructuralInstance ::= ConstrApp {‘with’ ConstrApp} [‘with’ TemplateBody]
417
- Extension ::= ‘extension’ [DefTypeParamClause] ‘(’ DefParam ‘)’
418
- {UsingParamClause} ExtMethods
417
+ Extension ::= ‘extension’ [DefTypeParamClause] {UsingParamClause}
418
+ ‘(’ DefParam ‘)’ {UsingParamClause} ExtMethods
419
419
ExtMethods ::= ExtMethod | [nl] <<< ExtMethod {semi ExtMethod} >>>
420
420
ExtMethod ::= {Annotation [nl]} {Modifier} ‘def’ DefDef
421
421
Template ::= InheritClauses [TemplateBody]
Original file line number Diff line number Diff line change @@ -288,8 +288,8 @@ to the [current syntax](../syntax.md).
288
288
BlockStat ::= ... | Extension
289
289
TemplateStat ::= ... | Extension
290
290
TopStat ::= ... | Extension
291
- Extension ::= ‘extension’ [DefTypeParamClause] ‘(’ DefParam ‘)’
292
- {UsingParamClause} ExtMethods
291
+ Extension ::= ‘extension’ [DefTypeParamClause] {UsingParamClause}
292
+ ‘(’ DefParam ‘)’ {UsingParamClause} ExtMethods
293
293
ExtMethods ::= ExtMethod | [nl] <<< ExtMethod {semi ExtMethod} >>>
294
294
ExtMethod ::= {Annotation [nl]} {Modifier} ‘def’ DefDef
295
295
```
Original file line number Diff line number Diff line change @@ -400,8 +400,8 @@ EnumDef ::= id ClassConstr InheritClauses EnumBody
400
400
GivenDef ::= [GivenSig] (AnnotType [‘=’ Expr] | StructuralInstance)
401
401
GivenSig ::= [id] [DefTypeParamClause] {UsingParamClause} ‘:’ -- one of `id`, `DefParamClause`, `UsingParamClause` must be present
402
402
StructuralInstance ::= ConstrApp {‘with’ ConstrApp} [‘with’ TemplateBody]
403
- Extension ::= ‘extension’ [DefTypeParamClause] ‘(’ DefParam ‘)’
404
- {UsingParamClause} ExtMethods
403
+ Extension ::= ‘extension’ [DefTypeParamClause] {UsingParamClause}
404
+ ‘(’ DefParam ‘)’ {UsingParamClause} ExtMethods
405
405
ExtMethods ::= ExtMethod | [nl] <<< ExtMethod {semi ExtMethod} >>>
406
406
ExtMethod ::= {Annotation [nl]} {Modifier} ‘def’ DefDef
407
407
Template ::= InheritClauses [TemplateBody]
You can’t perform that action at this time.
0 commit comments