aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-02-09 10:03:23 +0100
committerMartin Odersky <odersky@gmail.com>2013-02-09 10:03:23 +0100
commit3debc923154bb5beec8d08b88e8f96ae18ee3734 (patch)
tree8d87997ddfc293ba24f1bba3057c9b7b58d93b7f /src/dotty/tools/dotc/core/SymDenotations.scala
parent25e09861e097b8db659ba1fc2d103e540db86a22 (diff)
downloaddotty-3debc923154bb5beec8d08b88e8f96ae18ee3734.tar.gz
dotty-3debc923154bb5beec8d08b88e8f96ae18ee3734.tar.bz2
dotty-3debc923154bb5beec8d08b88e8f96ae18ee3734.zip
Integration of Constants
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index 0610acb02..a53ac374f 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -218,12 +218,12 @@ object SymDenotations {
/** Is this a subclass of the given class `base`? */
def isSubClass(base: Symbol)(implicit ctx: Context) = false
+ /** Is this a user defined "def" method? Excluded are accessors and stable values */
+ def isSourceMethod = this is (Method, butNot = Accessor)
+
/** Is this a setter? */
def isGetter = (this is Accessor) && !originalName.isSetterName
- /** Is this a user defined "def" method? Excluded are accessors and stable values */
- def isSourceMethod = this is (Method, butNot = Accessor | Stable)
-
/** Is this a setter? */
def isSetter = (this is Accessor) && originalName.isSetterName