File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
src/dotty/tools/dotc/core/tasty Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -185,16 +185,12 @@ class TreePickler(pickler: TastyPickler) {
185
185
pickleNameAndSig(tpe.name, tpe.signature); pickleType(tpe.prefix)
186
186
}
187
187
case tpe : NamedType =>
188
- tpe match {
189
- case _ =>
190
- if (isLocallyDefined(tpe.symbol)) {
191
- writeByte(if (tpe.isType) TYPEREFsymbol else TERMREFsymbol )
192
- pickleSymRef(tpe.symbol); pickleType(tpe.prefix)
193
- }
194
- else {
195
- writeByte(if (tpe.isType) TYPEREF else TERMREF )
196
- pickleName(tpe.name); pickleType(tpe.prefix)
197
- }
188
+ if (isLocallyDefined(tpe.symbol)) {
189
+ writeByte(if (tpe.isType) TYPEREFsymbol else TERMREFsymbol )
190
+ pickleSymRef(tpe.symbol); pickleType(tpe.prefix)
191
+ } else {
192
+ writeByte(if (tpe.isType) TYPEREF else TERMREF )
193
+ pickleName(tpe.name); pickleType(tpe.prefix)
198
194
}
199
195
case tpe : ThisType =>
200
196
if (tpe.cls.is(Flags .Package ) && ! tpe.cls.isEffectiveRoot)
You can’t perform that action at this time.
0 commit comments