@@ -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
@@ -451,7 +451,7 @@ object Flags {
451451 /** Flags guaranteed to be set upon symbol creation */
452452 final val FromStartFlags =
453453 AccessFlags | Module | Package | Deferred | Final | MethodOrHKCommon | Param | ParamAccessor | Scala2ExistentialCommon |
454- Mutable .toCommonFlags | InSuperCall | Touched | JavaStatic | CovariantOrOuter | ContravariantOrLabel | ExpandedName | AccessorOrSealed |
454+ Mutable .toCommonFlags | InSuperCall | Touched | JavaStatic | CovariantOrOuter | ContravariantOrLabel | AccessorOrSealed |
455455 CaseAccessorOrBaseTypeArg | Fresh | Frozen | Erroneous | ImplicitCommon | Permanent | Synthetic |
456456 Inline | LazyOrTrait | SuperAccessorOrScala2x | SelfNameOrImplClass
457457
@@ -466,7 +466,7 @@ object Flags {
466466
467467 /** Flags that are passed from a type parameter of a class to a refinement symbol
468468 * that sets the type parameter */
469- final val RetainedTypeArgFlags = VarianceFlags | ExpandedName | Protected | Local
469+ final val RetainedTypeArgFlags = VarianceFlags | Protected | Local
470470
471471 /** Modules always have these flags set */
472472 final val ModuleCreationFlags = ModuleVal | Lazy | Final | Stable
@@ -493,7 +493,7 @@ object Flags {
493493 */
494494 final val RetainedModuleValAndClassFlags : FlagSet =
495495 AccessFlags | Package | Case |
496- Synthetic | ExpandedName | JavaDefined | JavaStatic | Artifact |
496+ Synthetic | JavaDefined | JavaStatic | Artifact |
497497 Erroneous | Lifted | MixedIn | Specialized
498498
499499 /** Flags that can apply to a module val */
@@ -541,9 +541,6 @@ object Flags {
541541 /** A private accessor */
542542 final val PrivateAccessor = allOf(Private , Accessor )
543543
544- /** A type parameter with synthesized name */
545- final val ExpandedTypeParam = allOf(ExpandedName , TypeParam )
546-
547544 /** An inline method */
548545 final val InlineMethod = allOf(Inline , Method )
549546
@@ -569,7 +566,7 @@ object Flags {
569566 final val FinalOrInline = Final | Inline
570567
571568 /** If symbol of a type alias has these flags, prefer the alias */
572- final val AliasPreferred = TypeParam | BaseTypeArg | ExpandedName
569+ final val AliasPreferred = TypeParam | BaseTypeArg
573570
574571 /** A covariant type parameter instance */
575572 final val LocalCovariant = allOf(Local , Covariant )
0 commit comments