@@ -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
@@ -1752,7 +1752,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
17521752 tpd.Closure (closureMethod, tss => etaExpand(new tpd.TreeOps (term).appliedToArgs(tss.head)))
17531753 case _ => term
17541754 }
1755- new scala.internal.quoted.TastyTreeExpr (etaExpand(self))
1755+ new scala.internal.quoted.TastyTreeExpr (etaExpand(self), compilerId )
17561756 }
17571757
17581758 /** Checked cast to a `quoted.Expr[U]` */
@@ -1773,7 +1773,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
17731773 /** Convert `Type` to an `quoted.Type[_]` */
17741774 def QuotedType_seal (self : Type ) given (ctx : Context ): scala.quoted.Type [_] = {
17751775 val dummySpan = ctx.owner.span // FIXME
1776- new scala.internal.quoted.TreeType (tpd.TypeTree (self).withSpan(dummySpan))
1776+ new scala.internal.quoted.TreeType (tpd.TypeTree (self).withSpan(dummySpan), compilerId )
17771777 }
17781778
17791779 //
@@ -1934,4 +1934,6 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
19341934 private def withDefaultPos [T <: Tree ](fn : given Context => T ) given (ctx : Context ): T =
19351935 (fn given ctx .withSource(rootPosition.source)).withSpan(rootPosition.span)
19361936
1937+ private def compilerId : Int = rootContext.outersIterator.toList.last.hashCode()
1938+
19371939}
0 commit comments