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 |
TypedScope
TypedScope contains information about variables and their types.
|
Modifier and Type | Method and Description |
---|---|
StaticTypedScope<JSType> |
TypedScope.getParentScope() |
Modifier and Type | Method and Description |
---|---|
void |
CodingConvention.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
StaticTypedScope<JSType> scope,
List<ObjectType> delegateProxyPrototypes,
Map<String,String> delegateCallingConventions)
Defines the delegate proxy prototype properties.
|
void |
CodingConventions.Proxy.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
StaticTypedScope<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(StaticTypedScope<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 |
---|---|
TypeI |
TypeIRegistry.createTypeFromCommentNode(Node n,
String sourceName,
StaticTypedScope<? extends TypeI> scope) |
JSType |
JSTypeExpression.evaluate(StaticTypedScope<JSType> scope,
TypeIRegistry registry)
Evaluates the type expression into a
JSType object. |
Modifier and Type | Method and Description |
---|---|
StaticTypedScope<T> |
StaticTypedScope.getParentScope()
Returns the scope enclosing this one or null if none.
|
Modifier and Type | Method and Description |
---|---|
JSType |
JSTypeRegistry.createTypeFromCommentNode(Node n,
String sourceName,
StaticTypedScope<? extends TypeI> scope)
Creates a JSType from the nodes representing a type.
|
JSType |
JSTypeRegistry.getType(StaticTypedScope<JSType> scope,
String jsTypeName,
String sourceName,
int lineno,
int charno)
Looks up a type by name.
|
JSType |
JSType.resolve(ErrorReporter t,
StaticTypedScope<JSType> scope)
Resolve this type in the given scope.
|
void |
JSTypeRegistry.resolveTypesInScope(StaticTypedScope<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 |
---|---|
StaticTypedScope<T> |
AbstractStaticScope.getParentScope() |
Modifier and Type | Method and Description |
---|---|
static JSType |
Asserts.assertValidResolve(JSType type,
StaticTypedScope<JSType> scope) |
Copyright © 2009–2023 Google. All rights reserved.