File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1253,15 +1253,15 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
12531253 def desugarIdent (tree : Ident )(implicit ctx : Context ): Tree = {
12541254 val qual = desugarIdentPrefix(tree)
12551255 if (qual.isEmpty) tree
1256- else qual.select(tree.symbol)
1256+ else qual.select(tree.symbol).withSpan(tree.span)
12571257 }
12581258
12591259 /** Recover identifier prefix (e.g. this) if it exists */
12601260 def desugarIdentPrefix (tree : Ident )(implicit ctx : Context ): Tree = tree.tpe match {
12611261 case TermRef (prefix : TermRef , _) =>
1262- ref(prefix)
1262+ ref(prefix).withSpan(tree.span)
12631263 case TermRef (prefix : ThisType , _) =>
1264- This (prefix.cls)
1264+ This (prefix.cls).withSpan(tree.span)
12651265 case _ =>
12661266 EmptyTree
12671267 }
You can’t perform that action at this time.
0 commit comments