@Test public void test_class_fields() { Symbol field = SYMBOL_MODEL.getSymbols("$field1").get(0); Symbol constantField = SYMBOL_MODEL.getSymbols("CONSTANT_FIELD").get(0); assertThat(field.hasModifier("public")).isTrue(); assertThat(field.is(Symbol.Kind.FIELD)).isTrue(); assertThat(constantField.hasModifier("const")).isTrue(); assertThat(constantField.is(Symbol.Kind.FIELD)).isTrue(); }
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();  }