summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/Scope.java
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2003-09-07 17:54:44 +0000
committerMartin Odersky <odersky@gmail.com>2003-09-07 17:54:44 +0000
commit70d78cbfc802ccc49d5d324755865ff07985dfef (patch)
treebc524a99cc8d3f6a5a722a60d98aacbd06f9c92b /sources/scalac/symtab/Scope.java
parent43c5c82eb9ee00e7d87042a1195d854f4ac79df3 (diff)
downloadscala-70d78cbfc802ccc49d5d324755865ff07985dfef.tar.gz
scala-70d78cbfc802ccc49d5d324755865ff07985dfef.tar.bz2
scala-70d78cbfc802ccc49d5d324755865ff07985dfef.zip
*** empty log message ***
Diffstat (limited to 'sources/scalac/symtab/Scope.java')
-rw-r--r--sources/scalac/symtab/Scope.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/sources/scalac/symtab/Scope.java b/sources/scalac/symtab/Scope.java
index d0a2bf5b9b..9a3125f21c 100644
--- a/sources/scalac/symtab/Scope.java
+++ b/sources/scalac/symtab/Scope.java
@@ -69,11 +69,11 @@ public class Scope {
/** the next entry in the hash bucket
*/
- Entry tail;
+ private Entry tail;
/** the next entry in this scope
*/
- public Entry next;
+ private Entry next;
/** The owner of the entry;
*/
@@ -109,7 +109,7 @@ public class Scope {
/** all elements of this scope
*/
- public Entry elems;
+ private Entry elems;
/** the hash table
*/
@@ -165,6 +165,12 @@ public class Scope {
return clone;
}
+ /** is the scope empty?
+ */
+ public boolean isEmpty() {
+ return elems == Entry.NONE;
+ }
+
/** the number of entries in this scope
*/
int size() {