@@ -340,6 +340,8 @@ object Flags {
340340 /** An unpickled Scala 2.x class */
341341 final val Scala2x : FlagSet = typeFlag(26 , " <scala-2.x>" )
342342
343+ final val Scala2xTrait : FlagSet = Scala2x | Trait
344+
343345 final val SuperAccessorOrScala2x : FlagSet = Scala2x .toCommonFlags
344346
345347 /** A method that has default params */
@@ -413,11 +415,6 @@ object Flags {
413415 /** Symbol is a self name */
414416 final val SelfName : FlagSet = termFlag(54 , " <selfname>" )
415417
416- /** Symbol is an implementation class of a Scala2 trait */
417- final val ImplClass : FlagSet = typeFlag(54 , " <implclass>" )
418-
419- final val SelfNameOrImplClass : FlagSet = SelfName .toCommonFlags
420-
421418 /** An existentially bound symbol (Scala 2.x only) */
422419 final val Scala2ExistentialCommon : FlagSet = commonFlag(55 , " <existential>" )
423420 final val Scala2Existential : FlagSet = Scala2ExistentialCommon .toTypeFlags
@@ -428,14 +425,11 @@ object Flags {
428425 /** A module variable (Scala 2.x only) */
429426 final val Scala2ModuleVar : FlagSet = termFlag(57 , " <modulevar>" )
430427
431- /** A Scala 2.12 trait that has been augmented with static members */
432- final val Scala_2_12_Augmented : FlagSet = typeFlag(57 , " <scala_2_12_augmented>" )
433-
434- /** A definition that's initialized before the super call (Scala 2.x only) */
435- final val Scala2PreSuper : FlagSet = termFlag(58 , " <presuper>" )
436-
437- /** A Scala 2.12 or higher trait */
438- final val Scala_2_12_Trait : FlagSet = typeFlag(58 , " <scala_2_12_trait>" )
428+ /** A Scala 2.x trait that has been partially augmented.
429+ * This is set in `AugmentScala2Trait` and reset in `LinkScala2Impls`
430+ * when the trait is fully augmented.
431+ */
432+ final val Scala2xPartiallyAugmented : FlagSet = typeFlag(57 , " <scala-2.x-partially-augmented>" )
439433
440434 /** A macro */
441435 final val Macro : FlagSet = commonFlag(59 , " <macro>" )
@@ -497,7 +491,7 @@ object Flags {
497491 * is completed)
498492 */
499493 final val AfterLoadFlags : FlagSet =
500- FromStartFlags | AccessFlags | Final | AccessorOrSealed | LazyOrTrait | SelfNameOrImplClass
494+ FromStartFlags | AccessFlags | Final | AccessorOrSealed | LazyOrTrait | SelfName .toCommonFlags
501495
502496 assert(FromStartFlags .isTermFlags && FromStartFlags .isTypeFlags)
503497 // TODO: Should check that FromStartFlags do not change in completion
@@ -549,7 +543,7 @@ object Flags {
549543
550544 /** Flags that can apply to a module class */
551545 final val RetainedModuleClassFlags : FlagSet = RetainedModuleValAndClassFlags |
552- ImplClass | Enum | Opaque
546+ Enum | Opaque
553547
554548 /** Flags that are copied from a synthetic companion to a user-defined one
555549 * when the two are merged. See: Namer.mergeCompanionDefs
0 commit comments