src/share/classes/com/sun/tools/javac/code/Scope.java

changeset 780
1d625fbe6c22
parent 767
7e3e9f6d013f
child 816
7c537f4298fb
equal deleted inserted replaced
779:5ef88773462b 780:1d625fbe6c22
493 */ 493 */
494 public Entry next() { 494 public Entry next() {
495 return shadowed; 495 return shadowed;
496 } 496 }
497 497
498 public Entry next(Filter<Symbol> sf) {
499 if (shadowed.sym == null || sf.accepts(shadowed.sym)) return shadowed;
500 else return shadowed.next(sf);
501 }
502
498 public Scope getOrigin() { 503 public Scope getOrigin() {
499 // The origin is only recorded for import scopes. For all 504 // The origin is only recorded for import scopes. For all
500 // other scope entries, the "enclosing" type is available 505 // other scope entries, the "enclosing" type is available
501 // from other sources. See Attr.visitSelect and 506 // from other sources. See Attr.visitSelect and
502 // Attr.visitIdent. Rather than throwing an assertion 507 // Attr.visitIdent. Rather than throwing an assertion

mercurial