Package com.google.javascript.jscomp
Class ConformanceRules.BanNullDeref
java.lang.Object
com.google.javascript.jscomp.ConformanceRules.AbstractRule
com.google.javascript.jscomp.ConformanceRules.BanNullDeref
- All Implemented Interfaces:
CheckConformance.Rule
- Enclosing class:
ConformanceRules
Banned dereferencing null or undefined types.
-
Constructor Summary
ConstructorsConstructorDescriptionBanNullDeref
(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement) -
Method Summary
Modifier and TypeMethodDescriptionprotected ConformanceRules.ConformanceResult
protected boolean
protected boolean
protected static boolean
protected boolean
protected static boolean
protected static boolean
protected boolean
protected static boolean
protected boolean
protected @Nullable JSType
Methods inherited from class com.google.javascript.jscomp.ConformanceRules.AbstractRule
check, report, tsIsAllowlisted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.javascript.jscomp.CheckConformance.Rule
getPrecondition
-
Constructor Details
-
BanNullDeref
public BanNullDeref(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement) throws CheckConformance.InvalidRequirementSpec
-
-
Method Details
-
checkConformance
- Specified by:
checkConformance
in classConformanceRules.AbstractRule
- Returns:
- Whether the code represented by the Node conforms to the rule.
-
isAllowlistedType
-
isKnown
-
isNativeObjectType
-
isTop
-
isUnknown
-
isTemplateType
-
union
-
isAssertionCall
-
isTypeImmediatelyTightened
-
isUsed
-