From 3b8db0dd75f9f5d3d3bea837e585a23e3fe1cd9a Mon Sep 17 00:00:00 2001 From: amin Date: Tue, 22 Nov 2011 13:15:15 +0000 Subject: Move allDeclarations to make it available to al... Move allDeclarations to make it available to all types, like declaration(...). Review by odersky. --- src/library/scala/reflect/api/Types.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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. -- cgit v1.2.3