| 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.refactoring | |
| com.google.javascript.rhino |
The core AST from Rhino.
|
| com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
| Modifier and Type | Method and Description |
|---|---|
abstract JSTypeRegistry |
AbstractCompiler.getTypeRegistry()
Gets a central registry of type information from the compiled JS.
|
JSTypeRegistry |
Compiler.getTypeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
CodingConventions.Proxy.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
java.util.List<NominalTypeBuilder> delegateProxies,
java.util.Map<java.lang.String,java.lang.String> delegateCallingConventions) |
void |
CodingConvention.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
java.util.List<NominalTypeBuilder> delegateProxies,
java.util.Map<java.lang.String,java.lang.String> delegateCallingConventions)
Defines the delegate proxy prototype properties.
|
CodePrinter.Builder |
CodePrinter.Builder.setTypeRegistry(JSTypeRegistry registry) |
| Constructor and Description |
|---|
TemplateAstMatcher(JSTypeRegistry typeRegistry,
Node templateFunctionNode,
TypeMatchingStrategy typeMatchingStrategy)
Constructs this matcher with a Function node that serves as the template
to match all other nodes against.
|
TypeCheck(AbstractCompiler compiler,
ReverseAbstractInterpreter reverseInterpreter,
JSTypeRegistry typeRegistry) |
TypeCheck(AbstractCompiler compiler,
ReverseAbstractInterpreter reverseInterpreter,
JSTypeRegistry typeRegistry,
TypedScope topScope,
com.google.javascript.jscomp.TypedScopeCreator scopeCreator) |
| Constructor and Description |
|---|
ChainableReverseAbstractInterpreter(JSTypeRegistry typeRegistry)
Constructs an interpreter, which is the only link in a chain.
|
ClosureReverseAbstractInterpreter(JSTypeRegistry typeRegistry) |
SemanticReverseAbstractInterpreter(JSTypeRegistry typeRegistry)
Creates a semantic reverse abstract interpreter.
|
| Constructor and Description |
|---|
JsSourceMatcher(JSTypeRegistry typeRegistry,
Node templateNode,
TypeMatchingStrategy typeMatchingStrategy)
Constructs this matcher with a Function node that serves as the template
to match all other nodes against.
|
| Modifier and Type | Method and Description |
|---|---|
JSType |
JSTypeExpression.evaluate(StaticTypedScope scope,
JSTypeRegistry registry)
Evaluates the type expression into a
JSType object. |
| Modifier and Type | Method and Description |
|---|---|
static FunctionType.Builder |
FunctionType.builder(JSTypeRegistry registry) |
static UnionType.Builder |
UnionType.builder(JSTypeRegistry registry)
Creates a
UnionType.Builder for a new UnionType. |
static TemplateTypeReplacer |
TemplateTypeReplacer.forInference(JSTypeRegistry registry,
java.util.Map<TemplateType,JSType> bindings)
Creates a replacer for use during
TypeInference. |
static TemplateTypeReplacer |
TemplateTypeReplacer.forPartialReplacement(JSTypeRegistry registry,
TemplateTypeMap bindings)
Creates a replacer that may not totally eliminate
TemplateTypes from the definitions of
the types it performs replacement on. |
static TemplateTypeReplacer |
TemplateTypeReplacer.forTotalReplacement(JSTypeRegistry registry,
TemplateTypeMap bindings)
Creates a replacer that will always totally eliminate
TemplateTypes from the
definitions of the types it performs replacement on. |
| Constructor and Description |
|---|
FunctionParamBuilder(JSTypeRegistry registry) |
RecordTypeBuilder(JSTypeRegistry registry) |
Copyright © 2009-2019 Google. All Rights Reserved.