From 94716b9780c3bd3770bba43aee06e46b00375904 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Tue, 8 Apr 2014 13:36:57 +0200 Subject: 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. --- src/dotty/tools/dotc/core/Flags.scala | 9 +++++++++ 1 file changed, 9 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 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) -- cgit v1.2.3