@@ -344,7 +344,7 @@ object Flags {
344344 /** Symbol is a Java default method */
345345 val (_, DefaultMethod @ _, _) = newFlags(38 , " <defaultmethod>" )
346346
347- val (Implied @ _, _, _) = newFlags(39 , " delegate" )
347+ val (Delegate @ _, _, _) = newFlags(39 , " delegate" )
348348
349349 /** Symbol is an enum class or enum case (if used with case) */
350350 val (Enum @ _, _, _) = newFlags(40 , " <enum>" )
@@ -427,7 +427,7 @@ object Flags {
427427
428428 /** Flags representing source modifiers */
429429 private val CommonSourceModifierFlags : FlagSet =
430- commonFlags(Private , Protected , Final , Case , Implicit , Implied , Given , Override , JavaStatic )
430+ commonFlags(Private , Protected , Final , Case , Implicit , Delegate , Given , Override , JavaStatic )
431431
432432 val TypeSourceModifierFlags : FlagSet =
433433 CommonSourceModifierFlags .toTypeFlags | Abstract | Sealed | Opaque
@@ -449,7 +449,7 @@ object Flags {
449449 HigherKinded , Param , ParamAccessor ,
450450 Scala2ExistentialCommon , Mutable , Opaque , Touched , JavaStatic ,
451451 OuterOrCovariant , LabelOrContravariant , CaseAccessor ,
452- Extension , NonMember , Implicit , Given , Implied , Permanent , Synthetic ,
452+ Extension , NonMember , Implicit , Given , Delegate , Permanent , Synthetic ,
453453 SuperAccessorOrScala2x , Inline )
454454
455455 /** Flags that are not (re)set when completing the denotation, or, if symbol is
@@ -508,14 +508,14 @@ object Flags {
508508
509509 /** Flags that can apply to a module val */
510510 val RetainedModuleValFlags : FlagSet = RetainedModuleValAndClassFlags |
511- Override | Final | Method | Implicit | Implied | Lazy |
511+ Override | Final | Method | Implicit | Delegate | Lazy |
512512 Accessor | AbsOverride | StableRealizable | Captured | Synchronized | Erased
513513
514514 /** Flags that can apply to a module class */
515515 val RetainedModuleClassFlags : FlagSet = RetainedModuleValAndClassFlags | Enum
516516
517517 /** Flags retained in export forwarders */
518- val RetainedExportFlags = ImplicitOrImpliedOrGiven | Extension
518+ val RetainedExportFlags = Delegate | Given | Implicit | Extension
519519
520520// ------- Other flag sets -------------------------------------
521521
@@ -533,68 +533,47 @@ object Flags {
533533
534534 val MethodOrModule : FlagSet = Method | Module
535535
536- /** Either method or lazy or deferred */
537536 val MethodOrLazyOrDeferred : FlagSet = Deferred | Lazy | Method
538537
539- /** An inline method or inline argument proxy */
540- val InlineOrProxy : FlagSet = Inline | InlineProxy
541538
542- val ImplicitOrImplied : FlagSet = Implicit | Implied
543- val ImplicitOrImpliedOrGiven : FlagSet = Given | Implicit | Implied
544- val ImplicitOrGiven : FlagSet = Given | Implicit
539+ val InlineOrProxy : FlagSet = Inline | InlineProxy // An inline method or inline argument proxy */
545540
546- val ImpliedOrGiven : FlagSet = Implied | Given
541+ val DelegateOrGiven : FlagSet = Delegate | Given
542+ val DelegateOrGivenOrImplicit : FlagSet = Delegate | Given | Implicit
543+ val DelegateOrGivenOrImplicitVal : FlagSet = DelegateOrGivenOrImplicit .toTermFlags
544+ val DelegateOrImplicit : FlagSet = Delegate | Implicit
545+ val GivenOrImplicit : FlagSet = Given | Implicit
547546
548- val ImplicitOrImpliedOrGivenTerm = ImplicitOrImpliedOrGiven .toTermFlags
547+ val StableOrErased : FlagSet = Erased | StableRealizable // Assumed to be pure
548+ val EffectivelyFinalFlags : FlagSet = Final | Private
549549
550+ val PrivateMethod : FlagSet = Method | Private
550551
551- /** Assumed to be pure */
552- val StableOrErased : FlagSet = StableRealizable | Erased
552+ val PrivateAccessor : FlagSet = Accessor | Private
553553
554- /** Labeled `private`, or `final` */
555- val EffectivelyFinalFlags : FlagSet = Private | Final
556-
557- /** A private method */
558- val PrivateMethod : FlagSet = Private | Method
559-
560- /** A private accessor */
561- val PrivateAccessor : FlagSet = Private | Accessor
562-
563- /** An inline method */
564554 val InlineMethod : FlagSet = Inline | Method
565555
566- /** An inline by-name parameter proxy */
567556 val InlineByNameProxy : FlagSet = InlineProxy | Method
568557
569- /** An inline parameter */
570558 val InlineParam : FlagSet = Inline | Param
571559
572- /** An extension method */
573560 val ExtensionMethod : FlagSet = Extension | Method
574561
575- /** An implied method */
576- val SyntheticImpliedMethod : FlagSet = Synthetic | Implied | Method
562+ val SyntheticDelegateMethod : FlagSet = Delegate | Method | Synthetic
577563
578- /** An enum case */
579- val EnumCase : FlagSet = Enum | Case
564+ val EnumCase : FlagSet = Case | Enum
580565
581- /** A term parameter or parameter accessor */
582566 val TermParamOrAccessor : FlagSet = Param | ParamAccessor
583567
584- /** A lazy or deferred value */
585- val LazyOrDeferred : FlagSet = Lazy | Deferred
568+ val LazyOrDeferred : FlagSet = Deferred | Lazy
586569
587- /** An accessor or a synthetic symbol */
588570 val AccessorOrSynthetic : FlagSet = Accessor | Synthetic
589571
590- /** A synthetic or private definition */
591- val SyntheticOrPrivate : FlagSet = Synthetic | Private
572+ val SyntheticOrPrivate : FlagSet = Private | Synthetic
592573
593- /** A deferred term member or a parameter or parameter accessor (these don't have right hand sides) */
594- val DeferredOrTermParamOrAccessor : FlagSet = Deferred | TermParam | ParamAccessor
574+ val DeferredOrTermParamOrAccessor : FlagSet = Deferred | ParamAccessor | TermParam // term symbols without right-hand sides
595575
596- /** A deferred type member or parameter (these don't have right hand sides) */
597- val DeferredOrTypeParam : FlagSet = Deferred | TypeParam
576+ val DeferredOrTypeParam : FlagSet = Deferred | TypeParam // type symbols without right-hand sides
598577
599578 /** value that's final or inline */
600579 val FinalOrInline : FlagSet = Final | Inline
0 commit comments