From 70d78cbfc802ccc49d5d324755865ff07985dfef Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 7 Sep 2003 17:54:44 +0000 Subject: *** empty log message *** --- sources/scalac/symtab/Scope.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sources/scalac/symtab/Scope.java') 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() { -- cgit v1.2.3