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 {
1253
1253
def desugarIdent (tree : Ident )(implicit ctx : Context ): Tree = {
1254
1254
val qual = desugarIdentPrefix(tree)
1255
1255
if (qual.isEmpty) tree
1256
- else qual.select(tree.symbol)
1256
+ else qual.select(tree.symbol).withSpan(tree.span)
1257
1257
}
1258
1258
1259
1259
/** Recover identifier prefix (e.g. this) if it exists */
1260
1260
def desugarIdentPrefix (tree : Ident )(implicit ctx : Context ): Tree = tree.tpe match {
1261
1261
case TermRef (prefix : TermRef , _) =>
1262
- ref(prefix)
1262
+ ref(prefix).withSpan(tree.span)
1263
1263
case TermRef (prefix : ThisType , _) =>
1264
- This (prefix.cls)
1264
+ This (prefix.cls).withSpan(tree.span)
1265
1265
case _ =>
1266
1266
EmptyTree
1267
1267
}
You can’t perform that action at this time.
0 commit comments