Lines Matching defs:scope

31 /** A scope represents an area of visibility in a Java program. The
35 * Scopes can be nested; the next field of a scope points
36 * to its next outer scope. Nested scopes can share their hash tables.
45 /** The number of scopes that share this scope's hash table.
49 /** Next enclosing scope (with whom this scope may share a hashtable)
53 /** The scope's owner.
57 /** A hash table for the scope's entries.
70 /** The number of elements in this scope.
75 /** A list of scopes to be notified if items are to be removed from this scope.
88 /** A value for the empty scope.
92 /** Construct a new scope, within scope next, with given owner, using
109 /** Construct a new scope, within scope next, with given owner,
116 /** Construct a fresh scope within this scope, with same owner,
117 * which shares its table with the outer scope. Used in connection with
118 * method leave if scope access is stack-like in order to avoid allocation
125 /** Construct a fresh scope within this scope, with new owner,
126 * which shares its table with the outer scope. Used in connection with
127 * method leave if scope access is stack-like in order to avoid allocation
133 // System.out.println("====> duping scope " + this.hashCode() + " owned by " + newOwner + " to " + result.hashCode());
138 /** Construct a fresh scope within this scope, with same owner,
140 * the table of its outer scope.
146 /** Remove all entries of this scope from its table, if shared
162 // System.out.println("====> leaving scope " + this.hashCode() + " owned by " + this.owner + " to " + next.hashCode());
193 /** Enter symbol sym in this scope.
205 * Enter symbol sym in this scope, but mark that it comes from
206 * given scope `s' accessed through `origin'. The last two
229 Entry makeEntry(Symbol sym, Entry shadowed, Entry sibling, Scope scope, Scope origin) {
230 return new Entry(sym, shadowed, sibling, scope);
243 /** Remove symbol from this scope. Used when an inner class
249 if (e.scope == null) return;
282 /** Enter symbol sym in this scope if not already there.
287 while (e.scope == this && e.sym.kind != sym.kind) e = e.next();
288 if (e.scope != this) enter(sym);
292 * qualified name in this (import) scope?
296 e.scope == this;
310 * this scope and proceeding outwards. If no entry was found,
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)))
424 return currentEntry.scope != null;
453 /** A class for scope entries.
466 /** Next entry in same scope.
470 /** The entry's scope.
471 * scope == null iff this == sentinel
472 * for an entry in an import scope, this is the scope
475 public Scope scope;
477 public Entry(Symbol sym, Entry shadowed, Entry sibling, Scope scope) {
481 this.scope = scope;
485 * outwards if not found in this scope.
498 // other scope entries, the "enclosing" type is available
501 // error, we return scope which will be the same as origin
503 return scope;
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);
552 /** An empty scope, into which you can't place anything. Used for
553 * the scope for a variable initializer.
586 /** A class scope adds capabilities to keep track of changes in related
587 * class scopes - this allows client to realize whether a class scope
589 * to this scope) or indirectly (i.e. because a new member has been
590 * added/removed into a supertype scope)
731 /** An error scope, for which the owner should be an error symbol. */
747 if (e.scope == null)