@Test public void symbols_scope() { Symbol f = (Symbol) SYMBOL_MODEL.getSymbols("f").toArray()[0]; Symbol e = (Symbol) SYMBOL_MODEL.getSymbols("e").toArray()[0]; assertThat(f.scope().tree().is(Tree.Kind.SCRIPT)).isTrue(); assertThat(e.scope().tree().is(Tree.Kind.CATCH_BLOCK)).isTrue(); }
@Override public Set<Symbol> getSymbols() { return Collections.unmodifiableSet(symbols); }
SymbolModelImpl implements SymbolModel, SymbolModelBuilder { @Override public Set<Symbol> getSymbols() { return Collections.unmodifiableSet(symbols); } }
SymbolModelImpl implements SymbolModel, SymbolModelBuilder { @Override public Set<Symbol> getSymbols() { return Collections.unmodifiableSet(symbols); }  }
SymbolModelImpl implements SymbolModel, SymbolModelBuilder { @Override public Set<Symbol> getSymbols() { return Collections.unmodifiableSet(symbols); }  static void build(TreeVisitorContext context, @Nullable Configuration configuration); @Override Scope globalScope(); @Override void addScope(Scope scope); @Override Set<Scope> getScopes(); @Override Symbol declareSymbol(String name, Symbol.Kind kind, Scope scope); @Override Symbol declareExternalSymbol(String name, Symbol.Kind kind, Scope scope); @Override Set<Symbol> getSymbols(); @Override Set<Symbol> getSymbols(Symbol.Kind kind); @Override Set<Symbol> getSymbols(String name); @Nullable @Override Scope getScope(Tree tree); }
SymbolModelImpl implements SymbolModel, SymbolModelBuilder { @Override public Set<Symbol> getSymbols() { return Collections.unmodifiableSet(symbols); }  static void build(TreeVisitorContext context, @Nullable Configuration configuration); @Override Scope globalScope(); @Override void addScope(Scope scope); @Override Set<Scope> getScopes(); @Override Symbol declareSymbol(String name, Symbol.Kind kind, Scope scope); @Override Symbol declareExternalSymbol(String name, Symbol.Kind kind, Scope scope); @Override Set<Symbol> getSymbols(); @Override Set<Symbol> getSymbols(Symbol.Kind kind); @Override Set<Symbol> getSymbols(String name); @Nullable @Override Scope getScope(Tree tree);  }