aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-31 19:01:10 +0200
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:12 +0200
commita574ba6b70fc8a8dadf4ec493fcb5dc19d1fa478 (patch)
tree6203155dd48e40d5a56a5fa458660c6ee903427e /compiler/src/dotty/tools/dotc/core/SymDenotations.scala
parent4a54b2c24d6f6feb5864461697f5872df220ba52 (diff)
downloaddotty-a574ba6b70fc8a8dadf4ec493fcb5dc19d1fa478.tar.gz
dotty-a574ba6b70fc8a8dadf4ec493fcb5dc19d1fa478.tar.bz2
dotty-a574ba6b70fc8a8dadf4ec493fcb5dc19d1fa478.zip
Further simplification for Name
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/SymDenotations.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
index 547fd2d91..1c7206533 100644
--- a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -461,13 +461,13 @@ object SymDenotations {
/** Is this symbol an anonymous class? */
final def isAnonymousClass(implicit ctx: Context): Boolean =
- isClass && (initial.name startsWith tpnme.ANON_CLASS)
+ isClass && (initial.name startsWith str.ANON_CLASS)
final def isAnonymousFunction(implicit ctx: Context) =
- this.symbol.is(Method) && (initial.name startsWith nme.ANON_FUN)
+ this.symbol.is(Method) && (initial.name startsWith str.ANON_FUN)
final def isAnonymousModuleVal(implicit ctx: Context) =
- this.symbol.is(ModuleVal) && (initial.name startsWith nme.ANON_CLASS)
+ this.symbol.is(ModuleVal) && (initial.name startsWith str.ANON_CLASS)
/** Is this a companion class method or companion object method?
* These methods are generated by Symbols#synthesizeCompanionMethod