File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/core/tasty Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -693,11 +693,11 @@ class TreePickler(pickler: TastyPickler) {
693
693
pickleParams
694
694
pickleTpt(tpt)
695
695
pickleUnlessEmpty(rhs)
696
- pickleModifiers(tree.mods)
696
+ pickleModifiers(tree.mods, tree.name.isTermName )
697
697
}
698
698
}
699
699
700
- def pickleModifiers (mods : untpd.Modifiers ): Unit = {
700
+ def pickleModifiers (mods : untpd.Modifiers , isTerm : Boolean ): Unit = {
701
701
import Flags ._
702
702
var flags = mods.flags
703
703
val privateWithin = mods.privateWithin
@@ -706,6 +706,7 @@ class TreePickler(pickler: TastyPickler) {
706
706
pickleUntyped(untpd.Ident (privateWithin))
707
707
flags = flags &~ Protected
708
708
}
709
+ pickleFlags(flags, isTerm)
709
710
mods.annotations.foreach(pickleAnnotation)
710
711
}
711
712
@@ -851,7 +852,7 @@ class TreePickler(pickler: TastyPickler) {
851
852
pickleTpt(tpt)
852
853
pickleUntyped(rhs)
853
854
pats.foreach(pickleUntyped)
854
- pickleModifiers(mods)
855
+ pickleModifiers(mods, isTerm = true )
855
856
}
856
857
case untpd.TypedSplice (splice) =>
857
858
writeByte(TYPEDSPLICE )
You can’t perform that action at this time.
0 commit comments