@@ -34,10 +34,10 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
3434 //
3535
3636 def unpickleExpr (repr : Unpickler .PickledQuote , args : Unpickler .PickledExprArgs ): scala.quoted.Expr [_] =
37- new scala.internal.quoted.TastyTreeExpr (PickledQuotes .unpickleExpr(repr, args))
37+ new scala.internal.quoted.TastyTreeExpr (PickledQuotes .unpickleExpr(repr, args), compilerId )
3838
3939 def unpickleType (repr : Unpickler .PickledQuote , args : Unpickler .PickledTypeArgs ): scala.quoted.Type [_] =
40- new scala.internal.quoted.TreeType (PickledQuotes .unpickleType(repr, args))
40+ new scala.internal.quoted.TreeType (PickledQuotes .unpickleType(repr, args), compilerId )
4141
4242 //
4343 // CONTEXT
@@ -1765,7 +1765,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
17651765 tpd.Closure (closureMethod, tss => etaExpand(new tpd.TreeOps (term).appliedToArgs(tss.head)))
17661766 case _ => term
17671767 }
1768- new scala.internal.quoted.TastyTreeExpr (etaExpand(self))
1768+ new scala.internal.quoted.TastyTreeExpr (etaExpand(self), compilerId )
17691769 }
17701770
17711771 /** Checked cast to a `quoted.Expr[U]` */
@@ -1786,7 +1786,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
17861786 /** Convert `Type` to an `quoted.Type[_]` */
17871787 def QuotedType_seal (self : Type ) given (ctx : Context ): scala.quoted.Type [_] = {
17881788 val dummySpan = ctx.owner.span // FIXME
1789- new scala.internal.quoted.TreeType (tpd.TypeTree (self).withSpan(dummySpan))
1789+ new scala.internal.quoted.TreeType (tpd.TypeTree (self).withSpan(dummySpan), compilerId )
17901790 }
17911791
17921792 //
@@ -1947,4 +1947,6 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
19471947 private def withDefaultPos [T <: Tree ](fn : given Context => T ) given (ctx : Context ): T =
19481948 (fn given ctx .withSource(rootPosition.source)).withSpan(rootPosition.span)
19491949
1950+ private def compilerId : Int = rootContext.outersIterator.toList.last.hashCode()
1951+
19501952}
0 commit comments