aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/NameOps.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-06-27 15:43:42 +0200
committerMartin Odersky <odersky@gmail.com>2015-06-27 15:44:06 +0200
commita5eae5a79212f76c8a8ad3e4ea39ce0bb3302b9e (patch)
tree4c0d3a5240919568bd366972b453e225c1898e69 /src/dotty/tools/dotc/core/NameOps.scala
parent78f5e1cb9c0b186e4835d0a69e551ed5e988829b (diff)
downloaddotty-a5eae5a79212f76c8a8ad3e4ea39ce0bb3302b9e.tar.gz
dotty-a5eae5a79212f76c8a8ad3e4ea39ce0bb3302b9e.tar.bz2
dotty-a5eae5a79212f76c8a8ad3e4ea39ce0bb3302b9e.zip
Drop TraitConstructors phase
It did not do enough to carry its own weight, in particular because DenotationTransformers do have a price - every encountered denotation in the whole program is passed through them. The name change from <init> to $init$ was all it did, that is now rolled into Mixin. Also renamed IMPLCLASS_CONSTRUCTOR to TRAIT_CONSTRUCTOR.
Diffstat (limited to 'src/dotty/tools/dotc/core/NameOps.scala')
-rw-r--r--src/dotty/tools/dotc/core/NameOps.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/NameOps.scala b/src/dotty/tools/dotc/core/NameOps.scala
index dc94f6db1..4d6cca61d 100644
--- a/src/dotty/tools/dotc/core/NameOps.scala
+++ b/src/dotty/tools/dotc/core/NameOps.scala
@@ -62,7 +62,7 @@ object NameOps {
def likeTyped(n: Name): N =
(if (name.isTermName) n.toTermName else n.toTypeName).asInstanceOf[N]
- def isConstructorName = name == CONSTRUCTOR || name == IMPLCLASS_CONSTRUCTOR
+ def isConstructorName = name == CONSTRUCTOR || name == TRAIT_CONSTRUCTOR
def isExceptionResultName = name startsWith EXCEPTION_RESULT_PREFIX
def isImplClassName = name endsWith IMPL_CLASS_SUFFIX
def isLocalDummyName = name startsWith LOCALDUMMY_PREFIX