@@ -34,10 +34,10 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
34
34
//
35
35
36
36
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 )
38
38
39
39
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 )
41
41
42
42
//
43
43
// CONTEXT
@@ -1752,7 +1752,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
1752
1752
tpd.Closure (closureMethod, tss => etaExpand(new tpd.TreeOps (term).appliedToArgs(tss.head)))
1753
1753
case _ => term
1754
1754
}
1755
- new scala.internal.quoted.TastyTreeExpr (etaExpand(self))
1755
+ new scala.internal.quoted.TastyTreeExpr (etaExpand(self), compilerId )
1756
1756
}
1757
1757
1758
1758
/** Checked cast to a `quoted.Expr[U]` */
@@ -1773,7 +1773,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
1773
1773
/** Convert `Type` to an `quoted.Type[_]` */
1774
1774
def QuotedType_seal (self : Type ) given (ctx : Context ): scala.quoted.Type [_] = {
1775
1775
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 )
1777
1777
}
1778
1778
1779
1779
//
@@ -1934,4 +1934,6 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
1934
1934
private def withDefaultPos [T <: Tree ](fn : given Context => T ) given (ctx : Context ): T =
1935
1935
(fn given ctx .withSource(rootPosition.source)).withSpan(rootPosition.span)
1936
1936
1937
+ private def compilerId : Int = rootContext.outersIterator.toList.last.hashCode()
1938
+
1937
1939
}
0 commit comments