summaryrefslogtreecommitdiff
path: root/src/library/scala/reflect/api/Scopes.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/reflect/api/Scopes.scala')
-rwxr-xr-xsrc/library/scala/reflect/api/Scopes.scala9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/library/scala/reflect/api/Scopes.scala b/src/library/scala/reflect/api/Scopes.scala
index d4e4e24f29..4a5702eadc 100755
--- a/src/library/scala/reflect/api/Scopes.scala
+++ b/src/library/scala/reflect/api/Scopes.scala
@@ -5,7 +5,12 @@ trait Scopes { self: Universe =>
type Scope <: Iterable[Symbol]
- def newScope(): Scope
-}
+ /** 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 given initial elements */
+ def newScopeWith(elems: Symbol*): Scope
+} \ No newline at end of file