All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.javascript.jscomp.lint.CheckNullabilityModifiers.class Maven / Gradle / Ivy

Go to download

Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.

The newest version!
????7?
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback()Vjava/util/LinkedHashSet
	
;com/google/javascript/jscomp/lint/CheckNullabilityModifiersredundantCandidatesLjava/util/LinkedHashSet;	missingCandidates	nullMissingCandidates	templateTypeNames	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
 !"*com/google/javascript/jscomp/NodeTraversal
traverseRoots?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/NodeTraversal$Callback;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
$%&'( com/google/javascript/rhino/NodegetJSDocInfo)()Lcom/google/javascript/rhino/JSDocInfo;
*+,-.%com/google/javascript/rhino/JSDocInfogetTemplateTypeNames+()Lcom/google/common/collect/ImmutableList;
012addAll(Ljava/util/Collection;)Z
*456getTypeTransformations*()Lcom/google/common/collect/ImmutableMap;
89:;<&com/google/common/collect/ImmutableMapkeySet*()Lcom/google/common/collect/ImmutableSet;
*>?@hasType()Z
*BCDgetType0()Lcom/google/javascript/rhino/JSTypeExpression;
FGH
handleHasTypeS(Lcom/google/javascript/rhino/JSTypeExpression;Lcom/google/javascript/rhino/Node;)V
*JKLgetParameterNames()Ljava/util/Set;NOPQR
java/util/Setiterator()Ljava/util/Iterator;TUVW@java/util/IteratorhasNextTYZ[next()Ljava/lang/Object;]java/lang/String
*_`ahasParameterType(Ljava/lang/String;)Z
*cdegetParameterTypeB(Ljava/lang/String;)Lcom/google/javascript/rhino/JSTypeExpression;
ghivisitTypeExpression2(Lcom/google/javascript/rhino/JSTypeExpression;Z)V
*kl@
hasReturnType
*noD
getReturnType
*qr@hasEnumParameterType
*tuDgetEnumParameterType
*wx@hasTypedefType
*z{DgetTypedefType
*}~@hasThisType
*??DgetThisType
$??@isScript
???report/(Lcom/google/javascript/jscomp/NodeTraversal;)V
??clear
$???
getFirstChild$()Lcom/google/javascript/rhino/Node;
?????%com/google/javascript/jscomp/NodeUtilisNameDeclOrSimpleAssignLhsG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
????getRValueOfLValueF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
$??@isNull
?h?T(Lcom/google/javascript/rhino/JSTypeExpression;ZLcom/google/javascript/rhino/Node;)V
O
???shouldReport%(Lcom/google/javascript/rhino/Node;)Z	???"MISSING_NULLABILITY_MODIFIER_JSDOC-Lcom/google/javascript/jscomp/DiagnosticType;
???getReportedTypeName6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
???e(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V	???'NULL_MISSING_NULLABILITY_MODIFIER_JSDOC
$???	getParent	???$REDUNDANT_NULLABILITY_MODIFIER_JSDOC
$??@isStringLit
$???	getString()Ljava/lang/String;
???contains(Ljava/lang/Object;)Z
?????,com/google/javascript/rhino/JSTypeExpressiongetRoot???visit?(Lcom/google/javascript/jscomp/lint/CheckNullabilityModifiers;ZLcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/NodeUtil$Visitor;
????
visitPreOrderT(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeUtil$Visitor;)V	???PRIMITIVE_TYPE_NAMES(Lcom/google/common/collect/ImmutableSet;
???&com/google/common/collect/ImmutableSet
$??@
isFunction
$???getToken%()Lcom/google/javascript/rhino/Token;	?????!com/google/javascript/rhino/TokenLC#Lcom/google/javascript/rhino/Token;
???isFunctionLiteral?Function
???isRecordLiteral?Record literal
???isPrimitiveType
???isReferenceType
?????$com/google/common/base/Preconditions
checkState(Z)V	????BANG	???QMARK
$@isNew
$@isThis
$	@isTypeOf	??PIPE
?add&JSC_MISSING_NULLABILITY_MODIFIER_JSDOC?{0} is a reference type with no nullability modifier, which is disallowed by the style guide.
Please add a '!' to make it explicitly non-nullable, or a '?' to make it explicitly nullable.
+com/google/javascript/jscomp/DiagnosticTypedisabledS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;+JSC_NULL_MISSING_NULLABILITY_MODIFIER_JSDOC~{0} is a reference type with no nullability modifier that is explicitly set to null.
Add a '?' to make it explicitly nullable.(JSC_REDUNDANT_NULLABILITY_MODIFIER_JSDOC!?{0} is a non-reference type which is already non-nullable.
Please remove the redundant '!', which is disallowed by the style guide.#boolean%number'bigint)string+symbol-	undefined/void1null
?345of?(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;7)com/google/javascript/jscomp/CompilerPass	Signature;=Ljava/util/LinkedHashSet;-Ljava/util/LinkedHashSet;2(Lcom/google/javascript/jscomp/AbstractCompiler;)VCodeLineNumberTableLocalVariableTablethis=Lcom/google/javascript/jscomp/lint/CheckNullabilityModifiers;MethodParametersprocessG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vexterns"Lcom/google/javascript/rhino/Node;roots(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)VparamLjava/lang/String;t,Lcom/google/javascript/jscomp/NodeTraversal;nparentinfo'Lcom/google/javascript/rhino/JSDocInfo;
StackMapTablerValueexpr.Lcom/google/javascript/rhino/JSTypeExpression;hasArtificialTopLevelBangZRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;nodelambda$visitTypeExpression$0j(ZLcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)VisPrimitiveOrLiteralisReferencehasBanghasQmarkhasNonArtificialBangisNewOrThisisTypeOfTypeisAppliedToRValue
SourceFileCheckNullabilityModifiers.javaBootstrapMethodsi
jklmn"java/lang/invoke/LambdaMetafactorymetafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;p%(Lcom/google/javascript/rhino/Node;)Vr
sZ[InnerClassesAbstractPostOrderCallbackw3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackz-com/google/javascript/jscomp/NodeUtil$VisitorVisitor}%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup!6	????????898:8:8:8;<=?6*?*?Y?	?
*?Y?	?*?Y?	?*?Y?	?*+??>MHIJ%K0N5O?6@A6BCD=M*?*+,??>
S
T? @AEFGFB	EG?H=??,?#:??*??)?/W*??3?7?/W?=?
*?A,?E?I?M:?S?(?X?\:?^?*?b?f????j?
*?m?f?p?
*?s?f?v?
*?y?f?|?
*??f,???%*+??*?
??*???*???*?????>jXYZ[(\0]:_\`farcud}e?g?j?l?m?o?t?z?|?}?~????????>\IJ?@A?KL?MF?NF?OPQ	?:*?T+?(B
KMNGH=?-,??,???,????N-?-???*+-???*+?f?>????%?&?,??*RF-@A-ST-MFQ&B	SM??=W?*???M,?S?+,?X?$N*-???+-???\Y-??S?????*???M,?S?+,?X?$N*-???+-???\Y-??S?????*?
??M,?S?.,?X?$N*-???+-?????\Y-??S????ϱ>6
??#?6?9?T?\?o?r??????????4MFTMF?MF?@A?KLQ 	?T-??T-??T0?BK??=[+???*?+???????>??@AMFQ@BMhi=J*+???>
??? @ASTUVB	SUh?=p+??:*-???ͱ>????4@ASTUVRFGFB
SURW	X
??=O*?????*???ՙ??>??YFQ@BY
??=O*?????*???՚??>??YFQ@BY
??=/*?ج>??YFBY
??=E*?۲ߦ??>??YFQ@BY
??={/*???*????*??
*?????*???>??
???*??/YFQ
	
@BYZ[=E??:???????6??6??۲???6??۲???6	??	,??6
??????6????6,???۲
??6
?A?<	?7?2?-
?-?-???*??
W?$*??
W??
?
*?
?
W?>J??	?&?-?D?[?q????????????????????@AUVGFRFYFNF&?\V-?]VD?^V[?_V	q?`V
??aV?ubV?XcV
Q9?$@?@?@?@?@?@?@?7d=?
M?????? ???"$&(*,?\Y.SY0S?2?ѱ>&	*+34:;$AFBLAefghoqot"u	vx	y?{	|~?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy