Skip to content

Commit 478f35b

Browse files
committed
Remove unnecessary withSpan
1 parent 8411fe2 commit 478f35b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3575,7 +3575,7 @@ class Typer extends Namer
35753575
case Select(qual, name) => untpd.Select(qual, name.toTypeName).withSpan(tree.span)
35763576
val bundle = untpd.Apply(untpd.Select(untpd.New(ref), nme.CONSTRUCTOR), untpd.Literal(Constant(null))).withSpan(call.span)
35773577
val bundle1 = typedExpr(bundle, defn.AnyType)
3578-
val bundleVal = SyntheticValDef(NameKinds.UniqueName.fresh("bundle".toTermName), bundle1).withSpan(call.span)
3578+
val bundleVal = SyntheticValDef(NameKinds.UniqueName.fresh("bundle".toTermName), bundle1)
35793579
tpd.Block(List(bundleVal), splice(tpd.ref(bundleVal.symbol))).withSpan(call.span)
35803580
}
35813581
}
@@ -3585,12 +3585,12 @@ class Typer extends Namer
35853585
typedIdent(call, defn.AnyType)
35863586
case untpd.Select(qual: untpd.RefTree, name) =>
35873587
typedPrefix(qual) { qual =>
3588-
val call2 = untpd.Select(untpd.TypedSplice(qual).withSpan(call.span), name).withSpan(call.span)
3588+
val call2 = untpd.Select(untpd.TypedSplice(qual), name).withSpan(call.span)
35893589
typedSelect(call2, defn.AnyType)
35903590
}
35913591
case untpd.TypeApply(untpd.Select(qual: untpd.RefTree, name), targs) =>
35923592
typedPrefix(qual) { qual =>
3593-
val call2= untpd.TypeApply(untpd.Select(untpd.TypedSplice(qual).withSpan(call.span), name), targs).withSpan(call.span)
3593+
val call2= untpd.TypeApply(untpd.Select(untpd.TypedSplice(qual), name), targs).withSpan(call.span)
35943594
typedTypeApply(call2, defn.AnyType)
35953595
}
35963596
case _ =>

0 commit comments

Comments
 (0)