diff options
author | paltherr <paltherr@epfl.ch> | 2003-11-07 10:26:32 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-11-07 10:26:32 +0000 |
commit | cc00fa9f4324d03b86786f81117163b30fe3db81 (patch) | |
tree | ad1b9a93af7fbf1940add20684ab32990cabc58a /sources | |
parent | e721ad85bbb88951a6a84e9427f576d492cfbae9 (diff) | |
download | scala-cc00fa9f4324d03b86786f81117163b30fe3db81.tar.gz scala-cc00fa9f4324d03b86786f81117163b30fe3db81.tar.bz2 scala-cc00fa9f4324d03b86786f81117163b30fe3db81.zip |
- Added methods resultType and nextResultType
Diffstat (limited to 'sources')
-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; |