| Package | Description |
|---|---|
| com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
ClosureCodingConvention.AssertFunctionByTypeName
A function that will throw an exception when the value is not an
instanceof the given type name, for instance "Element".
|
static class |
ClosureCodingConvention.AssertInstanceofSpec
A function that will throw an exception when if the value is not
an instanceof a specific type.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,CodingConvention.AssertionFunctionSpec> |
NewTypeInference.assertionFunctionsMap |
private java.util.Map<java.lang.String,CodingConvention.AssertionFunctionSpec> |
TypeInference.assertionFunctionsMap |
private java.util.Map<java.lang.String,CodingConvention.AssertionFunctionSpec> |
TypeInferencePass.assertionFunctionsMap |
private com.google.common.collect.ImmutableList<CodingConvention.AssertionFunctionSpec> |
ConformanceRules.AbstractTypeRestrictionRule.assertions |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<CodingConvention.AssertionFunctionSpec> |
ClosureCodingConvention.getAssertionFunctions() |
java.util.Collection<CodingConvention.AssertionFunctionSpec> |
CodingConvention.getAssertionFunctions()
Returns the set of AssertionFunction.
|
java.util.Collection<CodingConvention.AssertionFunctionSpec> |
CodingConventions.Proxy.getAssertionFunctions() |
java.util.Collection<CodingConvention.AssertionFunctionSpec> |
CodingConventions.DefaultCodingConvention.getAssertionFunctions() |
| Modifier and Type | Method and Description |
|---|---|
private NewTypeInference.EnvTypePair |
NewTypeInference.analyzeAssertionCall(Node callNode,
TypeEnv env,
CodingConvention.AssertionFunctionSpec assertionFunctionSpec) |
| Constructor and Description |
|---|
TypeInference(AbstractCompiler compiler,
ControlFlowGraph<Node> cfg,
ReverseAbstractInterpreter reverseInterpreter,
TypedScope functionScope,
java.util.Map<java.lang.String,CodingConvention.AssertionFunctionSpec> assertionFunctionsMap) |