Skip to content

Commit 21969a2

Browse files
committed
chore: refactor selectorOrMatch
1 parent 712d5bc commit 21969a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,9 +1269,7 @@ object Parsers {
12691269

12701270
/** Accept identifier or match clause acting as a selector on given tree `t` */
12711271
def selectorOrMatch(t: Tree): Tree =
1272-
atSpan(startOffset(t), in.offset) {
1273-
if in.token == MATCH then matchClause(t) else Select(t, ident())
1274-
}
1272+
if in.token == MATCH then matchClause(t) else selector(t)
12751273

12761274
def selector(t: Tree): Tree =
12771275
atSpan(startOffset(t), in.offset) { Select(t, ident()) }

0 commit comments

Comments
 (0)