aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2015-05-09 21:33:19 +0200
committerGuillaume Martres <smarter@ubuntu.com>2015-05-09 21:33:19 +0200
commit37851350754403323b26c0c32417cbecc0c44584 (patch)
treef7269a8eb348a1d450117e7d71ede6afcb2aeff3 /src/dotty/tools/dotc/core/SymDenotations.scala
parenta1790ebc08d8498f86440cd0534343b11319fc6d (diff)
downloaddotty-37851350754403323b26c0c32417cbecc0c44584.tar.gz
dotty-37851350754403323b26c0c32417cbecc0c44584.tar.bz2
dotty-37851350754403323b26c0c32417cbecc0c44584.zip
rename isSourceMethod to isRealMethod, the previous name was inaccurate
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index b93585324..1d3434091 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -478,8 +478,12 @@ object SymDenotations {
}
}
- /** Is this a user defined "def" method? Excluded are accessors and anonymous functions. */
- final def isSourceMethod(implicit ctx: Context) =
+ /** Is this a "real" method? A real method is a method which is:
+ * - not an accessor
+ * - not a label
+ * - not an anonymous function
+ */
+ final def isRealMethod(implicit ctx: Context) =
this.is(Method, butNot = AccessorOrLabel) && !isAnonymousFunction
/** Is this a setter? */