Skip to content

Commit 2ad0877

Browse files
committed
Fix name of tastyContext in Definitions
1 parent 0672b6d commit 2ad0877

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ class Definitions {
683683
def Unpickler_unpickleType = ctx.requiredMethod("scala.runtime.quoted.Unpickler.unpickleType")
684684

685685
lazy val TastyTopLevelSpliceModule = ctx.requiredModule("scala.tasty.TopLevelSplice")
686-
lazy val TastyTopLevelSplice_compilationTopLevelSplice = TastyTopLevelSpliceModule.requiredMethod("tastyContext")
686+
lazy val TastyTopLevelSplice_tastyContext = TastyTopLevelSpliceModule.requiredMethod("i2TastyTopLevelSplice_tastyContext")
687687

688688
lazy val EqType = ctx.requiredClassRef("scala.Eq")
689689
def EqClass(implicit ctx: Context) = EqType.symbol.asClass

compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,9 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
516516
outer.enteredSyms.foreach(registerCapturer)
517517

518518
if (ctx.owner.owner.is(Macro)) {
519-
registerCapturer(defn.TastyTopLevelSplice_compilationTopLevelSplice)
519+
registerCapturer(defn.TastyTopLevelSplice_tastyContext)
520520
// Force a macro to have the context in first position
521-
forceCapture(defn.TastyTopLevelSplice_compilationTopLevelSplice)
521+
forceCapture(defn.TastyTopLevelSplice_tastyContext)
522522
// Force all parameters of the macro to be created in the definition order
523523
outer.enteredSyms.reverse.foreach(forceCapture)
524524
}
@@ -652,7 +652,7 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
652652

653653
private def isStage0Value(sym: Symbol)(implicit ctx: Context): Boolean =
654654
(sym.is(Inline) && sym.owner.is(Macro) && !defn.isFunctionType(sym.info)) ||
655-
sym == defn.TastyTopLevelSplice_compilationTopLevelSplice // intrinsic value at stage 0
655+
sym == defn.TastyTopLevelSplice_tastyContext // intrinsic value at stage 0
656656

657657
private def liftList(list: List[Tree], tpe: Type)(implicit ctx: Context): Tree = {
658658
list.foldRight[Tree](ref(defn.NilModule)) { (x, acc) =>

0 commit comments

Comments
 (0)