Package com.google.javascript.jscomp
Class ConformanceRules.BanUnknownThis
java.lang.Object
com.google.javascript.jscomp.ConformanceRules.AbstractRule
com.google.javascript.jscomp.ConformanceRules.BanUnknownThis
- All Implemented Interfaces:
CheckConformance.Rule
- Enclosing class:
ConformanceRules
Banned unknown "this" types.
-
Constructor Summary
ConstructorsConstructorDescriptionBanUnknownThis(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement) -
Method Summary
Modifier and TypeMethodDescriptionprotected ConformanceRules.ConformanceResultprotected booleanprotected booleanprotected static booleanprotected booleanprotected static booleanprotected static booleanprotected booleanprotected static booleanprotected booleanprotected booleanprotected @Nullable JSTypeMethods inherited from class com.google.javascript.jscomp.ConformanceRules.AbstractRule
check, reportMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.javascript.jscomp.CheckConformance.Rule
getPrecondition
-
Constructor Details
-
BanUnknownThis
public BanUnknownThis(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement) throws CheckConformance.InvalidRequirementSpec
-
-
Method Details
-
tsIsAllowlisted
protected boolean tsIsAllowlisted()- Overrides:
tsIsAllowlistedin classConformanceRules.AbstractRule
-
checkConformance
- Specified by:
checkConformancein classConformanceRules.AbstractRule- Returns:
- Whether the code represented by the Node conforms to the rule.
-
isAllowlistedType
-
isKnown
-
isNativeObjectType
-
isTop
-
isUnknown
-
isTemplateType
-
union
-
isAssertionCall
-
isTypeImmediatelyTightened
-
isUsed
-