summaryrefslogtreecommitdiff
path: root/sources/scalac/ast/TreeGen.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-07-30 14:51:58 +0000
committerpaltherr <paltherr@epfl.ch>2003-07-30 14:51:58 +0000
commit728ab1f19fd79630b4c0919b960dad9ecf6055f1 (patch)
treea24abf1d22c8ed7eb22c7bc2d3b283797f1ab0aa /sources/scalac/ast/TreeGen.java
parent8684be678d835f938a063ce9887370058254a22d (diff)
downloadscala-728ab1f19fd79630b4c0919b960dad9ecf6055f1.tar.gz
scala-728ab1f19fd79630b4c0919b960dad9ecf6055f1.tar.bz2
scala-728ab1f19fd79630b4c0919b960dad9ecf6055f1.zip
- Repolaced Tree argument of This and Super nod...
- Repolaced Tree argument of This and Super nodes by a Name argument
Diffstat (limited to 'sources/scalac/ast/TreeGen.java')
-rw-r--r--sources/scalac/ast/TreeGen.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java
index c3b22d9ac1..f890a63a61 100644
--- a/sources/scalac/ast/TreeGen.java
+++ b/sources/scalac/ast/TreeGen.java
@@ -108,7 +108,7 @@ public class TreeGen implements Kinds, Modifiers {
public Tree mkStableId(int pos, Type pre) {
switch (pre.expandModuleThis()) {
case ThisType(Symbol sym):
- return make.This(pos, Ident(pos, sym)).setType(pre);
+ return This(pos, sym);
case SingleType(Type pre1, Symbol sym):
return mkStable(mkRef(pos, pre1, sym));
default:
@@ -462,14 +462,13 @@ public class TreeGen implements Kinds, Modifiers {
/** Build and attribute this node with given symbol.
*/
public Tree This(int pos, Symbol sym) {
- Type type = sym.thisType();
- return make.This(pos, TypeTerm(pos, type)).setType(type);
+ return make.This(pos, sym).setType(sym.thisType());
}
/** Build and attribute super node with given type.
*/
- public Tree Super(int pos, Type type) {
- return make.Super(pos, TypeTerm(pos, type)).setType(type);
+ public Tree Super(int pos, Symbol sym) {
+ return make.Super(pos, sym).setType(sym.thisType());
}
/** Build and attribute value/variable/let definition node whose signature