diff options
author | Paul Phillips <paulp@improving.org> | 2011-10-22 21:09:11 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-10-22 21:09:11 +0000 |
commit | 290f687fb6ab91b6aef62d871036ddc3829f12b4 (patch) | |
tree | a55663699fa69315ba4e640252cc6694cbd805d6 /src/compiler/scala/reflect/internal/Flags.scala | |
parent | 0c97d8c73fdf4e1dd33ee98ea2e14bc51388bb5f (diff) | |
download | scala-290f687fb6ab91b6aef62d871036ddc3829f12b4.tar.gz scala-290f687fb6ab91b6aef62d871036ddc3829f12b4.tar.bz2 scala-290f687fb6ab91b6aef62d871036ddc3829f12b4.zip |
Overhaul of Namers continues.
Starting to see a glimmer of the other side now. I nudged a few things
into more sensible places. No review.
Diffstat (limited to 'src/compiler/scala/reflect/internal/Flags.scala')
-rw-r--r-- | src/compiler/scala/reflect/internal/Flags.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/scala/reflect/internal/Flags.scala b/src/compiler/scala/reflect/internal/Flags.scala index 61868db3c5..209ca94e50 100644 --- a/src/compiler/scala/reflect/internal/Flags.scala +++ b/src/compiler/scala/reflect/internal/Flags.scala @@ -232,6 +232,13 @@ class Flags extends ModifierFlags { final val FieldFlags: Long = MUTABLE | CASEACCESSOR | PARAMACCESSOR | STATIC | FINAL | PRESUPER | LAZY + /** Masks for getters and setters, where the flags are derived from those + * on the field's modifiers. Both getters and setters get the ACCESSOR flag. + * Getters of immutable values also get STABLE. + */ + final val GetterFlags = ~(PRESUPER | MUTABLE) + final val SetterFlags = ~(PRESUPER | MUTABLE | STABLE | CASEACCESSOR) + /** When a symbol for a default getter is created, it inherits these * flags from the method with the default. Other flags applied at creation * time are SYNTHETIC, DEFAULTPARAM, and possibly OVERRIDE. |