Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.type |
Provides type-checking data structures and algorithms.
|
com.google.javascript.rhino |
The core AST from Rhino.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
com.google.javascript.rhino.testing |
Modifier and Type | Class and Description |
---|---|
(package private) class |
GlobalNamespace
Builds a global namespace of all the objects and their properties in
the global scope.
|
(package private) class |
LinkedFlowScope
A flow scope that tries to store as little symbol information as possible,
instead delegating to its parents.
|
(package private) class |
PreprocessorSymbolTable
A symbol table for references that are removed by preprocessor passes
(like
ProcessClosurePrimitives ). |
class |
Scope
Scope contains information about a variable scope in JavaScript.
|
class |
TypedScope
TypedScope contains information about variables and their types.
|
Modifier and Type | Method and Description |
---|---|
(package private) <S extends StaticScope> |
SymbolTable.addScopes(java.util.Collection<S> scopes)
Make sure all the given scopes in
otherSymbolTable
are in this symbol table. |
Modifier and Type | Method and Description |
---|---|
StaticScope |
Scope.getParentScope() |
Modifier and Type | Method and Description |
---|---|
private SymbolTable.SymbolScope |
SymbolTable.createScopeFrom(StaticScope otherScope)
Given a scope from another symbol table, returns the
SymbolScope
rooted at the same node. |
private JSType |
SymbolTable.getTypeOfThis(StaticScope s) |
Modifier and Type | Interface and Description |
---|---|
interface |
FlowScope
A symbol table for inferring types during data flow analysis.
|
Modifier and Type | Method and Description |
---|---|
StaticScope |
StaticScope.getParentScope()
Returns the scope enclosing this one or null if none.
|
StaticScope |
StaticSymbolTable.getScope(S symbol)
Returns the scope for a given symbol.
|
Modifier and Type | Interface and Description |
---|---|
interface |
StaticTypedScope<T>
The
StaticTypedScope interface must be implemented by any object that
defines variables for the purposes of static analysis. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractStaticScope<T>
A scope that just returns null for everything.
|
class |
MapBasedScope
A scope based on a simple hashmap.
|