diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/Scopes.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Scopes.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Scopes.scala b/src/compiler/scala/tools/nsc/symtab/Scopes.scala index c42c3219ba..29a01cf9c1 100644 --- a/src/compiler/scala/tools/nsc/symtab/Scopes.scala +++ b/src/compiler/scala/tools/nsc/symtab/Scopes.scala @@ -344,7 +344,9 @@ trait Scopes { /** Return all symbols as an interator in the order they were entered in this scope. */ - def elements: Iterator[Symbol] = toList.elements + def iterator: Iterator[Symbol] = toList.iterator + + @deprecated def elements = iterator def filter(p: Symbol => Boolean): Scope = if (!(toList forall p)) newScope(toList filter p) else this |