aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast/TreeInfo.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-08-16 20:06:00 +0200
committerMartin Odersky <odersky@gmail.com>2013-08-16 20:06:00 +0200
commit28464328fbbc2a7575d819dcb98be0c9f11f7cee (patch)
treed8a24ac1f89e02be501c8695638f1b89b1b9c7c5 /src/dotty/tools/dotc/ast/TreeInfo.scala
parenta871c91aac6c46124b0ce9d118f6ba50496d9694 (diff)
downloaddotty-28464328fbbc2a7575d819dcb98be0c9f11f7cee.tar.gz
dotty-28464328fbbc2a7575d819dcb98be0c9f11f7cee.tar.bz2
dotty-28464328fbbc2a7575d819dcb98be0c9f11f7cee.zip
Eliminating getter generation in namer/typer.
The idea is that getters shoul dbe generated later (probably during UnCurry). This is much better for handling modules, and also obviates the need to have LocalNames. Getters can be generated as soon in the compilation pipeline as methoda always get a parameter list. That way, we can distinguihs getters from fields without playing any tricks with names.
Diffstat (limited to 'src/dotty/tools/dotc/ast/TreeInfo.scala')
-rw-r--r--src/dotty/tools/dotc/ast/TreeInfo.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/ast/TreeInfo.scala b/src/dotty/tools/dotc/ast/TreeInfo.scala
index 4dba38e0e..416c64079 100644
--- a/src/dotty/tools/dotc/ast/TreeInfo.scala
+++ b/src/dotty/tools/dotc/ast/TreeInfo.scala
@@ -323,7 +323,7 @@ trait TypedTreeInfo extends TreeInfo[Type] {self: Trees.Instance[Type] =>
def sym = tree.symbol
def isVar = sym is Mutable
def isGetter =
- mayBeVarGetter(sym) && sym.owner.info.member(sym.name.asTermName.getterToSetter).exists
+ mayBeVarGetter(sym) && sym.owner.info.member(sym.name.asTermName.setterName).exists
tree match {
case Ident(_) => isVar