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.jstype |
Provides abstractions to represent types in JavaScript.
|
com.google.javascript.rhino.testing |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GlobalNamespace.Name
A name defined in global scope (e.g.
|
private static class |
LinkedFlowScope.LinkedFlowSlot
A static slot that can be used in a linked list.
|
static class |
SymbolTable.Symbol
A symbol-table entry
|
class |
TypedVar
Several methods in this class, such as
isVar throw an exception when called. |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,StaticTypedSlot<JSType>> |
LinkedFlowScope.FlatFlowScopeCache.symbols |
Modifier and Type | Method and Description |
---|---|
StaticTypedSlot<JSType> |
LinkedFlowScope.findUniqueRefinedSlot(FlowScope blindScope)
Iterate through all the linked flow scopes before this one.
|
StaticTypedSlot<JSType> |
LinkedFlowScope.getOwnSlot(java.lang.String name) |
StaticTypedSlot<JSType> |
LinkedFlowScope.getSlot(java.lang.String name)
Get the slot for the given symbol.
|
StaticTypedSlot<JSType> |
LinkedFlowScope.FlatFlowScopeCache.getSlot(java.lang.String name)
Get the slot for the given symbol.
|
StaticTypedSlot<TypeI> |
GlobalNamespace.Ref.getSymbol() |
Modifier and Type | Method and Description |
---|---|
private java.util.Map<java.lang.String,StaticTypedSlot<JSType>> |
LinkedFlowScope.allFlowSlots()
Gets all the symbols that have been defined before this point
in the current flow.
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
LinkedFlowScope.diffSlots(StaticTypedSlot<JSType> slotA,
StaticTypedSlot<JSType> slotB)
Determines whether two slots are meaningfully different for the
purposes of data flow analysis.
|
private static boolean |
LinkedFlowScope.diffSlots(StaticTypedSlot<JSType> slotA,
StaticTypedSlot<JSType> slotB)
Determines whether two slots are meaningfully different for the
purposes of data flow analysis.
|
Modifier and Type | Method and Description |
---|---|
StaticTypedSlot<JSType> |
FlowScope.findUniqueRefinedSlot(FlowScope blindScope)
Tries to find a unique refined variable in the refined scope, up to the
the blind scope.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleReference<T extends StaticTypedSlot<JSType>>
A simple immutable reference.
|
Modifier and Type | Class and Description |
---|---|
class |
Property
A property slot of an object.
|
class |
SimpleSlot
The minimum implementation of
StaticTypedSlot<JSType> . |
Modifier and Type | Field and Description |
---|---|
private T |
SimpleReference.symbol |
Modifier and Type | Method and Description |
---|---|
StaticTypedSlot<T> |
StaticTypedScope.getOwnSlot(java.lang.String name)
Like
getSlot but does not recurse into parent scopes. |
StaticTypedSlot<T> |
StaticTypedScope.getSlot(java.lang.String name)
Returns any defined slot within this scope for this name.
|
StaticTypedSlot<T> |
StaticTypedRef.getSymbol()
The variable that this reference points to.
|
Modifier and Type | Method and Description |
---|---|
private JSType |
NamedType.getTypedefType(ErrorReporter t,
StaticTypedSlot<JSType> slot) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,StaticTypedSlot<JSType>> |
MapBasedScope.slots |
Modifier and Type | Method and Description |
---|---|
StaticTypedSlot<T> |
AbstractStaticScope.getOwnSlot(java.lang.String name) |
abstract StaticTypedSlot<T> |
AbstractStaticScope.getSlot(java.lang.String name) |
StaticTypedSlot<JSType> |
MapBasedScope.getSlot(java.lang.String name) |