We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
selectorOrMatch
1 parent 712d5bc commit 21969a2Copy full SHA for 21969a2
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -1269,9 +1269,7 @@ object Parsers {
1269
1270
/** Accept identifier or match clause acting as a selector on given tree `t` */
1271
def selectorOrMatch(t: Tree): Tree =
1272
- atSpan(startOffset(t), in.offset) {
1273
- if in.token == MATCH then matchClause(t) else Select(t, ident())
1274
- }
+ if in.token == MATCH then matchClause(t) else selector(t)
1275
1276
def selector(t: Tree): Tree =
1277
atSpan(startOffset(t), in.offset) { Select(t, ident()) }
0 commit comments