Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Commit 6ac00aa

Browse files
committed
Making more names in generated code fullyqualified
1 parent 549d94a commit 6ac00aa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

core/src/main/scala/pickling/Macros.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ trait UnpicklerMacros extends Macro with UnpickleMacros {
401401
import scala.pickling._
402402
import scala.pickling.ir._
403403
import scala.pickling.internal._
404-
def unpickle(tag: => FastTypeTag[_], reader: PReader): Any = $unpickleLogic
404+
def unpickle(tag: => scala.pickling.FastTypeTag[_], reader: scala.pickling.PReader): Any = $unpickleLogic
405405
}
406406
$unpicklerName
407407
"""
@@ -563,9 +563,9 @@ trait PickleMacros extends Macro {
563563
import scala.pickling._
564564
import scala.pickling.internal._
565565
val picklee: $tpe = $picklee
566-
GRL.lock()
566+
scala.pickling.internal.GRL.lock()
567567
$picklingLogic
568-
GRL.unlock()
568+
scala.pickling.internal.GRL.unlock()
569569
"""
570570
}
571571
}
@@ -628,12 +628,12 @@ trait UnpickleMacros extends Macro {
628628
})
629629
val runtimeDispatch = CaseDef(Ident(nme.WILDCARD), EmptyTree, q"""
630630
val tag = scala.pickling.FastTypeTag(typeString)
631-
Unpickler.genUnpickler($readerName.mirror, tag)
631+
scala.pickling.Unpickler.genUnpickler($readerName.mirror, tag)
632632
""")
633633

634634
q"""
635-
val customUnpickler = implicitly[Unpickler[$tpe]]
636-
if (customUnpickler.isInstanceOf[PicklerUnpicklerNotFound[_]] || customUnpickler.isInstanceOf[Generated]) {
635+
val customUnpickler = implicitly[scala.pickling.Unpickler[$tpe]]
636+
if (customUnpickler.isInstanceOf[scala.pickling.PicklerUnpicklerNotFound[_]] || customUnpickler.isInstanceOf[scala.pickling.Generated]) {
637637
${Match(q"typeString", compileTimeDispatch :+ refDispatch :+ runtimeDispatch)}
638638
} else {
639639
${Match(q"typeString", List(refDispatch) :+ customDispatch)}
@@ -643,7 +643,7 @@ trait UnpickleMacros extends Macro {
643643

644644
def abstractTypeDispatch =
645645
q"""
646-
val customUnpickler = implicitly[Unpickler[$tpe]]
646+
val customUnpickler = implicitly[scala.pickling.Unpickler[$tpe]]
647647
${Match(q"typeString", List(refDispatch) :+ customDispatch)}
648648
"""
649649

0 commit comments

Comments
 (0)