From cc00fa9f4324d03b86786f81117163b30fe3db81 Mon Sep 17 00:00:00 2001 From: paltherr Date: Fri, 7 Nov 2003 10:26:32 +0000 Subject: - Added methods resultType and nextResultType --- sources/scalac/symtab/Symbol.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sources') diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index 7dd1823ad3..6d441e5f29 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -591,6 +591,11 @@ public abstract class Symbol implements Modifiers, Kinds { return EMPTY_ARRAY; } + /** Get result type */ + public final Type resultType() { + return type().resultType(); + } + /** Get type parameters at start of next phase */ public final Symbol[] nextTypeParams() { Global.instance.nextPhase(); @@ -607,6 +612,11 @@ public abstract class Symbol implements Modifiers, Kinds { return vparams; } + /** Get result type at start of next phase */ + public final Type nextResultType() { + return nextType().resultType(); + } + /** Get all constructors of class */ public Symbol allConstructors() { return NONE; -- cgit v1.2.3