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