File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -526,16 +526,8 @@ object Parsers {
526
526
}
527
527
528
528
/** Accept identifier and return Ident with its name as a term name. */
529
- def termIdent (): Ident = {
530
- val start = in.offset
531
- val id = makeIdent(in.token, ident())
532
- if (id.name != nme.ERROR ) {
533
- atPos(start)(id)
534
- } else {
535
- // error identifiers don't consume any characters, so atPos(start)(id) wouldn't set a position.
536
- // Some testcases would then fail in Positioned.checkPos. Set a position anyway!
537
- atPos(start, start, in.lastOffset)(id)
538
- }
529
+ def termIdent (): Ident = atPos(in.offset) {
530
+ makeIdent(in.token, ident())
539
531
}
540
532
541
533
/** Accept identifier and return Ident with its name as a type name. */
You can’t perform that action at this time.
0 commit comments