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) {
693693 pickleParams
694694 pickleTpt(tpt)
695695 pickleUnlessEmpty(rhs)
696- pickleModifiers(tree.mods)
696+ pickleModifiers(tree.mods, tree.name.isTermName )
697697 }
698698 }
699699
700- def pickleModifiers (mods : untpd.Modifiers ): Unit = {
700+ def pickleModifiers (mods : untpd.Modifiers , isTerm : Boolean ): Unit = {
701701 import Flags ._
702702 var flags = mods.flags
703703 val privateWithin = mods.privateWithin
@@ -706,6 +706,7 @@ class TreePickler(pickler: TastyPickler) {
706706 pickleUntyped(untpd.Ident (privateWithin))
707707 flags = flags &~ Protected
708708 }
709+ pickleFlags(flags, isTerm)
709710 mods.annotations.foreach(pickleAnnotation)
710711 }
711712
@@ -851,7 +852,7 @@ class TreePickler(pickler: TastyPickler) {
851852 pickleTpt(tpt)
852853 pickleUntyped(rhs)
853854 pats.foreach(pickleUntyped)
854- pickleModifiers(mods)
855+ pickleModifiers(mods, isTerm = true )
855856 }
856857 case untpd.TypedSplice (splice) =>
857858 writeByte(TYPEDSPLICE )
You can’t perform that action at this time.
0 commit comments