@@ -272,9 +272,6 @@ object Flags {
272272 */
273273 final val Synthetic = commonFlag(18 , " <synthetic>" )
274274
275- /** Symbol's name is expanded */
276- final val ExpandedName = commonFlag(19 , " <expandedname>" )
277-
278275 /** A covariant type variable / an outer accessor */
279276 final val CovariantOrOuter = commonFlag(20 , " " )
280277 final val Covariant = typeFlag(20 , " <covariant>" )
@@ -308,7 +305,6 @@ object Flags {
308305 final val CaseAccessor = termFlag(25 , " <caseaccessor>" )
309306
310307 /** A binding for a type parameter of a base class or trait.
311- * TODO: Replace with combination of isType, ExpandedName, and Override?
312308 */
313309 final val BaseTypeArg = typeFlag(25 , " <basetypearg>" )
314310
@@ -409,9 +405,6 @@ object Flags {
409405 final val Scala2ExistentialCommon = commonFlag(55 , " <existential>" )
410406 final val Scala2Existential = Scala2ExistentialCommon .toTypeFlags
411407
412- /** An overloaded symbol (Scala 2.x only) */
413- final val Scala2Overloaded = termFlag(56 , " <overloaded>" )
414-
415408 /** A module variable (Scala 2.x only) */
416409 final val Scala2ModuleVar = termFlag(57 , " <modulevar>" )
417410
@@ -424,6 +417,13 @@ object Flags {
424417 /** A method that is known to have inherited default parameters */
425418 final val InheritedDefaultParams = termFlag(60 , " <inherited-default-param>" )
426419
420+ /** Translation of Scala2's EXPANDEDNAME flag. This flag is never stored in
421+ * symbols, is only used locally when reading the flags of a Scala2 symbol.
422+ * It's therefore safe to share the code with `InheritedDefaultParams` because
423+ * the latter is never present in Scala2 unpickle info.
424+ */
425+ final val Scala2ExpandedName = InheritedDefaultParams .toCommonFlags
426+
427427 /** A method that is known to have no default parameters */
428428 final val NoDefaultParams = termFlag(61 , " <no-default-param>" )
429429
@@ -475,7 +475,7 @@ object Flags {
475475
476476 /** Flags that are passed from a type parameter of a class to a refinement symbol
477477 * that sets the type parameter */
478- final val RetainedTypeArgFlags = VarianceFlags | ExpandedName | Protected | Local
478+ final val RetainedTypeArgFlags = VarianceFlags | Protected | Local
479479
480480 /** Modules always have these flags set */
481481 final val ModuleCreationFlags = ModuleVal | Lazy | Final | Stable
@@ -502,7 +502,7 @@ object Flags {
502502 */
503503 final val RetainedModuleValAndClassFlags : FlagSet =
504504 AccessFlags | Package | Case |
505- Synthetic | ExpandedName | JavaDefined | JavaStatic | Artifact |
505+ Synthetic | JavaDefined | JavaStatic | Artifact |
506506 Erroneous | Lifted | MixedIn | Specialized
507507
508508 /** Flags that can apply to a module val */
@@ -550,9 +550,6 @@ object Flags {
550550 /** A private accessor */
551551 final val PrivateAccessor = allOf(Private , Accessor )
552552
553- /** A type parameter with synthesized name */
554- final val ExpandedTypeParam = allOf(ExpandedName , TypeParam )
555-
556553 /** An inline method */
557554 final val InlineMethod = allOf(Inline , Method )
558555
@@ -578,7 +575,7 @@ object Flags {
578575 final val FinalOrInline = Final | Inline
579576
580577 /** If symbol of a type alias has these flags, prefer the alias */
581- final val AliasPreferred = TypeParam | BaseTypeArg | ExpandedName
578+ final val AliasPreferred = TypeParam | BaseTypeArg
582579
583580 /** A covariant type parameter instance */
584581 final val LocalCovariant = allOf(Local , Covariant )
0 commit comments