summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/api/Symbols.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-01-31 15:12:19 +0100
committerEugene Burmako <xeno.by@gmail.com>2014-02-14 23:51:23 +0100
commit9582eb583db09f3e079fff2a9a6f9d9761e700f4 (patch)
tree2f9d6d9a5cc995d9d14facd46aa93bd11442a3fc /src/reflect/scala/reflect/api/Symbols.scala
parent2155ca4bba9de396bde32588e63736042178ca49 (diff)
downloadscala-9582eb583db09f3e079fff2a9a6f9d9761e700f4.tar.gz
scala-9582eb583db09f3e079fff2a9a6f9d9761e700f4.tar.bz2
scala-9582eb583db09f3e079fff2a9a6f9d9761e700f4.zip
adds Symbol.alternatives
As per Jason’s additional request, this commit exposes alternatives in the base Symbol type, rather than only in TermSymbol.
Diffstat (limited to 'src/reflect/scala/reflect/api/Symbols.scala')
-rw-r--r--src/reflect/scala/reflect/api/Symbols.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/reflect/scala/reflect/api/Symbols.scala b/src/reflect/scala/reflect/api/Symbols.scala
index b30c6de01d..5f9334e358 100644
--- a/src/reflect/scala/reflect/api/Symbols.scala
+++ b/src/reflect/scala/reflect/api/Symbols.scala
@@ -319,6 +319,12 @@ trait Symbols { self: Universe =>
*/
def allOverriddenSymbols: List[Symbol]
+ /** The overloaded alternatives of this symbol
+ *
+ * @group Basics
+ */
+ def alternatives: List[Symbol]
+
/******************* tests *******************/
/** Does this symbol represent a synthetic (i.e. a compiler-generated) entity?
@@ -568,12 +574,6 @@ trait Symbols { self: Universe =>
*/
def isLazy: Boolean
- /** The overloaded alternatives of this symbol
- *
- * @group Term
- */
- def alternatives: List[Symbol]
-
/** Used to provide a better error message for `asMethod` */
override protected def isOverloadedMethod = alternatives exists (_.isMethod)