equal
deleted
inserted
replaced
807 this.origin = origin; |
807 this.origin = origin; |
808 } |
808 } |
809 |
809 |
810 @Override |
810 @Override |
811 public Iterable<Symbol> getSymbols(Filter<Symbol> sf, LookupKind lookupKind) { |
811 public Iterable<Symbol> getSymbols(Filter<Symbol> sf, LookupKind lookupKind) { |
812 return sf == null || sf.accepts(sym) ? content : Collections.<Symbol>emptyList(); |
812 return sf == null || sf.accepts(sym) ? content : Collections.emptyList(); |
813 } |
813 } |
814 |
814 |
815 @Override |
815 @Override |
816 public Iterable<Symbol> getSymbolsByName(Name name, |
816 public Iterable<Symbol> getSymbolsByName(Name name, |
817 Filter<Symbol> sf, |
817 Filter<Symbol> sf, |
818 LookupKind lookupKind) { |
818 LookupKind lookupKind) { |
819 return sym.name == name && |
819 return sym.name == name && |
820 (sf == null || sf.accepts(sym)) ? content : Collections.<Symbol>emptyList(); |
820 (sf == null || sf.accepts(sym)) ? content : Collections.emptyList(); |
821 } |
821 } |
822 |
822 |
823 @Override |
823 @Override |
824 public Scope getOrigin(Symbol byName) { |
824 public Scope getOrigin(Symbol byName) { |
825 return sym == byName ? origin : null; |
825 return sym == byName ? origin : null; |