public static class ClosureCodingConvention.AssertFunctionByTypeName extends CodingConvention.AssertionFunctionSpec
assertedType, functionName
Constructor and Description |
---|
AssertFunctionByTypeName(String functionName,
String typeName) |
Modifier and Type | Method and Description |
---|---|
JSType |
getAssertedType(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 getAssertedType(Node call, JSTypeRegistry registry)
getAssertedType
in class CodingConvention.AssertionFunctionSpec
call
- The asserting callCopyright © 2009–2015 Google. All rights reserved.