Package com.google.javascript.jscomp
Class CodingConventions
- java.lang.Object
-
- com.google.javascript.jscomp.CodingConventions
-
public final class CodingConventions extends java.lang.ObjectHelper classes for dealing with coding conventions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCodingConventions.ProxyA convention that wraps another.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandefaultIsFunctionCallThatAlwaysThrows(Node n, java.lang.String alwaysThrowsFunctionName)static CodingConventiongetDefault()Gets the default coding convention.
-
-
-
Method Detail
-
getDefault
public static CodingConvention getDefault()
Gets the default coding convention.
-
defaultIsFunctionCallThatAlwaysThrows
public static boolean defaultIsFunctionCallThatAlwaysThrows(Node n, java.lang.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:
trueif n is call to alwaysThrowsFunctionName, otherwisefalse.
-
-