diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-01-31 15:12:19 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-14 23:51:23 +0100 |
commit | 9582eb583db09f3e079fff2a9a6f9d9761e700f4 (patch) | |
tree | 2f9d6d9a5cc995d9d14facd46aa93bd11442a3fc /src/reflect/scala/reflect/api/Symbols.scala | |
parent | 2155ca4bba9de396bde32588e63736042178ca49 (diff) | |
download | scala-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.scala | 12 |
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) |