Lines Matching refs:sym

153             int hash = getIndex(elems.sym.name);
155 Assert.check(e == elems, elems.sym);
184 table[getIndex(e.sym.name)] = e;
193 /** Enter symbol sym in this scope.
195 public void enter(Symbol sym) {
197 enter(sym, this);
200 public void enter(Symbol sym, Scope s) {
201 enter(sym, s, s);
205 * Enter symbol sym in this scope, but mark that it comes from
209 public void enter(Symbol sym, Scope s, Scope origin) {
213 int hash = getIndex(sym.name);
219 Entry e = makeEntry(sym, old, elems, s, origin);
225 l.head.symbolAdded(sym, this);
229 Entry makeEntry(Symbol sym, Entry shadowed, Entry sibling, Scope scope, Scope origin) {
230 return new Entry(sym, shadowed, sibling, scope);
235 public void symbolAdded(Symbol sym, Scope s);
236 public void symbolRemoved(Symbol sym, Scope s);
246 public void remove(Symbol sym) {
248 Entry e = lookup(sym.name);
252 int i = getIndex(sym.name);
278 l.head.symbolRemoved(sym, this);
282 /** Enter symbol sym in this scope if not already there.
284 public void enterIfAbsent(Symbol sym) {
286 Entry e = lookup(sym.name);
287 while (e.scope == this && e.sym.kind != sym.kind) e = e.next();
288 if (e.scope != this) enter(sym);
298 if (e.sym == c) return true;
312 * both its scope and sym fields, whereas both fields are non-null
322 while (e.scope != null && (e.sym.name != name || !sf.accepts(e.sym)))
334 else out.println(""+le+" s:"+le.sym);
357 } else if (e.sym.name == name)
382 Symbol sym = (currEntry == null ? null : currEntry.sym);
387 return sym;
404 while (currEntry != null && !sf.accepts(currEntry.sym)) {
429 return prevEntry.sym;
446 result.append(e.sym);
458 * sym == null iff this == sentinel
460 public Symbol sym;
477 public Entry(Symbol sym, Entry shadowed, Entry sibling, Scope scope) {
478 this.sym = sym;
492 if (shadowed.sym == null || sf.accepts(shadowed.sym)) return shadowed;
514 Entry makeEntry(Symbol sym, Entry shadowed, Entry sibling, Scope scope, Scope origin) {
515 return new ImportEntry(sym, shadowed, sibling, scope, origin);
521 ImportEntry(Symbol sym, Entry shadowed, Entry sibling, Scope scope, Scope origin) {
522 super(sym, shadowed, sibling, scope);
539 if (e.sym.kind == Kinds.TYP && !includes(e.sym))
540 enter(e.sym, fromScope);
546 public void symbolRemoved(Symbol sym, Scope s) {
547 remove(sym);
549 public void symbolAdded(Symbol sym, Scope s) { }
572 public void enter(Symbol sym) {
575 public void enter(Symbol sym, Scope s) {
578 public void remove(Symbol sym) {
579 throw new AssertionError(sym);
614 public void symbolAdded(Symbol sym, Scope s) {
617 sl.symbolAdded(sym, s);
621 public void symbolRemoved(Symbol sym, Scope s) {
624 sl.symbolRemoved(sym, s);
689 Symbol sym = currentIterator.next();
693 return sym;
721 public void enter(Symbol sym, Scope s, Scope origin) {
726 public void remove(Symbol sym) {