File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
compiler/src/dotty/tools/dotc/core/quoted Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,11 @@ object PickledQuotes {
81
81
val unpickled = unpickle(tastyBytes, args, isType = true )(ctx.addMode(Mode .ReadPositions ))
82
82
val tpt = unpickled match {
83
83
case Block (aliases, tpt) =>
84
- // `@quoteTypeTag type` aliasses are not required after unpickling
84
+ // `@quoteTypeTag type` aliases are not required after unpickling.
85
+ // Type definitions are placeholders for type holes in the pickled quote, at this point
86
+ // those holes have been filled. As we already dealias al references to them in `dealiasTypeTags`
87
+ // there is no need to keep their definitions in the tree. As artifacts of quote reification
88
+ // they also do not have a meaningful position in the source.
85
89
val aliases1 = aliases.filter(! _.symbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot ))
86
90
seq(aliases1, tpt)
87
91
case tpt => tpt
You can’t perform that action at this time.
0 commit comments