Skip to content

Commit bd066e1

Browse files
committed
Address review comments, adjust spans
1 parent 478f35b commit bd066e1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/core/StdNames.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ object StdNames {
425425
val assume_ : N = "assume"
426426
val box: N = "box"
427427
val build : N = "build"
428+
val bundle: N = "bundle"
428429
val bytes: N = "bytes"
429430
val canEqual_ : N = "canEqual"
430431
val cbnArg: N = "<cbn-arg>"

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

Lines changed: 2 additions & 2 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)
3578+
val bundleVal = SyntheticValDef(NameKinds.UniqueName.fresh(nme.bundle), bundle1).withSpan(call.span)
35793579
tpd.Block(List(bundleVal), splice(tpd.ref(bundleVal.symbol))).withSpan(call.span)
35803580
}
35813581
}
@@ -3590,7 +3590,7 @@ class Typer extends Namer
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), 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)