summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-10-03 23:20:53 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-10-03 23:56:33 +0200
commitf4521c7f4fd77bc42d4b3d9e6f8f8309a00fa922 (patch)
tree19b3b2af7ad7da5a7d1026a61e82ad8b242de843 /src
parent7ee5bc9e549f07b8e73babce456e72539d7413d3 (diff)
downloadscala-f4521c7f4fd77bc42d4b3d9e6f8f8309a00fa922.tar.gz
scala-f4521c7f4fd77bc42d4b3d9e6f8f8309a00fa922.tar.bz2
scala-f4521c7f4fd77bc42d4b3d9e6f8f8309a00fa922.zip
removes extraneous methods from api.Scopes
It's been more than a year, and I never used these methods.
Diffstat (limited to 'src')
-rw-r--r--src/reflect/scala/reflect/api/Scopes.scala14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/reflect/scala/reflect/api/Scopes.scala b/src/reflect/scala/reflect/api/Scopes.scala
index d30da07ad5..770349c5b5 100644
--- a/src/reflect/scala/reflect/api/Scopes.scala
+++ b/src/reflect/scala/reflect/api/Scopes.scala
@@ -21,6 +21,9 @@ trait Scopes { self: Universe =>
*/
implicit val ScopeTag: ClassTag[Scope]
+ /** Create a new scope with the given initial elements. */
+ def newScopeWith(elems: Symbol*): Scope
+
/** The type of member scopes, as in class definitions, for example. */
type MemberScope >: Null <: Scope with MemberScopeApi
@@ -28,7 +31,7 @@ trait Scopes { self: Universe =>
trait MemberScopeApi extends ScopeApi {
/** Sorts the symbols included in this scope so that:
* 1) Symbols appear in the linearization order of their owners.
- * 2) Symbols with the same owner appear in reverse order of their declarations.
+ * 2) Symbols with the same owner appear in same order of their declarations.
* 3) Synthetic members (e.g. getters/setters for vals/vars) might appear in arbitrary order.
*/
def sorted: List[Symbol]
@@ -38,13 +41,4 @@ trait Scopes { self: Universe =>
* Can be used for pattern matching, instance tests, serialization and likes.
*/
implicit val MemberScopeTag: ClassTag[MemberScope]
-
- /** Create a new scope. */
- def newScope: Scope
-
- /** Create a new scope nested in another one with which it shares its elements. */
- def newNestedScope(outer: Scope): Scope
-
- /** Create a new scope with the given initial elements. */
- def newScopeWith(elems: Symbol*): Scope
} \ No newline at end of file