From f52ca3cc46b1ed06ddb125f7c77be63a0e34a3df Mon Sep 17 00:00:00 2001 From: paltherr Date: Tue, 14 Oct 2003 13:32:43 +0000 Subject: - Added methods TypeApply --- sources/scalac/ast/TreeGen.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sources/scalac') 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) { -- cgit v1.2.3