@@ -22,7 +22,7 @@ object Flags {
2222
2323 type Flag = opaques.Flag
2424
25- delegate FlagOps {
25+ given FlagOps {
2626
2727 def (x : FlagSet ) bits : Long = opaques.toBits(x)
2828
@@ -338,8 +338,6 @@ object Flags {
338338 /** Symbol is a Java default method */
339339 val (_, DefaultMethod @ _, _) = newFlags(38 , " <defaultmethod>" )
340340
341- val (Delegate @ _, _, _) = newFlags(39 , " delegate" )
342-
343341 /** Symbol is an enum class or enum case (if used with case) */
344342 val (Enum @ _, _, _) = newFlags(40 , " <enum>" )
345343
@@ -421,7 +419,7 @@ object Flags {
421419
422420 /** Flags representing source modifiers */
423421 private val CommonSourceModifierFlags : FlagSet =
424- commonFlags(Private , Protected , Final , Case , Implicit , Delegate , Given , Override , JavaStatic )
422+ commonFlags(Private , Protected , Final , Case , Implicit , Given , Override , JavaStatic )
425423
426424 val TypeSourceModifierFlags : FlagSet =
427425 CommonSourceModifierFlags .toTypeFlags | Abstract | Sealed | Opaque
@@ -443,7 +441,7 @@ object Flags {
443441 HigherKinded , Param , ParamAccessor ,
444442 Scala2ExistentialCommon , Mutable , Opaque , Touched , JavaStatic ,
445443 OuterOrCovariant , LabelOrContravariant , CaseAccessor ,
446- Extension , NonMember , Implicit , Given , Delegate , Permanent , Synthetic ,
444+ Extension , NonMember , Implicit , Given , Permanent , Synthetic ,
447445 SuperAccessorOrScala2x , Inline )
448446
449447 /** Flags that are not (re)set when completing the denotation, or, if symbol is
@@ -502,14 +500,14 @@ object Flags {
502500
503501 /** Flags that can apply to a module val */
504502 val RetainedModuleValFlags : FlagSet = RetainedModuleValAndClassFlags |
505- Override | Final | Method | Implicit | Delegate | Lazy |
503+ Override | Final | Method | Implicit | Given | Lazy |
506504 Accessor | AbsOverride | StableRealizable | Captured | Synchronized | Erased
507505
508506 /** Flags that can apply to a module class */
509507 val RetainedModuleClassFlags : FlagSet = RetainedModuleValAndClassFlags | Enum
510508
511509 /** Flags retained in export forwarders */
512- val RetainedExportFlags = Delegate | Given | Implicit | Extension
510+ val RetainedExportFlags = Given | Implicit | Extension
513511
514512// ------- Other flag sets -------------------------------------
515513
@@ -528,10 +526,6 @@ object Flags {
528526 val DeferredOrLazyOrMethod : FlagSet = Deferred | Lazy | Method
529527 val DeferredOrTermParamOrAccessor : FlagSet = Deferred | ParamAccessor | TermParam // term symbols without right-hand sides
530528 val DeferredOrTypeParam : FlagSet = Deferred | TypeParam // type symbols without right-hand sides
531- val DelegateOrGiven : FlagSet = Delegate | Given
532- val DelegateOrGivenOrImplicit : FlagSet = Delegate | Given | Implicit
533- val DelegateOrGivenOrImplicitVal : FlagSet = DelegateOrGivenOrImplicit .toTermFlags
534- val DelegateOrImplicit : FlagSet = Delegate | Implicit
535529 val EnumValue : FlagSet = Enum | JavaStatic | StableRealizable // A Scala enum value
536530 val StableOrErased : FlagSet = Erased | StableRealizable // Assumed to be pure
537531 val ExtensionMethod : FlagSet = Extension | Method
@@ -540,6 +534,7 @@ object Flags {
540534 val EffectivelyFinalFlags : FlagSet = Final | Private
541535 val FinalOrSealed : FlagSet = Final | Sealed
542536 val GivenOrImplicit : FlagSet = Given | Implicit
537+ val GivenOrImplicitVal : FlagSet = GivenOrImplicit .toTermFlags
543538 val InlineOrProxy : FlagSet = Inline | InlineProxy // An inline method or inline argument proxy */
544539 val InlineMethod : FlagSet = Inline | Method
545540 val InlineParam : FlagSet = Inline | Param
@@ -570,7 +565,7 @@ object Flags {
570565 val Scala2Trait : FlagSet = Scala2x | Trait
571566 val SyntheticArtifact : FlagSet = Synthetic | Artifact
572567 val SyntheticCase : FlagSet = Synthetic | Case
573- val SyntheticDelegateMethod : FlagSet = Synthetic | Delegate | Method
568+ val SyntheticGivenMethod : FlagSet = Synthetic | Given | Method
574569 val SyntheticModule : FlagSet = Synthetic | Module
575570 val SyntheticOpaque : FlagSet = Synthetic | Opaque
576571 val SyntheticTermParam : FlagSet = Synthetic | TermParam
0 commit comments