aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform/SymUtils.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-05-29 12:23:19 +0200
committerMartin Odersky <odersky@gmail.com>2015-06-01 15:04:45 +0200
commit71067e64900b212068328d114edc741c6e12049b (patch)
tree6f20f215fec695897dbc059f8a73fe3ce206f3db /src/dotty/tools/dotc/transform/SymUtils.scala
parent4f50e8fa5b48b5a931224d40b7c6fc0aed3da44b (diff)
downloaddotty-71067e64900b212068328d114edc741c6e12049b.tar.gz
dotty-71067e64900b212068328d114edc741c6e12049b.tar.bz2
dotty-71067e64900b212068328d114edc741c6e12049b.zip
New phase: AugmentScala2Traits
Diffstat (limited to 'src/dotty/tools/dotc/transform/SymUtils.scala')
-rw-r--r--src/dotty/tools/dotc/transform/SymUtils.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/transform/SymUtils.scala b/src/dotty/tools/dotc/transform/SymUtils.scala
index df3b183a9..d3e029a74 100644
--- a/src/dotty/tools/dotc/transform/SymUtils.scala
+++ b/src/dotty/tools/dotc/transform/SymUtils.scala
@@ -85,9 +85,9 @@ class SymUtils(val self: Symbol) extends AnyVal {
def field(implicit ctx: Context): Symbol =
self.owner.info.decl(self.asTerm.name.fieldName).suchThat(!_.is(Method)).symbol
- def initializer(implicit ctx: Context): TermSymbol =
- self.owner.info.decl(InitializerName(self.asTerm.name)).symbol.asTerm
-
def isField(implicit ctx: Context): Boolean =
self.isTerm && !self.is(Method)
+
+ def implClass(implicit ctx: Context): Symbol =
+ self.owner.info.decl(self.name.implClassName).symbol
}