From 65aa10526340bc618bdba71a4cd5616e8a185715 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 19 Aug 2014 15:30:04 +0200 Subject: Make-not private Refchecks now makes all members not-private that need it. This is done by setting flag NotJavaPrivate. No name change is involved. --- src/dotty/tools/dotc/core/Flags.scala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/dotty/tools/dotc/core/Flags.scala') diff --git a/src/dotty/tools/dotc/core/Flags.scala b/src/dotty/tools/dotc/core/Flags.scala index 20427516d..532f6d00f 100644 --- a/src/dotty/tools/dotc/core/Flags.scala +++ b/src/dotty/tools/dotc/core/Flags.scala @@ -190,6 +190,8 @@ object Flags { /** Labeled with `private` modifier */ final val Private = commonFlag(2, "private") + final val PrivateTerm = Private.toTermFlags + final val PrivateType = Private.toTypeFlags /** Labeled with `protected` modifier */ final val Protected = commonFlag(3, "protected") @@ -356,6 +358,9 @@ object Flags { // Flags following this one are not pickled + /** Symbol with private access is accessed outside its private scope */ + final val NotJavaPrivate = commonFlag(47, "") + /** Denotation is in train of being loaded and completed, used to catch cyclic dependencies */ final val Touched = commonFlag(48, "") -- cgit v1.2.3