diff options
author | amin <amin@epfl.ch> | 2011-11-22 13:15:15 +0000 |
---|---|---|
committer | amin <amin@epfl.ch> | 2011-11-22 13:15:15 +0000 |
commit | 3b8db0dd75f9f5d3d3bea837e585a23e3fe1cd9a (patch) | |
tree | 76fdd925ca2af02696699ed1d17a47a7d8fa1cb4 | |
parent | e86f07fdd4d74f19d5206ded07739b4fa17957ad (diff) | |
download | scala-3b8db0dd75f9f5d3d3bea837e585a23e3fe1cd9a.tar.gz scala-3b8db0dd75f9f5d3d3bea837e585a23e3fe1cd9a.tar.bz2 scala-3b8db0dd75f9f5d3d3bea837e585a23e3fe1cd9a.zip |
Move allDeclarations to make it available to al...
Move allDeclarations to make it available to all types, like
declaration(...). Review by odersky.
-rwxr-xr-x | src/library/scala/reflect/api/Types.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/library/scala/reflect/api/Types.scala b/src/library/scala/reflect/api/Types.scala index 75189d51cb..4b959649fd 100755 --- a/src/library/scala/reflect/api/Types.scala +++ b/src/library/scala/reflect/api/Types.scala @@ -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. |