From 5253396420ebd8cfedf0adbc8d12bf9ea2b269bf Mon Sep 17 00:00:00 2001 From: schinz Date: Mon, 17 Feb 2003 13:39:02 +0000 Subject: - made Param obsolete, and introduced ValDef as... - made Param obsolete, and introduced ValDef as alias (to reflect the change in Tree.java) --- sources/scalac/ast/TreeGen.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sources') diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java index 26b02eb862..9a2f4310a1 100644 --- a/sources/scalac/ast/TreeGen.java +++ b/sources/scalac/ast/TreeGen.java @@ -267,10 +267,20 @@ public class TreeGen implements Kinds, Modifiers { /** Build parameter */ public ValDef Param(int pos, Symbol sym) { + global.log("use of obsolete Param method in TreeGen"); return (ValDef)ValDef(pos, sym, Tree.Empty); } public ValDef Param(Symbol sym) { + global.log("use of obsolete Param method in TreeGen"); + return Param(sym.pos, sym); + } + + public ValDef ValDef(int pos, Symbol sym) { + return (ValDef)ValDef(pos, sym, Tree.Empty); + } + + public ValDef ValDef(Symbol sym) { return Param(sym.pos, sym); } -- cgit v1.2.3