diff options
Diffstat (limited to 'sources/scalac/symtab/Symbol.java')
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 10 |
1 files changed, 10 insertions, 0 deletions
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; |