File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/parsing
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1658,7 +1658,7 @@ object Parsers {
1658
1658
def fail (): Tree = {
1659
1659
syntaxError(
1660
1660
" λ requires a single argument of the form X => ... or (X, Y) => ..." ,
1661
- Span (t.span.start , in.lastOffset)
1661
+ Span (startOffset(t) , in.lastOffset)
1662
1662
)
1663
1663
AppliedTypeTree (applied, args)
1664
1664
}
@@ -2111,14 +2111,14 @@ object Parsers {
2111
2111
/** MatchClause ::= `match' `{' CaseClauses `}'
2112
2112
*/
2113
2113
def matchClause (t : Tree ): Match =
2114
- atSpan(t.span.start , in.skipToken()) {
2114
+ atSpan(startOffset(t) , in.skipToken()) {
2115
2115
Match (t, inBracesOrIndented(caseClauses(() => caseClause())))
2116
2116
}
2117
2117
2118
2118
/** `match' `{' TypeCaseClauses `}'
2119
2119
*/
2120
2120
def matchType (t : Tree ): MatchTypeTree =
2121
- atSpan(t.span.start , accept(MATCH )) {
2121
+ atSpan(startOffset(t) , accept(MATCH )) {
2122
2122
MatchTypeTree (EmptyTree , t, inBracesOrIndented(caseClauses(typeCaseClause)))
2123
2123
}
2124
2124
You can’t perform that action at this time.
0 commit comments