diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-04-08 13:36:57 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-04-11 14:22:05 +0200 |
commit | 94716b9780c3bd3770bba43aee06e46b00375904 (patch) | |
tree | f586f07d78e248ea9784d8017399eab499799655 /src/dotty/tools/dotc/core/Flags.scala | |
parent | 37502919ab964e7a3dc0ca79daf2a7f83747e434 (diff) | |
download | dotty-94716b9780c3bd3770bba43aee06e46b00375904.tar.gz dotty-94716b9780c3bd3770bba43aee06e46b00375904.tar.bz2 dotty-94716b9780c3bd3770bba43aee06e46b00375904.zip |
SymDenotation.isEffectivelyFinal
Helper method that tests weather this particular
SymDenotation cant have overrides: eg if it's defined in module class,
if it is inner method, if it is method of anonymous class, etc.
Diffstat (limited to 'src/dotty/tools/dotc/core/Flags.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Flags.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Flags.scala b/src/dotty/tools/dotc/core/Flags.scala index 68125f73e..9f87120f8 100644 --- a/src/dotty/tools/dotc/core/Flags.scala +++ b/src/dotty/tools/dotc/core/Flags.scala @@ -470,6 +470,15 @@ object Flags { /** Labeled `private` or `protected[local]` */ final val PrivateOrLocal = Private | Local + /** Either a module or a final class */ + final val ModuleOrFinal = ModuleClass | Final + + /** Either mutable or lazy */ + final val MutableOrLazy = Mutable | Lazy + + /** Labeled `private` or `final` */ + final val PrivateOrFinal = Private | Final + /** A type parameter with synthesized name */ final val ExpandedTypeParam = allOf(ExpandedName, TypeParam) |