public static class ClosureCodingConvention.AssertInstanceofSpec extends CodingConvention.AssertionFunctionSpec
assertedType, functionName
Constructor and Description |
---|
AssertInstanceofSpec(java.lang.String functionName) |
Modifier and Type | Method and Description |
---|---|
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, getFunctionName
public JSType getAssertedOldType(Node call, JSTypeRegistry registry)
getAssertedOldType
in class CodingConvention.AssertionFunctionSpec
call
- The asserting callCopyright © 2009-2019 Google. All Rights Reserved.