Skip to content

Commit a608199

Browse files
committed
Fix rebase breakage
1 parent 15176d7 commit a608199

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compiler/src/dotty/tools/dotc/parsing/Tokens.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,6 @@ object Tokens extends TokensCommon {
242242

243243
final val paramIntroTokens: TokenSet = modifierTokens | identifierTokens | BitSet(AT, VAL, VAR, IMPLICIT)
244244

245-
/** Tokens that stop a lookahead scan search for a `<-`, `then`, or `do`.
246-
* Used for disambiguating between old and new syntax.
247-
*/
248-
final val stopScanTokens: BitSet = mustStartStatTokens |
249-
BitSet(IF, ELSE, WHILE, DO, FOR, YIELD, NEW, TRY, CATCH, FINALLY, THROW, RETURN, MATCH, SEMI, EOF)
250-
251245
/** Is token only legal as start of statement (eof also included)? */
252246
final val mustStartStatTokens: TokenSet = defIntroTokens | modifierTokens | BitSet(IMPORT, EXPORT, PACKAGE)
253247

@@ -257,6 +251,12 @@ object Tokens extends TokensCommon {
257251
final val canEndStatTokens: TokenSet = atomicExprTokens | BitSet(
258252
TYPE, RPAREN, RBRACE, RBRACKET)
259253

254+
/** Tokens that stop a lookahead scan search for a `<-`, `then`, or `do`.
255+
* Used for disambiguating between old and new syntax.
256+
*/
257+
final val stopScanTokens: BitSet = mustStartStatTokens |
258+
BitSet(IF, ELSE, WHILE, DO, FOR, YIELD, NEW, TRY, CATCH, FINALLY, THROW, RETURN, MATCH, SEMI, EOF)
259+
260260
final val numericLitTokens: TokenSet = BitSet(INTLIT, LONGLIT, FLOATLIT, DOUBLELIT)
261261

262262
final val scala3keywords = BitSet(ENUM, ERASED, GIVEN, IMPLIED)

0 commit comments

Comments
 (0)