@@ -298,7 +298,7 @@ HkTypeParam ::= {Annotation} [‘+’ | ‘-’] (Id[HkTypeParamClause] |
298298
299299ClsParamClauses ::= {ClsParamClause} [[nl] ‘(’ [‘implicit’] ClsParams ‘)’]
300300 | {ClsParamClause} {GivenClsParamClause}
301- ClsParamClause ::= ‘(’ ClsParams ‘)’
301+ ClsParamClause ::= [nl] ‘(’ ClsParams ‘)’
302302GivenClsParamClause::= ‘given’ (‘(’ ClsParams ‘)’ | GivenTypes)
303303ClsParams ::= ClsParam {‘,’ ClsParam}
304304ClsParam ::= {Annotation} ValDef(mods, id, tpe, expr) -- point of mods on val/var
@@ -308,7 +308,7 @@ Param ::= id ‘:’ ParamType [‘=’ Expr]
308308
309309DefParamClauses ::= {DefParamClause} [[nl] ‘(’ [‘implicit’] DefParams ‘)’]
310310 | {DefParamClause} {GivenParamClause}
311- DefParamClause ::= ‘(’ DefParams ‘)’
311+ DefParamClause ::= [nl] ‘(’ DefParams ‘)’
312312GivenParamClause ::= ‘given’ (‘(’ DefParams ‘)’ | GivenTypes)
313313DefParams ::= DefParam {‘,’ DefParam}
314314DefParam ::= {Annotation} [‘inline’] Param ValDef(mods, id, tpe, expr) -- point of mods at id.
@@ -356,7 +356,7 @@ Dcl ::= RefineDcl
356356 | ‘var’ VarDcl
357357ValDcl ::= ids ‘:’ Type PatDef(_, ids, tpe, EmptyTree)
358358VarDcl ::= ids ‘:’ Type PatDef(_, ids, tpe, EmptyTree)
359- DefDcl ::= DefSig [ ‘:’ Type] DefDef(_, name, tparams, vparamss, tpe, EmptyTree)
359+ DefDcl ::= DefSig ‘:’ Type DefDef(_, name, tparams, vparamss, tpe, EmptyTree)
360360DefSig ::= [‘(’ DefParam ‘)’ [nl]] id
361361 [DefTypeParamClause] DefParamClauses
362362TypeDcl ::= id [TypeParamClause] SubtypeBounds [‘=’ Type] TypeDefTree(_, name, tparams, bound
0 commit comments