File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1341,7 +1341,8 @@ object Parsers {
1341
1341
try commaSeparated(argumentExpr)
1342
1342
finally openParens.change(LPAREN , - 1 )
1343
1343
}
1344
- if (args == ParamNotArg :: Nil ) in.adjustSepRegions(RPAREN ) // simulate `)` without requiring it
1344
+ if (args == ParamNotArg :: Nil )
1345
+ in.adjustSepRegions(RPAREN ) // simulate `)` without requiring it
1345
1346
else {
1346
1347
lookaheadTokens.clear()
1347
1348
accept(RPAREN )
@@ -1374,7 +1375,7 @@ object Parsers {
1374
1375
* start an expression or is an identifier and is followed by `:`,
1375
1376
* stop parsing the rest of the expression and return `EmptyTree`,
1376
1377
* indicating that we should re-parse the expression as a parameter clause.
1377
- * Otherwise clear the lookahead buffer and parse as normal.
1378
+ * Otherwise parse as normal.
1378
1379
*/
1379
1380
def classConstrAnnotExpr () = {
1380
1381
saveLookahead()
You can’t perform that action at this time.
0 commit comments