@Test public void symbols_filtering() { assertThat(SYMBOL_MODEL.getSymbols()).hasSize(20); assertThat(SYMBOL_MODEL.getSymbols(Symbol.Kind.FUNCTION)).hasSize(2); assertThat(SYMBOL_MODEL.getSymbols(Symbol.Kind.CLASS)).hasSize(1); assertThat(SYMBOL_MODEL.getSymbols(Symbol.Kind.FIELD)).hasSize(3); assertThat(SYMBOL_MODEL.getSymbols(Symbol.Kind.PARAMETER)).hasSize(1); assertThat(SYMBOL_MODEL.getSymbols(Symbol.Kind.VARIABLE)).hasSize(13); assertThat(SYMBOL_MODEL.getSymbols("$a")).hasSize(3); assertThat(SYMBOL_MODEL.getSymbols("$A")).hasSize(0); assertThat(SYMBOL_MODEL.getSymbols("f")).hasSize(2); assertThat(SYMBOL_MODEL.getSymbols("F")).hasSize(2); }
public ImmutableList<Symbol> getSymbols() { return ImmutableList.copyOf(symbols); }
SymbolTableImpl implements SymbolTable { public ImmutableList<Symbol> getSymbols() { return ImmutableList.copyOf(symbols); } }
SymbolTableImpl implements SymbolTable { public ImmutableList<Symbol> getSymbols() { return ImmutableList.copyOf(symbols); } private  SymbolTableImpl(); }
SymbolTableImpl implements SymbolTable { public ImmutableList<Symbol> getSymbols() { return ImmutableList.copyOf(symbols); } private  SymbolTableImpl(); static SymbolTableImpl create(CompilationUnitTree compilationUnit); static SymbolTableImpl create(CompilationUnitTree compilationUnit, ProjectSymbolData projectSymbolData, @Nullable PhpFile file); @Override ImmutableSet<Scope> getScopes(); @Nullable @Override Scope getScopeFor(Tree tree); ImmutableList<Symbol> getSymbols(); @Override List<Symbol> getSymbols(Symbol.Kind kind); List<Symbol> getSymbols(String name); @Override @CheckForNull Symbol getSymbol(Tree tree); Collection<ClassSymbolData> classSymbolDatas(); Collection<FunctionSymbolData> functionSymbolDatas(); }
SymbolTableImpl implements SymbolTable { public ImmutableList<Symbol> getSymbols() { return ImmutableList.copyOf(symbols); } private  SymbolTableImpl(); static SymbolTableImpl create(CompilationUnitTree compilationUnit); static SymbolTableImpl create(CompilationUnitTree compilationUnit, ProjectSymbolData projectSymbolData, @Nullable PhpFile file); @Override ImmutableSet<Scope> getScopes(); @Nullable @Override Scope getScopeFor(Tree tree); ImmutableList<Symbol> getSymbols(); @Override List<Symbol> getSymbols(Symbol.Kind kind); List<Symbol> getSymbols(String name); @Override @CheckForNull Symbol getSymbol(Tree tree); Collection<ClassSymbolData> classSymbolDatas(); Collection<FunctionSymbolData> functionSymbolDatas();  }