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

com.google.javascript.jscomp.VarCheck.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!
????7z
%com/google/javascript/jscomp/VarCheck3(Lcom/google/javascript/jscomp/AbstractCompiler;Z)V
	
java/lang/Object()V
java/util/LinkedHashSet
		undefinedNamesFromExternsLjava/util/Set;	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;	UNDEFINED_EXTERN_VAR_ERROR-Lcom/google/javascript/jscomp/DiagnosticType;java/lang/String
 !"#$$com/google/javascript/jscomp/JSErrormake|(Ljava/lang/String;IILcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
&'()*-com/google/javascript/jscomp/AbstractCompiler
getErrorLevelQ(Lcom/google/javascript/jscomp/JSError;)Lcom/google/javascript/jscomp/CheckLevel;	,-./0'com/google/javascript/jscomp/CheckLevelERROR)Lcom/google/javascript/jscomp/CheckLevel;	234strictExternCheckZ	674
validityCheck92com/google/javascript/jscomp/SyntacticScopeCreator
8;<2(Lcom/google/javascript/jscomp/AbstractCompiler;)V>?com/google/javascript/jscomp/VarCheck$RedeclarationCheckHandler
=@A*(Lcom/google/javascript/jscomp/VarCheck;)V	CDE
dupHandlerALcom/google/javascript/jscomp/VarCheck$RedeclarationCheckHandler;
8GH{(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/SyntacticScopeCreator$RedeclarationHandler;)V
JKLcreateScopeCreator6()Lcom/google/javascript/jscomp/SyntacticScopeCreator;
NOPQR*com/google/javascript/jscomp/NodeTraversalbuilder6()Lcom/google/javascript/jscomp/NodeTraversal$Builder;
TUVWX2com/google/javascript/jscomp/NodeTraversal$BuildersetCompilere(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;Z;com/google/javascript/jscomp/VarCheck$NameRefInExternsCheck
Y@
T]^_setCallbackk(Lcom/google/javascript/jscomp/NodeTraversal$Callback;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
TabcsetScopeCreatora(Lcom/google/javascript/jscomp/ScopeCreator;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
Tefgtraverse%(Lcom/google/javascript/rhino/Node;)V
Tijk
traverseRootsG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vmnopq
java/util/Setiterator()Ljava/util/Iterator;stuvwjava/util/IteratorhasNext()Zsyz{next()Ljava/lang/Object;
}~createSynthesizedExternVar(Ljava/lang/String;Z)V
=??removeDuplicates
????w com/google/javascript/rhino/NodeisClosureUnawareCode
???wisName
???	checkNames(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
????	getString()Ljava/lang/String;
??wisEmpty
?????%com/google/javascript/jscomp/NodeUtilisFunctionExpression%(Lcom/google/javascript/rhino/Node;)Z
????isMethodDeclaration
?????$com/google/common/base/Preconditions
checkState(Z)V
N???getScope&()Lcom/google/javascript/jscomp/Scope;
?????"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;? com/google/javascript/jscomp/Var
????isClassExpression
????isFirstChildOf
????isNonlocalModuleExportName
???handleUndeclaredVariableRefQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
????getGlobalScope.()Lcom/google/javascript/jscomp/AbstractScope;
&???getSynthesizedExternsInput.()Lcom/google/javascript/jscomp/CompilerInput;
????declare?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/CompilerInput;)Lcom/google/javascript/jscomp/Var;
???wisImplicitGoogNamespace
???? getImplicitGoogNamespaceStrength;()Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;	?????7com/google/javascript/rhino/StaticSourceFile$SourceKindWEAK9Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;
????equals(Ljava/lang/Object;)Z
???
strengthOf](Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;	????STRONG
N???getInput
??
?????*com/google/javascript/jscomp/CompilerInputgetChunk(()Lcom/google/javascript/jscomp/JSChunk;
&???
getChunkGraph-()Lcom/google/javascript/jscomp/JSChunkGraph;
????w$com/google/javascript/jscomp/JSChunkisWeak
?????)com/google/javascript/jscomp/JSChunkGraph	dependsOnO(Lcom/google/javascript/jscomp/JSChunk;Lcom/google/javascript/jscomp/JSChunk;)Z
???wisGlobal	?VIOLATED_MODULE_DEP_ERROR
??getName
Nreporte(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V		
MISSING_MODULE_DEP_ERROR	
STRICT_MODULE_DEP_ERROR
?getStaticSourceFile0()Lcom/google/javascript/rhino/StaticSourceFile;	??EXTERN?,com/google/javascript/rhino/StaticSourceFilegetKind
?	getParent$()Lcom/google/javascript/rhino/Node;
? wisTypeOf
?"#wisExtern	%&UNDEFINED_VAR_ERROR(java/lang/IllegalStateException*+,makeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;
'./(Ljava/lang/String;)Vm12?contains
N45w
inGlobalScope	789REQUIRED_SYMBOLS(Lcom/google/common/collect/ImmutableSet;
;<=p>&com/google/common/collect/ImmutableSet2()Lcom/google/common/collect/UnmodifiableIterator;m@A?add
CDEFGcom/google/javascript/rhino/IRname6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
&IJKgetCodingConvention1()Lcom/google/javascript/jscomp/CodingConvention;MNOPQ-com/google/javascript/jscomp/CodingConvention
isConstant(Ljava/lang/String;)Z	?STUIS_CONSTANT_NAME'Lcom/google/javascript/rhino/Node$Prop;
?WXYputBooleanProp+(Lcom/google/javascript/rhino/Node$Prop;Z)V
C[\]varF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
?_`?*setIsSynthesizedUnfulfilledNameDeclaration
bcdgetSynthesizedExternsRootS(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/rhino/Node;
?fggaddChildToBack
&ijgreportChangeToEnclosingScope
lm?isExternNamespace
opqrs*com/google/javascript/jscomp/TypeValidator"hasDuplicateDeclarationSuppressionT(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;)Z
?uvwisVar
?xyw
isFromExterns
?{|?isNamespaceDecl	~VAR_MULTIPLY_DECLARED_ERROR
???
locationOf6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
 ?#??(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
&??)(Lcom/google/javascript/jscomp/JSError;)V	??)BLOCK_SCOPED_DECL_MULTIPLY_DECLARED_ERROR?	
????getLocation
???d
getAstRoot?JSC_UNDEFINED_VARIABLE?variable {0} is undeclared
?????+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;?JSC_VIOLATED_MODULE_DEPENDENCY?Qmodule {0} cannot reference {2}, defined in module {1}, since {1} loads after {0}?JSC_MISSING_MODULE_DEPENDENCY?[missing module dependency; module {0} should depend on module {1} because it references {2}
????warning?JSC_STRICT_MODULE_DEPENDENCY?mcannot reference {2} because of a missing module dependency
defined in module {1}, referenced from module {0}
????disabled?JSC_NAME_REFERENCE_IN_EXTERNS?Uaccessing name {0} in externs has no effect. Perhaps you forgot to add a var keyword?	??NAME_REFERENCE_IN_EXTERNS_ERROR?JSC_UNDEFINED_EXTERN_VAR_ERROR?'name {0} is not defined in the externs.?JSC_VAR_MULTIPLY_DECLARED_ERROR?;Variable {0} declared more than once. First occurrence: {1}?-JSC_BLOCK_SCOPED_DECL_MULTIPLY_DECLARED_ERROR?HBlock-scoped variable {0} declared more than once. First occurrence: {1}? JSC_VAR_ARGUMENTS_SHADOWED_ERROR?$Shadowing "arguments" is not allowed	??VAR_ARGUMENTS_SHADOWED_ERROR?goog?forwardDeclare
C???getpropX(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;	???googForwardDeclare"Lcom/google/javascript/rhino/Node;?AggregateError?Array?Error?Float32Array?Function?Infinity?JSCompiler_renameProperty?JSCOMPILER_PRESERVE?Map?Math?NaN?Number?Object?Promise?
RangeError?Reflect?RegExp?Set?String?Symbol	TypeErrorWeakMapglobal
globalThisisNaN

parseFloatparseIntself	undefinedwindow
;of?(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;9com/google/javascript/jscomp/NodeTraversal$ScopedCallback)com/google/javascript/jscomp/CompilerPass	ARGUMENTSLjava/lang/String;
ConstantValue	arguments	Signature#Ljava/util/Set;;CodeLineNumberTableLocalVariableTablethis'Lcom/google/javascript/jscomp/VarCheck;MethodParameters
StackMapTableprocessvarNameexternsrootscopeCreator+Lcom/google/javascript/jscomp/ScopeCreator;1)com/google/javascript/jscomp/ScopeCreatorshouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Zt,Lcom/google/javascript/jscomp/NodeTraversal;nparentvisitscope$Lcom/google/javascript/jscomp/Scope;"Lcom/google/javascript/jscomp/Var;	currInput,Lcom/google/javascript/jscomp/CompilerInput;varInput
currModule&Lcom/google/javascript/jscomp/JSChunk;	varModule
chunkGraph+Lcom/google/javascript/jscomp/JSChunkGraph;source.Lcom/google/javascript/rhino/StaticSourceFile;
enterScope/(Lcom/google/javascript/jscomp/NodeTraversal;)V	exitScoperequiredSymbolisFromUndefinedCodeRefnameNodesyntheticExternVarv(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)ZorigVarreportVarMultiplyDeclared?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)VcurrentoriginalRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;$reportBlockScopedMultipleDeclarationY(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V
SourceFile
VarCheck.javaNestMembers\'com/google/javascript/jscomp/VarCheck$1BootstrapMethods_
`ab+c$java/lang/invoke/StringConcatFactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;eUnexpected variable InnerClassesRedeclarationCheckHandleriGcom/google/javascript/jscomp/SyntacticScopeCreator$RedeclarationHandlerRedeclarationHandlerBuilderNameRefInExternsCheckn3com/google/javascript/jscomp/NodeTraversal$CallbackCallback
SourceKindr%com/google/javascript/rhino/Node$PropPropScopedCallbackv%java/lang/invoke/MethodHandles$Lookupxjava/lang/invoke/MethodHandlesLookup &

????? !7434DE89 "<#?*+??$
no%&'(#?;*?*?Y??*+?*+????%?+???1*?5?$"qars!t$s5u:v% ;&';;74)%?1&?&(	7KL#n/*?5??8Y*??:?*?=Y*???B?8Y*?*?B?F?$}~??%/&')*k#(z*?IN*?5? ?M*??S?YY*?[?\-?`+?d?M*??S*?\-?`+,?h*??l:?r??x?:*?|???*?B?
*?B???$J?????"?&?)?0?4?8?=?@?a?h?k?r?y?%4a+z&'z,?z-?u./)?)0?!s?
(	,-23#`
,?????$?%*
&'
45
6?
7?)@(
4678?#h,???
*+,-???$???%*&'456?7?)(
467??#??,??:???-???
-???????+??:????:??-???
-???,-????,????*+,??????,*??¶?W??ʙ%?ͲѶי,?۲߶י
*+,???+??:??:?
?????:	??:
*???:*?5??
	??
??	??
??	*+,??	
????????W
	???'+,???Y	?SY
?SYS??H+,??Y	?SY
?SYS??$+,??Y	?SY
?SYS??$?)???$?%?+?7?<?L?R?S?Z?[?a?w?x???????????????????????????????
??!?.???ERci?%z?&'?45?6??7??++`9:7T\;??<=??>=???@	??A@
??BC)3?@?$??)????<???7# (
467??#b*?L+???+??$	
%6?DE)?
(6??#?f,????,??N,????'*?1?+??!??+,?$?Y-S?*?5??'Y-?)?-?*?-?0?	*-?|?$*
- =#D(R)_-e/%*f&'f45f6?Z+)?(	46FG#5?$2%&'45(4HG#?N*?5?I+?3?B+??M?6?:N-?r?--?x?:,????:?*???W??б$"679.:9;><J>M@%49\;.I:9:N&'N45)??s/?(4~#??+?BN*??H+?L?-?R?V-?Z:?^*??a?e*??h?$"ltux#y)z5{>|%4?&'?+?J4:K?#L?)??(	+JrM#^+?k??*,?n?$??	?% 6?N?)	(
6Nm?#S*??t?*?w?*?z???$?%6?)@(6OP#g*+?}?Y,SY-??S?????$
89%*Q?FR?(QFRS	TUV#v*?+???Y,SY-??S?????$=?>=@%*&'Q?FR?(
QFRS	T
??#F*?	??*???$C%6?)
C(6S	T
cd#3	*??*???$H%	(W#?
;?????$????????????????????????????????}?¸????Ƹ???˸B͸ϳ????????Y?SY?SY?SY?SY?SY?SY?SY?SY?SY	?SY
?SY?SY?SY
?SY?SYSYSYSYSY	SYSY
SYSYS??6?$R(,-12$70?6@<EBFHJNKTOZP`TfUl]{F4G:FXYZ[=Y]^dfR
=gh8jTNkYlmNo	?p@q?s@Nt	[uwy




© 2015 - 2024 Weber Informatics LLC | Privacy Policy