From 28464328fbbc2a7575d819dcb98be0c9f11f7cee Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 16 Aug 2013 20:06:00 +0200 Subject: 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. --- src/dotty/tools/dotc/ast/TreeInfo.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/ast/TreeInfo.scala') 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 -- cgit v1.2.3