public static class ClosureCodingConvention.AssertInstanceofSpec extends CodingConvention.AssertionFunctionSpec
assertedNewType, assertedType, functionName| Constructor and Description |
|---|
AssertInstanceofSpec(String functionName) |
| Modifier and Type | Method and Description |
|---|---|
JSType |
getAssertedNewType(Node call,
DeclaredTypeRegistry scope)
Returns the new type system type for a type assertion.
|
JSType |
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.
|
getAssertedParam, getFunctionNamepublic AssertInstanceofSpec(String functionName)
public JSType getAssertedOldType(Node call, JSTypeRegistry registry)
getAssertedOldType in class CodingConvention.AssertionFunctionSpeccall - The asserting callpublic JSType getAssertedNewType(Node call, DeclaredTypeRegistry scope)
CodingConvention.AssertionFunctionSpecgetAssertedNewType in class CodingConvention.AssertionFunctionSpeccall - The asserting callCopyright © 2009-2015 Google. All Rights Reserved.