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 {
13411341 try commaSeparated(argumentExpr)
13421342 finally openParens.change(LPAREN , - 1 )
13431343 }
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
13451346 else {
13461347 lookaheadTokens.clear()
13471348 accept(RPAREN )
@@ -1374,7 +1375,7 @@ object Parsers {
13741375 * start an expression or is an identifier and is followed by `:`,
13751376 * stop parsing the rest of the expression and return `EmptyTree`,
13761377 * 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.
13781379 */
13791380 def classConstrAnnotExpr () = {
13801381 saveLookahead()
You can’t perform that action at this time.
0 commit comments