@@ -363,7 +363,10 @@ object Flags {
363363 /** Symbol is a Java default method */
364364 final val DefaultMethod = termFlag(38 , " <defaultmethod>" )
365365
366- /** Symbol is a Java enum */
366+ /** Labelled with `transparent` modifier */
367+ final val Transparent = termFlag(39 , " transparent" )
368+
369+ /** Symbol is an enum class or enum case (if used with case) */
367370 final val Enum = commonFlag(40 , " <enum>" )
368371
369372 /** Labeled with `erased` modifier (erased value) */
@@ -436,7 +439,7 @@ object Flags {
436439
437440 /** Flags representing source modifiers */
438441 final val SourceModifierFlags =
439- commonFlags(Private , Protected , Abstract , Final , Inline ,
442+ commonFlags(Private , Protected , Abstract , Final , Inline , Transparent ,
440443 Sealed , Case , Implicit , Override , AbsOverride , Lazy , JavaStatic , Erased )
441444
442445 /** Flags representing modifiers that can appear in trees */
@@ -457,7 +460,7 @@ object Flags {
457460 Scala2ExistentialCommon | Mutable .toCommonFlags | Touched | JavaStatic |
458461 CovariantOrOuter | ContravariantOrLabel | CaseAccessor .toCommonFlags |
459462 NonMember | ImplicitCommon | Permanent | Synthetic |
460- SuperAccessorOrScala2x | Inline
463+ SuperAccessorOrScala2x | Inline | Transparent .toCommonFlags
461464
462465 /** Flags that are not (re)set when completing the denotation, or, if symbol is
463466 * a top-level class or object, when completing the denotation once the class
@@ -513,7 +516,7 @@ object Flags {
513516 /** Flags that can apply to a module val */
514517 final val RetainedModuleValFlags : FlagSet = RetainedModuleValAndClassFlags |
515518 Override | Final | Method | Implicit | Lazy |
516- Accessor | AbsOverride | Stable | Captured | Synchronized | Inline | Erased
519+ Accessor | AbsOverride | Stable | Captured | Synchronized | Erased
517520
518521 /** Flags that can apply to a module class */
519522 final val RetainedModuleClassFlags : FlagSet = RetainedModuleValAndClassFlags | ImplClass | Enum
@@ -548,8 +551,8 @@ object Flags {
548551 /** Either method or lazy or deferred */
549552 final val MethodOrLazyOrDeferred = Method | Lazy | Deferred
550553
551- /** Labeled `private`, `final`, or `inline ` */
552- final val PrivateOrFinalOrInline = Private | Final | Inline
554+ /** Labeled `private`, `final`, `inline`, or `transparent ` */
555+ final val EffectivelyFinal = Private | Final | Inline | Transparent .toCommonFlags
553556
554557 /** A private method */
555558 final val PrivateMethod = allOf(Private , Method )
@@ -560,6 +563,9 @@ object Flags {
560563 /** An inline method */
561564 final val InlineMethod = allOf(Inline , Method )
562565
566+ /** An transparent method */
567+ final val TransparentMethod = allOf(Transparent , Method )
568+
563569 /** An inline parameter */
564570 final val InlineParam = allOf(Inline , Param )
565571
@@ -575,6 +581,9 @@ object Flags {
575581 /** An accessor or label */
576582 final val AccessorOrLabel = Accessor | Label
577583
584+ /** An accessor or a synthetic symbol */
585+ final val AccessorOrSynthetic = Accessor | Synthetic
586+
578587 /** A synthetic or private definition */
579588 final val SyntheticOrPrivate = Synthetic | Private
580589
@@ -584,8 +593,8 @@ object Flags {
584593 /** A deferred type member or parameter (these don't have right hand sides) */
585594 final val DeferredOrTypeParam = Deferred | TypeParam
586595
587- /** value that's final or inline */
588- final val FinalOrInline = Final | Inline
596+ /** value that's final, inline, or transparent */
597+ final val FinalOrInlineOrTransparent = Final | Inline | Transparent .toCommonFlags
589598
590599 /** A covariant type parameter instance */
591600 final val LocalCovariant = allOf(Local , Covariant )
0 commit comments