summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/reflect/internal/Scopes.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/scala/reflect/internal/Scopes.scala b/src/compiler/scala/reflect/internal/Scopes.scala
index c150abc7db..9cd67375ac 100644
--- a/src/compiler/scala/reflect/internal/Scopes.scala
+++ b/src/compiler/scala/reflect/internal/Scopes.scala
@@ -311,6 +311,13 @@ trait Scopes extends api.Scopes { self: SymbolTable =>
def newScope: Scope = new Scope
+ def newScopeWith(elems: Symbol*) = {
+ val scope = newScope
+ elems foreach scope.enter
+ scope
+ }
+
+
/** The empty scope (immutable).
*/
object EmptyScope extends Scope {