| 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.
|
| Modifier and Type | Method and Description |
|---|---|
JSTypeRegistry |
Compiler.getTypeRegistry() |
abstract JSTypeRegistry |
AbstractCompiler.getTypeRegistry()
Gets a central registry of type information from the compiled JS.
|
| Modifier and Type | Method and Description |
|---|---|
JSType |
CodingConvention.AssertionFunctionSpec.getAssertedOldType(Node call,
JSTypeRegistry registry)
Returns the old type system type for a type assertion, or null if
the function asserts that the node must not be null or undefined.
|
JSType |
ClosureCodingConvention.AssertInstanceofSpec.getAssertedOldType(Node call,
JSTypeRegistry registry)
Returns the type for a type assertion, or null if the function asserts
that the node must not be null or undefined.
|
JSType |
ClosureCodingConvention.AssertFunctionByTypeName.getAssertedOldType(Node call,
JSTypeRegistry registry) |
| Constructor and Description |
|---|
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 |
|---|
FunctionBuilder(JSTypeRegistry registry) |
FunctionParamBuilder(JSTypeRegistry registry) |
ModificationVisitor(JSTypeRegistry registry,
boolean visitProperties) |
RecordTypeBuilder(JSTypeRegistry registry) |
TemplateTypeMapReplacer(JSTypeRegistry registry,
TemplateTypeMap replacements) |
TemplateTypeMapReplacer(JSTypeRegistry registry,
TemplateTypeMap replacements,
boolean replaceMissingTypesWithUnknown) |
UnionTypeBuilder(JSTypeRegistry registry) |
Copyright © 2009-2018 Google. All Rights Reserved.