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 |
---|---|
class |
Scope
Scope contains information about a variable scope in JavaScript.
|
static class |
SymbolTable.SymbolScope
Scope of a symbol
|
Modifier and Type | Method and Description |
---|---|
StaticScope<JSType> |
Scope.getParentScope() |
StaticScope<JSType> |
Scope.getScope(Scope.Var var) |
Modifier and Type | Method and Description |
---|---|
void |
CodingConvention.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
StaticScope<JSType> scope,
List<ObjectType> delegateProxyPrototypes,
Map<String,String> delegateCallingConventions)
Defines the delegate proxy prototype properties.
|
void |
CodingConventions.Proxy.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
StaticScope<JSType> scope,
List<ObjectType> delegateProxyPrototypes,
Map<String,String> delegateCallingConventions) |
Modifier and Type | Interface and Description |
---|---|
interface |
FlowScope
A symbol table for inferring types during data flow analysis.
|
Modifier and Type | Method and Description |
---|---|
void |
FlowScope.completeScope(StaticScope<JSType> scope)
Look through the given scope, and try to find slots where it doesn't
have enough type information.
|
Modifier and Type | Method and Description |
---|---|
JSType |
JSTypeExpression.evaluate(StaticScope<JSType> scope,
JSTypeRegistry registry)
Evaluates the type expression into a
JSType object. |
Modifier and Type | Class and Description |
---|---|
class |
EnumElementType
The type of individual elements of an enum type
(see
EnumType ). |
class |
EnumType
An enum type representing a branded collection of elements.
|
class |
FunctionType
This derived type provides extended information about a function, including
its return type and argument types.
|
class |
NamedType
A
NamedType is a named reference to some other type. |
class |
NoObjectType
The bottom Object type, representing the subclass of all objects.
|
class |
NoType
Bottom type, representing the subclass of any value or object.
|
class |
ObjectType
Object type.
|
class |
PrototypeObjectType
The object type represents instances of JavaScript objects such as
Object , Date , Function . |
class |
ProxyObjectType
An object type which uses composition to delegate all calls.
|
class |
RecordType
A record (structural) type.
|
class |
TemplateType |
class |
TemplatizedType
An object type with declared template types, such as
Array . |
class |
UnknownType
The
Unknown type. |
Modifier and Type | Method and Description |
---|---|
StaticScope<T> |
StaticScope.getParentScope()
Returns the scope enclosing this one or null if none.
|
StaticScope<JSType> |
StaticSymbolTable.getScope(S symbol)
Returns the scope for a given symbol.
|
Modifier and Type | Method and Description |
---|---|
JSType |
JSTypeRegistry.createFromTypeNodes(Node n,
String sourceName,
StaticScope<JSType> scope)
Creates a JSType from the nodes representing a type.
|
JSType |
JSTypeRegistry.getType(StaticScope<JSType> scope,
String jsTypeName,
String sourceName,
int lineno,
int charno)
Looks up a type by name.
|
JSType |
JSType.resolve(ErrorReporter t,
StaticScope<JSType> scope)
Resolve this type in the given scope.
|
void |
JSTypeRegistry.resolveTypesInScope(StaticScope<JSType> scope)
Resolve all the unresolved types in the given scope.
|
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.
|
Modifier and Type | Method and Description |
---|---|
StaticScope<T> |
AbstractStaticScope.getParentScope() |
Modifier and Type | Method and Description |
---|---|
static JSType |
Asserts.assertValidResolve(JSType type,
StaticScope<JSType> scope) |
Copyright © 2009–2018 Google. All rights reserved.