diff options
author | paltherr <paltherr@epfl.ch> | 2003-10-14 13:32:43 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-10-14 13:32:43 +0000 |
commit | f52ca3cc46b1ed06ddb125f7c77be63a0e34a3df (patch) | |
tree | 87ed7195a9b62c40938c65d981551626d91ce61c /sources/scalac/ast/TreeGen.java | |
parent | 46781834bf5794bc610074ce0a8bf842196db05f (diff) | |
download | scala-f52ca3cc46b1ed06ddb125f7c77be63a0e34a3df.tar.gz scala-f52ca3cc46b1ed06ddb125f7c77be63a0e34a3df.tar.bz2 scala-f52ca3cc46b1ed06ddb125f7c77be63a0e34a3df.zip |
- Added methods TypeApply
Diffstat (limited to 'sources/scalac/ast/TreeGen.java')
-rw-r--r-- | sources/scalac/ast/TreeGen.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java index 93416b0e59..ccd3434bf7 100644 --- a/sources/scalac/ast/TreeGen.java +++ b/sources/scalac/ast/TreeGen.java @@ -472,6 +472,12 @@ public class TreeGen implements Kinds, Modifiers, TypeTags { } /** Builds a TypeApply node with given function and arguments. */ + public TypeApply TypeApply(int pos, Tree fn, Type[] targs) { + return TypeApply(pos, fn, mkTypes(pos, targs)); + } + public TypeApply TypeApply(Tree fn, Type[] targs) { + return TypeApply(fn.pos, fn, targs); + } public TypeApply TypeApply(int pos, Tree fn, Tree[] targs) { try { switch (fn.type) { |