@Test public void testIsEmpty() { assertTrue(stack.isEmpty()); stack.addLevel(); assertFalse(stack.isEmpty()); stack.dropLevel(); assertTrue(stack.isEmpty()); }
public boolean isEmpty() { return scopes.isEmpty(); }
SymbolScopeStack { public boolean isEmpty() { return scopes.isEmpty(); } }
SymbolScopeStack { public boolean isEmpty() { return scopes.isEmpty(); } SymbolScopeStack(); }
SymbolScopeStack { public boolean isEmpty() { return scopes.isEmpty(); } SymbolScopeStack(); void addLevel(); void addLevel(String label); SymbolScope dropLevel(); void addSymbol(String name, SymbolType type, ScopeType scopeType); boolean isEmpty(); int size(); boolean isDefined(String name); boolean isDefined(String name, SymbolType type); boolean isDefined(String name, ScopeType scopeType); Symbol findSymbol(String name); }
SymbolScopeStack { public boolean isEmpty() { return scopes.isEmpty(); } SymbolScopeStack(); void addLevel(); void addLevel(String label); SymbolScope dropLevel(); void addSymbol(String name, SymbolType type, ScopeType scopeType); boolean isEmpty(); int size(); boolean isDefined(String name); boolean isDefined(String name, SymbolType type); boolean isDefined(String name, ScopeType scopeType); Symbol findSymbol(String name);  }