summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/internal/Flags.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-10-21 23:54:29 +0000
committerPaul Phillips <paulp@improving.org>2011-10-21 23:54:29 +0000
commitacb1c39dbd2dec50d793759e95efa07945279337 (patch)
treeca433b238ab9838bd3d9ccbd93e01ea9dc5229ef /src/compiler/scala/reflect/internal/Flags.scala
parent0172051d24698dc91210bfcdeec53638ed222b07 (diff)
downloadscala-acb1c39dbd2dec50d793759e95efa07945279337.tar.gz
scala-acb1c39dbd2dec50d793759e95efa07945279337.tar.bz2
scala-acb1c39dbd2dec50d793759e95efa07945279337.zip
More overhaul of Namers.
I was hoping to be further than this by now ("Accursed mutants!" *shakes fist*) but you can't deny we've come a long way. Review is welcome, but no review.
Diffstat (limited to 'src/compiler/scala/reflect/internal/Flags.scala')
-rw-r--r--src/compiler/scala/reflect/internal/Flags.scala15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/compiler/scala/reflect/internal/Flags.scala b/src/compiler/scala/reflect/internal/Flags.scala
index 7372d25446..61868db3c5 100644
--- a/src/compiler/scala/reflect/internal/Flags.scala
+++ b/src/compiler/scala/reflect/internal/Flags.scala
@@ -203,11 +203,16 @@ class Flags extends ModifierFlags {
// ------- masks -----------------------------------------------------------------------
- /** These flags can be set when class or module symbol is first created. */
+ /** These flags can be set when class or module symbol is first created.
+ * They are the only flags to survive a call to resetFlags().
+ */
final val TopLevelCreationFlags: Long =
MODULE | PACKAGE | FINAL | JAVA
- /** These modifiers can be set explicitly in source programs. */
+ /** These modifiers can be set explicitly in source programs. This is
+ * used only as the basis for the default flag mask (which ones to display
+ * when printing a normal message.)
+ */
final val ExplicitFlags: Long =
PRIVATE | PROTECTED | ABSTRACT | FINAL | SEALED |
OVERRIDE | CASE | IMPLICIT | ABSOVERRIDE | LAZY
@@ -218,7 +223,7 @@ class Flags extends ModifierFlags {
ACCESSOR | SUPERACCESSOR | PARAMACCESSOR | BRIDGE | STATIC | VBRIDGE | SPECIALIZED
/** The two bridge flags */
- final val BRIDGES = BRIDGE | VBRIDGE
+ final val BridgeFlags = BRIDGE | VBRIDGE
/** When a symbol for a field is created, only these flags survive
* from Modifiers. Others which may be applied at creation time are:
@@ -241,6 +246,10 @@ class Flags extends ModifierFlags {
final val ValueParameterFlags: Long = BYNAMEPARAM | IMPLICIT | DEFAULTPARAM
final val BeanPropertyFlags = DEFERRED | OVERRIDE | STATIC
final val VarianceFlags = COVARIANT | CONTRAVARIANT
+
+ /** These appear to be flags which should be transferred from owner symbol
+ * to a newly created constructor symbol.
+ */
final val ConstrFlags: Long = JAVA
/** Module flags inherited by their module-class */