Move allDeclarations to make it available to all types, like declaration(...). Review by odersky.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26043 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
amin 2011-11-22 13:15:15 +00:00
parent 385fbadd6e
commit e14da1b8ef
1 changed files with 6 additions and 6 deletions

View File

@ -12,12 +12,16 @@ trait Types { self: Universe =>
*/
def typeSymbol: Symbol
/** The defined or declared members with name `name` in this type;
/** The defined or declared members with name `name` in this type;
* an OverloadedSymbol if several exist, NoSymbol if none exist.
* Alternatives of overloaded symbol appear in the order they are declared.
*/
def declaration(name: Name): Symbol
/** The collection of declarations in this type
*/
def allDeclarations: Iterable[Symbol]
/** The member with given name, either directly declared or inherited,
* an OverloadedSymbol if several exist, NoSymbol if none exist.
*/
@ -152,10 +156,6 @@ trait Types { self: Universe =>
/** The list of parent types of this compound type */
def parents: List[Type]
/** The collection of declarations in this compound type
*/
def allDeclarations: Iterable[Symbol]
}
/** The type of Scala types, and also Scala type signatures.