summaryrefslogtreecommitdiff
path: root/sources/scalac/ast/TreeCreator.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/ast/TreeCreator.java')
-rw-r--r--sources/scalac/ast/TreeCreator.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/sources/scalac/ast/TreeCreator.java b/sources/scalac/ast/TreeCreator.java
index e9bb124465..60d40f6d63 100644
--- a/sources/scalac/ast/TreeCreator.java
+++ b/sources/scalac/ast/TreeCreator.java
@@ -85,9 +85,8 @@ public class TreeCreator implements TreeFactory {
public Tree TypeDef(int pos,
int mods,
Name name,
- TypeDef[] tparams,
Tree rhs) {
- Tree t = new ExtTypeDef(mods, name, tparams, rhs);
+ Tree t = new ExtTypeDef(mods, name, rhs);
t.pos = pos;
return t;
}
@@ -239,6 +238,12 @@ public class TreeCreator implements TreeFactory {
}
+ public Tree TypeTerm(int pos) {
+ Tree t = new TypeTerm();
+ t.pos = pos;
+ return t;
+ }
+
public Tree SingletonType(int pos, Tree ref) {
Tree t = new SingletonType(ref);
t.pos = pos;