@@ -1620,7 +1620,7 @@ object Parsers {
1620
1620
case _ => None
1621
1621
}
1622
1622
1623
- /** CaptureRef ::= { SimpleRef `.` } SimpleRef [`*`] [`.` rd]
1623
+ /** CaptureRef ::= { SimpleRef `.` } SimpleRef [`*`] [`.` rd] -- under captureChecking
1624
1624
* | [ { SimpleRef `.` } SimpleRef `.` ] id
1625
1625
*/
1626
1626
def captureRef (): Tree =
@@ -2292,7 +2292,7 @@ object Parsers {
2292
2292
atSpan(in.offset):
2293
2293
TypeBoundsTree (bound(SUPERTYPE ), bound(SUBTYPE ))
2294
2294
2295
- /** CaptureSetBounds ::= [`>:' CaptureSetOrRef ] [`<:' CaptureSetOrRef ] --- under captureChecking
2295
+ /** CaptureSetBounds ::= [`>:' CaptureSet ] [`<:' CaptureSet ] --- under captureChecking
2296
2296
*/
2297
2297
def captureSetBounds (): TypeBoundsTree =
2298
2298
atSpan(in.offset):
@@ -3973,13 +3973,13 @@ object Parsers {
3973
3973
() => atSpan(in.offset) { importSelection(simpleRef()) }
3974
3974
end importExpr
3975
3975
3976
- /** Def ::= val PatDef
3977
- * | var VarDef
3978
- * | def DefDef
3979
- * | type {nl} TypeDef
3980
- * | cap type {nl} CapDef -- under captureChecking
3976
+ /** Def ::= ‘ val’ PatDef
3977
+ * | ‘ var’ VarDef
3978
+ * | ‘ def’ DefDef
3979
+ * | ‘ type’ {nl} TypeDef
3980
+ * | ‘ cap’ ‘ type’ {nl} CapDef -- under captureChecking
3981
3981
* | TmplDef
3982
- * EnumCase ::= ` case' (id ClassConstr [` extends' ConstrApps]] | ids)
3982
+ * EnumCase ::= ‘ case’ (id ClassConstr [‘ extends’ ConstrApps]] | ids)
3983
3983
*/
3984
3984
def defOrDcl (start : Int , mods : Modifiers ): Tree =
3985
3985
in.token match {
@@ -4211,7 +4211,7 @@ object Parsers {
4211
4211
private def concreteCapsType (refs : List [Tree ]): Tree =
4212
4212
makeRetaining(Select (scalaDot(nme.caps), tpnme.CapSet ), refs, tpnme.retains)
4213
4213
4214
- /** CapDef ::= id CaptureSetAndCtxBounds [‘=’ CaptureSetOrRef ] -- under captureChecking
4214
+ /** CapDef ::= id CaptureSetAndCtxBounds [‘=’ CaptureSet ] -- under captureChecking
4215
4215
*/
4216
4216
def capDefOrDcl (start : Offset , mods : Modifiers ): Tree =
4217
4217
newLinesOpt()
0 commit comments