Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Method and Description |
---|---|
SymbolTable.Symbol |
SymbolTable.declareInferredSymbol(SymbolTable.SymbolScope scope,
java.lang.String name,
Node declNode)
Declare a symbol after the main symbol table was constructed.
|
SymbolTable.Symbol |
SymbolTable.getParameterInFunction(SymbolTable.Symbol sym,
java.lang.String paramName)
If
sym is a function, try to find a Symbol for
a parameter with the given name. |
SymbolTable.Symbol |
SymbolTable.SymbolScope.getQualifiedSlot(java.lang.String name)
Get the slot for a fully-qualified name (e.g., "a.b.c") by trying
to find property scopes at each part of the path.
|
SymbolTable.Symbol |
SymbolTable.SymbolScope.getSlot(java.lang.String name) |
SymbolTable.Symbol |
SymbolTable.getSymbolDeclaredBy(EnumType enumType)
Gets the symbol for the given enum.
|
SymbolTable.Symbol |
SymbolTable.getSymbolDeclaredBy(FunctionType fn)
Gets the symbol for the given constructor or interface.
|
SymbolTable.Symbol |
SymbolTable.getSymbolForInstancesOf(FunctionType fn)
Gets the symbol for the prototype of the given constructor or interface.
|
SymbolTable.Symbol |
SymbolTable.getSymbolForInstancesOf(SymbolTable.Symbol sym)
Gets the symbol for the prototype if this is the symbol for a constructor
or interface.
|
SymbolTable.Symbol |
SymbolTable.getSymbolForScope(SymbolTable.SymbolScope scope)
All local scopes are associated with a function, and some functions
are associated with a symbol.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<SymbolTable.Symbol> |
SymbolTable.getAllSymbols() |
java.util.List<SymbolTable.Symbol> |
SymbolTable.getAllSymbolsForType(JSType type)
Gets all symbols associated with the given type.
|
java.lang.Iterable<SymbolTable.Symbol> |
SymbolTable.getAllSymbolsForTypeOf(SymbolTable.Symbol sym)
Get all symbols associated with the type of the given symbol.
|
java.util.List<SymbolTable.Symbol> |
SymbolTable.getAllSymbolsSorted()
Get the symbols in their natural ordering.
|
com.google.common.collect.Ordering<SymbolTable.Symbol> |
SymbolTable.getNaturalSymbolOrdering()
Gets the 'natural' ordering of symbols.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<SymbolTable.Symbol> |
SymbolTable.getAllSymbolsForTypeOf(SymbolTable.Symbol sym)
Get all symbols associated with the type of the given symbol.
|
int |
SymbolTable.SymbolScope.getIndexOfSymbol(SymbolTable.Symbol sym)
Gets a unique index for the symbol in this scope.
|
SymbolTable.Symbol |
SymbolTable.getParameterInFunction(SymbolTable.Symbol sym,
java.lang.String paramName)
If
sym is a function, try to find a Symbol for
a parameter with the given name. |
com.google.common.collect.ImmutableList<SymbolTable.Reference> |
SymbolTable.getReferenceList(SymbolTable.Symbol symbol) |
java.lang.Iterable<SymbolTable.Reference> |
SymbolTable.getReferences(SymbolTable.Symbol symbol) |
SymbolTable.SymbolScope |
SymbolTable.getScope(SymbolTable.Symbol slot) |
SymbolTable.Symbol |
SymbolTable.getSymbolForInstancesOf(SymbolTable.Symbol sym)
Gets the symbol for the prototype if this is the symbol for a constructor
or interface.
|
Copyright © 2009-2018 Google. All Rights Reserved.