Skip to content

Commit b28f9da

Browse files
committed
Rename QuoteUnpickler to TastyUnpickler
1 parent cc54d41 commit b28f9da

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

compiler/src/dotty/tools/dotc/quoted/PickledQuotes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ object PickledQuotes {
7979

8080
/** Unpickle TASTY bytes into it's tree */
8181
private def unpickle(bytes: Array[Byte], splices: Seq[Any])(implicit ctx: Context): Tree = {
82-
val unpickler = new QuoteUnpickler(bytes, splices)
82+
val unpickler = new dotty.tools.dotc.quoted.TastyUnpickler(bytes, splices)
8383
unpickler.enter(roots = Set(defn.RootPackage))
8484
val tree = unpickler.body.head
8585
if (pickling ne noPrinter) {

compiler/src/dotty/tools/dotc/quoted/QuoteUnpickler.scala renamed to compiler/src/dotty/tools/dotc/quoted/TastyUnpickler.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package dotty.tools.dotc.quoted
22

33
import dotty.tools.dotc.core.tasty._
4+
import dotty.tools.dotc.core.tasty.TastyUnpickler.NameTable
45

5-
object QuoteUnpickler {
6+
object TastyUnpickler {
67
class QuotedTreeSectionUnpickler(posUnpickler: Option[PositionUnpickler], splices: Seq[Any])
78
extends DottyUnpickler.TreeSectionUnpickler(posUnpickler) {
8-
override def unpickle(reader: TastyReader, nameAtRef: TastyUnpickler.NameTable) =
9+
override def unpickle(reader: TastyReader, nameAtRef: NameTable) =
910
new TreeUnpickler(reader, nameAtRef, posUnpickler, splices)
1011
}
1112
}
@@ -14,9 +15,9 @@ object QuoteUnpickler {
1415
* @param bytes the bytearray containing the Tasty file from which we unpickle
1516
* @param splices splices that will fill the holes in the quote
1617
*/
17-
class QuoteUnpickler(bytes: Array[Byte], splices: Seq[Any]) extends DottyUnpickler(bytes) {
18+
class TastyUnpickler(bytes: Array[Byte], splices: Seq[Any]) extends DottyUnpickler(bytes) {
1819
import DottyUnpickler._
19-
import QuoteUnpickler._
20+
import TastyUnpickler._
2021

2122
protected override def treeSectionUnpickler(posUnpicklerOpt: Option[PositionUnpickler]): TreeSectionUnpickler =
2223
new QuotedTreeSectionUnpickler(posUnpicklerOpt, splices)

0 commit comments

Comments
 (0)