Package com.google.javascript.jscomp
Class CodingConvention.AssertionFunctionSpec
- java.lang.Object
-
- com.google.javascript.jscomp.CodingConvention.AssertionFunctionSpec
-
- Enclosing interface:
- CodingConvention
@Immutable public abstract static class CodingConvention.AssertionFunctionSpec extends java.lang.Object
A description of a JavaScript function that will throw an exception when either:- One of its parameters does not match the return type of the function
- One of its parameters is falsy. This has some special handling for expressions that the match-return-type handling does not have.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CodingConvention.AssertionFunctionSpec.AssertionKind
static class
CodingConvention.AssertionFunctionSpec.Builder
-
Constructor Summary
Constructors Constructor Description AssertionFunctionSpec()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CodingConvention.AssertionFunctionSpec.Builder
forMatchesReturn()
static CodingConvention.AssertionFunctionSpec.Builder
forTruthy()
-
-
-
Method Detail
-
forTruthy
public static CodingConvention.AssertionFunctionSpec.Builder forTruthy()
-
forMatchesReturn
public static CodingConvention.AssertionFunctionSpec.Builder forMatchesReturn()
-
-