Skip to content

Commit 2974ab2

Browse files
committed
Rename Typelessclause to something easier to understand
1 parent f0c050e commit 2974ab2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/_docs/internals/syntax.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ DefParamClauses ::= DefParamClause { DefParamClause } -- and two DefTypeParam
387387
DefParamClause ::= DefTypeParamClause
388388
| DefTermParamClause
389389
| UsingParamClause
390-
TypelessClauses ::= TypelessClause {TypelessClause}
391-
TypelessClause ::= DefTermParamClause
390+
ConstrParamClauses::= ConstrParamClause {ConstrParamClause}
391+
ConstrParamClause ::= DefTermParamClause
392392
| UsingParamClause
393393
DefTermParamClause::= [nl] ‘(’ [DefTermParams] ‘)’
394394
UsingParamClause ::= [nl] ‘(’ ‘using’ (DefTermParams | FunArgTypes) ‘)’
@@ -459,7 +459,7 @@ Def ::= ‘val’ PatDef
459459
PatDef ::= ids [‘:’ Type] [‘=’ Expr]
460460
| Pattern2 [‘:’ Type] [‘=’ Expr] PatDef(_, pats, tpe?, expr)
461461
DefDef ::= DefSig [‘:’ Type] [‘=’ Expr] DefDef(_, name, paramss, tpe, expr)
462-
| ‘this’ TypelessClauses [DefImplicitClause] ‘=’ ConstrExpr DefDef(_, <init>, vparamss, EmptyTree, expr | Block)
462+
| ‘this’ ConstrParamClauses [DefImplicitClause] ‘=’ ConstrExpr DefDef(_, <init>, vparamss, EmptyTree, expr | Block)
463463
DefSig ::= id [DefParamClauses] [DefImplicitClause]
464464
TypeDef ::= id [HkTypeParamClause] {FunParamClause} TypeAndCtxBounds TypeDefTree(_, name, tparams, bound
465465
[‘=’ Type]

docs/_docs/reference/syntax.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ DefParamClauses ::= DefParamClause { DefParamClause } -- and two DefTypeParam
363363
DefParamClause ::= DefTypeParamClause
364364
| DefTermParamClause
365365
| UsingParamClause
366-
TypelessClauses ::= TypelessClause {TypelessClause}
367-
TypelessClause ::= DefTermParamClause
366+
ConstrParamClauses::= ConstrParamClause {ConstrParamClause}
367+
ConstrParamClause ::= DefTermParamClause
368368
| UsingParamClause
369369
370370
DefTermParamClause::= [nl] ‘(’ [DefTermParams] ‘)’
@@ -433,7 +433,7 @@ Def ::= ‘val’ PatDef
433433
PatDef ::= ids [‘:’ Type] [‘=’ Expr]
434434
| Pattern2 [‘:’ Type] [‘=’ Expr] PatDef(_, pats, tpe?, expr)
435435
DefDef ::= DefSig [‘:’ Type] [‘=’ Expr] DefDef(_, name, paramss, tpe, expr)
436-
| ‘this’ TypelessClauses [DefImplicitClause] ‘=’ ConstrExpr DefDef(_, <init>, vparamss, EmptyTree, expr | Block)
436+
| ‘this’ ConstrParamClauses [DefImplicitClause] ‘=’ ConstrExpr DefDef(_, <init>, vparamss, EmptyTree, expr | Block)
437437
DefSig ::= id [DefParamClauses] [DefImplicitClause]
438438
TypeDef ::= id [HkTypeParamClause] {FunParamClause}TypeBounds TypeDefTree(_, name, tparams, bound
439439
[‘=’ Type]

0 commit comments

Comments
 (0)