File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
compiler/src/dotty/tools/dotc/tastyreflect
library/src/scala/tasty/reflect Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ trait FlagsOpsImpl extends scala.tasty.reflect.FlagsOps with CoreImpl {
14
14
}
15
15
16
16
object Flags extends FlagsModule {
17
+ def Private : Flags = core.Flags .Private
17
18
def Protected : Flags = core.Flags .Protected
18
19
def Abstract : Flags = core.Flags .Abstract
19
20
def Final : Flags = core.Flags .Final
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ trait FlagsOps extends Core {
14
14
15
15
val Flags : FlagsModule
16
16
abstract class FlagsModule {
17
+
18
+ /** Is this symbol `private` */
19
+ def Private : Flags
20
+
17
21
/** Is this symbol `protected` */
18
22
def Protected : Flags
19
23
@@ -56,7 +60,7 @@ trait FlagsOps extends Core {
56
60
/** Is this symbol a trait */
57
61
def Trait : Flags
58
62
59
- /** Is this symbol local? Used in conjunction with Private /private[Type] to mean private[this] extends Modifier proctected[this] */
63
+ /** Is this symbol local? Used in conjunction with private /private[Type] to mean private[this] extends Modifier proctected[this] */
60
64
def Local : Flags
61
65
62
66
/** Was this symbol generated by Scala compiler */
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ trait Printers
100
100
101
101
def showFlags (flags : Flags )(implicit ctx : Context ): String = {
102
102
val flagList = List .newBuilder[String ]
103
+ if (flags.is(Flags .Private )) flagList += " Flags.Private"
103
104
if (flags.is(Flags .Protected )) flagList += " Flags.Protected"
104
105
if (flags.is(Flags .Abstract )) flagList += " Flags.Abstract"
105
106
if (flags.is(Flags .Final )) flagList += " Flags.Final"
@@ -471,6 +472,7 @@ trait Printers
471
472
472
473
def showFlags (flags : Flags )(implicit ctx : Context ): String = {
473
474
val flagList = List .newBuilder[String ]
475
+ if (flags.is(Flags .Private )) flagList += " private"
474
476
if (flags.is(Flags .Protected )) flagList += " protected"
475
477
if (flags.is(Flags .Abstract )) flagList += " abstract"
476
478
if (flags.is(Flags .Final )) flagList += " final"
You can’t perform that action at this time.
0 commit comments