summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scalac/symtab/Symbol.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java
index fa2bdbe0ca..04843818e2 100644
--- a/sources/scalac/symtab/Symbol.java
+++ b/sources/scalac/symtab/Symbol.java
@@ -933,6 +933,15 @@ public abstract class Symbol implements Modifiers, Kinds {
return type;
}
+ /** The infos of these symbols as an array.
+ */
+ static public Type[] info(Symbol[] syms) {
+ Type[] tps = new Type[syms.length];
+ for (int i = 0; i < syms.length; i++)
+ tps[i] = syms[i].info();
+ return tps;
+ }
+
/** The types of these symbols as an array.
*/
static public Type[] type(Symbol[] syms) {