Package com.google.javascript.jscomp
Class CodingConventions
java.lang.Object
com.google.javascript.jscomp.CodingConventions
Helper classes for dealing with coding conventions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A convention that wraps another. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
defaultIsFunctionCallThatAlwaysThrows
(Node n, String alwaysThrowsFunctionName) static CodingConvention
Gets the default coding convention.
-
Method Details
-
getDefault
Gets the default coding convention. -
defaultIsFunctionCallThatAlwaysThrows
public static boolean defaultIsFunctionCallThatAlwaysThrows(Node n, String alwaysThrowsFunctionName) - Parameters:
n
- The last statement of a block to check for an always throws function call. Used by CheckMissingReturn.alwaysThrowsFunctionName
- The name of a function that always throws.- Returns:
true
if n is call to alwaysThrowsFunctionName, otherwisefalse
.
-