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

com.google.javascript.jscomp.NodeTraversal.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?2com/google/javascript/jscomp/NodeTraversal$Builder
()V
	java/lang/Objectjava/util/ArrayList

	*com/google/javascript/jscomp/NodeTraversalscopesLjava/util/ArrayList;	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
$com/google/common/base/PreconditionscheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;-com/google/javascript/jscomp/AbstractCompiler		!"#callback5Lcom/google/javascript/jscomp/NodeTraversal$Callback;%3com/google/javascript/jscomp/NodeTraversal$Callback	!(9com/google/javascript/jscomp/NodeTraversal$ScopedCallback	*+,
scopeCallback;Lcom/google/javascript/jscomp/NodeTraversal$ScopedCallback;	./0scopeCreator+Lcom/google/javascript/jscomp/ScopeCreator;22com/google/javascript/jscomp/SyntacticScopeCreator
1452(Lcom/google/javascript/jscomp/AbstractCompiler;)V	.	89:.obeyDestructuringAndDefaultValueExecutionOrderZ	8
=>?@Ajava/lang/Throwable
getMessage()Ljava/lang/String;	CDE
currentScript"Lcom/google/javascript/rhino/Node;GNode	IJEcurrentNode
LMNformatNodeContextH(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Ljava/lang/String;PRParent
TUVWX com/google/javascript/rhino/Node	getParent$()Lcom/google/javascript/rhino/Node;Z[\makeConcatWithConstantsJ(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
^_`throwInternalError*(Ljava/lang/String;Ljava/lang/Throwable;)Vb[c&(Ljava/lang/String;)Ljava/lang/String;
TefgtoString(ZZZ)Ljava/lang/String;
ijkformatNodePosition6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;Z
nop
initTraversal%(Lcom/google/javascript/rhino/Node;)V
rsp	pushScope
uvwtraverseBranchG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
yzpopScope|java/lang/Error~java/lang/Exception
???throwUnexpectedException(Ljava/lang/Throwable;)V
???builder6()Lcom/google/javascript/jscomp/NodeTraversal$Builder;
???setCompilere(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
???setCallbackk(Lcom/google/javascript/jscomp/NodeTraversal$Callback;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
??ptraverse
???
checkState(Z)V
??w
traverseRoots
??kgetBestSourceFileName?[source unknown]

T???	getLineno()I
T???	getCharno
???
getSourceLine'(Ljava/lang/String;I)Ljava/lang/String;?[source unknown]?[?:(Ljava/lang/String;IILjava/lang/String;)Ljava/lang/String;
?????*com/google/javascript/jscomp/AbstractScopeisGlobal()Z
????
isModuleScope
???(ZLjava/lang/Object;)V
?s?/(Lcom/google/javascript/jscomp/AbstractScope;)V
???XgetRootNode?java/util/ArrayDeque
?
??W?.()Lcom/google/javascript/jscomp/AbstractScope;?????java/util/Dequepush(Ljava/lang/Object;)V????isEmpty????pop()Ljava/lang/Object;
?s?0(Lcom/google/javascript/jscomp/AbstractScope;Z)V	?????,com/google/javascript/jscomp/NodeTraversal$1,$SwitchMap$com$google$javascript$rhino$Token[I
T???getToken%()Lcom/google/javascript/rhino/Token;
?????!com/google/javascript/rhino/Tokenordinal$???shouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
T??X
getFirstChild
T??XgetNext
?????%com/google/javascript/jscomp/NodeUtilisFunctionDeclaration%(Lcom/google/javascript/rhino/Node;)Z$???visits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
T??XgetLastChild
????isClassExpression
ptraverseChildren*Expected global or module scope. Got: (%s)
?((ZLjava/lang/String;Ljava/lang/Object;)V
	
traverseWithScopeQ(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractScope;)V
?
?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)VFcom/google/javascript/jscomp/NodeTraversal$1TraverseScopeRootsCallback
9(ZLcom/google/javascript/jscomp/NodeTraversal$Callback;)V1com/google/javascript/jscomp/MemoizedScopeCreator
.(Lcom/google/javascript/jscomp/ScopeCreator;)Vjava/util/Listiterator()Ljava/util/Iterator; !"?java/util/IteratorhasNext$%?next	'(E	scopeNode
*+,setScopeCreatora(Lcom/google/javascript/jscomp/ScopeCreator;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
./0build.()Lcom/google/javascript/jscomp/NodeTraversal;
23ptraverseScopeRoot
56pinitScopeRoots	89:
sourceNameLjava/lang/String;
T<=AgetSourceFileName
?@A
getInputId'()Lcom/google/javascript/rhino/InputId;	CDE
compilerInput,Lcom/google/javascript/jscomp/CompilerInput;
GHIgetInputS(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput;
KHL.()Lcom/google/javascript/jscomp/CompilerInput;
NOPQR*com/google/javascript/jscomp/CompilerInputgetChunk(()Lcom/google/javascript/jscomp/JSChunk;
TUVW?%com/google/javascript/jscomp/PlatformisThreadInterruptedYjava/lang/RuntimeException[java/lang/InterruptedException
Z
X^?
`apsetChangeScope
cdclearScriptState	fgEcurrentChangeScope
ijwtraverseFunction	lmEcurrentHoistScopeRoot
opwhandleScript
rswhandleFunction
uvwhandleModule
xywhandleClass
{|whandleClassMembers
~w!handleDestructuringOrDefaultValue
????createsBlockScope
????isClassStaticBlock	??EcurrentFunction
T???isComputedProp
T???isComputedFieldDef
T???hasTwoChildren
??whandleMemberFieldDef?java/lang/IllegalStateException?[?7(Lcom/google/javascript/rhino/Token;)Ljava/lang/String;
???(Ljava/lang/String;)V

???add(Ljava/lang/Object;)Z'???
enterScope/(Lcom/google/javascript/jscomp/NodeTraversal;)V
?z?'???	exitScope

???size

???remove(I)Ljava/lang/Object;

???get
???getNodeRootFromScopeObj6(Ljava/lang/Object;)Lcom/google/javascript/rhino/Node;
???getAbstractScope
????untyped&()Lcom/google/javascript/jscomp/Scope;
????typed+()Lcom/google/javascript/jscomp/TypedScope;
???/(I)Lcom/google/javascript/jscomp/AbstractScope;?????)com/google/javascript/jscomp/ScopeCreatorcreateScope|(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractScope;)Lcom/google/javascript/jscomp/AbstractScope;

???set'(ILjava/lang/Object;)Ljava/lang/Object;
??XgetScopeRoot
???isHoistScopeRootNode
????isFunctionBlock
T???isArrowFunction
???
getScopeDepth
????isModuleScopeRoot
???
inGlobalScope
???
inModuleScope
T???
isFunction
?????$com/google/javascript/jscomp/JSErrormake?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
???report)(Lcom/google/javascript/jscomp/JSError;)V
?????(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
????isChangeScopeRoot
??preportChangeToChangeScope
?preportChangeToEnclosingScope'java/lang/UnsupportedOperationExceptiongetCurrentScript not supported
?
T?isScript
?
getEnclosingHoistScopeRootF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
?getEnclosingChangeScopeRoot
?getEnclosingFunction
getEnclosingScript
?isScopeRoot??addFirst?
T?isRoot	!"#inputId%Lcom/google/javascript/rhino/InputId;
T?
&'A
getSourceNameRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;	Signature)Ljava/util/ArrayList;MISSING_SOURCE
ConstantValueCodeLineNumberTable7(Lcom/google/javascript/jscomp/NodeTraversal$Builder;)VLocalVariableTablethis,Lcom/google/javascript/jscomp/NodeTraversal;4Lcom/google/javascript/jscomp/NodeTraversal$Builder;
StackMapTableMethodParametersunexpectedExceptionLjava/lang/Throwable;message;java/lang/Stringlabelnrootcb	scopeRootexterns?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/NodeTraversal$Callback;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)VsourceFileName
lineNumberIcolumnNumbersrcs,Lcom/google/javascript/jscomp/AbstractScope;LocalVariableTypeTable0Lcom/google/javascript/jscomp/AbstractScope<**>;U(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractScope<**>;)VtraverseAtScopefnNameargsbody	classNameforAssignmentParamforIterableParamforBodyScopeparentScopesLjava/util/Deque;tempCLjava/util/Deque;>;3(Lcom/google/javascript/jscomp/AbstractScope<**>;)VtraverseScopeRoots?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Ljava/util/List;Lcom/google/javascript/jscomp/NodeTraversal$Callback;Z)V
scopeNodesLjava/util/List;traverseNestedscbHLcom/google/javascript/jscomp/NodeTraversal$1TraverseScopeRootsCallback;3Lcom/google/javascript/jscomp/MemoizedScopeCreator;4Ljava/util/List;?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Ljava/util/List;Lcom/google/javascript/jscomp/NodeTraversal$Callback;Z)VgetCompiler1()Lcom/google/javascript/jscomp/AbstractCompiler;g#com/google/javascript/rhino/InputIdinputj$com/google/javascript/jscomp/JSChunkgetCurrentNodeparentchangeScopefirstsecondchildpreviousHoistScopeRootpreviousFunction
extendsClausenodequietly4(Lcom/google/javascript/jscomp/AbstractScope<**>;Z)VLjava/lang/Object;rootsdepthgetScope
getTypedScope2()Lcom/google/javascript/jscomp/AbstractScope<**>;parentScopescope	rootDeptho3(I)Lcom/google/javascript/jscomp/AbstractScope<**>;isHoistScopegetClosestHoistScopeRootrootNodeigetClosestContainerScopegetClosestHoistScope)getClosestScopeRootNodeBindingThisOrSupergetScopeCreator-()Lcom/google/javascript/jscomp/ScopeCreator;inGlobalOrModuleScopeinFunctionBlockScopeinGlobalHoistScopeinModuleHoistScope
moduleRoote(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)VdiagnosticType-Lcom/google/javascript/jscomp/DiagnosticType;	arguments[Ljava/lang/String;error&Lcom/google/javascript/jscomp/JSError;?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)VstartendreportCodeChangegetCurrentScript
traversalRoothoistScopeRootenclosingFunctionscriptqueuedScopeRootqueuedScopeRoots5Ljava/util/Deque;
SourceFileNodeTraversal.javaNestMembers?4com/google/javascript/jscomp/NodeTraversal$Builder$1?Gcom/google/javascript/jscomp/NodeTraversal$AbstractChangedScopeCallback?Acom/google/javascript/jscomp/NodeTraversal$AbstractModuleCallback?Kcom/google/javascript/jscomp/NodeTraversal$AbstractShallowStatementCallback?Bcom/google/javascript/jscomp/NodeTraversal$AbstractShallowCallback?>com/google/javascript/jscomp/NodeTraversal$AbstractCfgCallback?Acom/google/javascript/jscomp/NodeTraversal$AbstractScopedCallback?Ccom/google/javascript/jscomp/NodeTraversal$AbstractPreOrderCallback?Mcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallbackInterface?Bcom/google/javascript/jscomp/NodeTraversal$ExternsSkippingCallback?Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallbackBootstrapMethods?
???[?$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;?
?	  : NULL?	  (): ?::

?Invalid class member: InnerClassesBuilderCallbackScopedCallbackTraverseScopeRootsCallbackAbstractChangedScopeCallbackAbstractModuleCallback AbstractShallowStatementCallbackAbstractShallowCallbackAbstractCfgCallbackAbstractScopedCallbackAbstractPreOrderCallback"AbstractPostOrderCallbackInterfaceExternsSkippingCallbackAbstractPostOrderCallback?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup!"#+,()/09:JEmE()?EDEgE*+9:()"#()DE(),:-?C	??. ?Y??/?0.j*?*?
Y??
*+????*+? ??$?&**?&?'?
*?&?'??)*+?-??1Y*??3?+?-?6*+?7?;?/2?D??+?,?D?E?L?Z?a?i?1j23j?45<?@?'X??6???.?C+?9:52?&=:::?=::::67MN.m,?
+?a?+,?d*,?h?l?/	1 23<:=E56	<=?p.?#*+?m*+?H*+?q*+?t*?x?	M*,??{}/&	
"1 78#23#>E5\=6>	?
.R??*??,??+???/
1 >E?#6
>??w.?C+?SN-?W*-?m*-?H*-?q*+-?t,?S-????*,-?t*?x?	N*-??9<{9<}/6
#$
&'(*+/,5.91</=0B2144@E=78C23CAEC>E5?+T@?TT=6	A>	?B.]??*??+??,-???/
671*?#AE>E6?A>jk.?8*+??M,???+??>+??6*?,??:??:,???/&	<=
>
ABC#D(E,G1>8238=E2C:&DE FE#G:5?
:?:6=	
.?:,???
,????,??*+?m*+?H*,??*+?t*?x?	N*-??03{03}/*
OQR!S&T,U0X3V4W9Y1*478:23:>E:HIJ:HK5@_=6	>H*LM?.9,+??M*,?m*,?H??Y??N+??:?-????:???-???*-?????ӧ???,?ܶ?.????;??2bbbb*?&*,????*+??,??:??:??:,??
*,?t*,?t*,?t*?x*?&*,???C*?&*,???4*+??,??:,??:,???
*,?t*,?t*?x*?&*,????*?&*,????*+??*,??*?x*?&*,????*+??*?&*,???*,??*?&*,??*?x??*+??*?&*,???*,??,?t*?&*,??*?x?s*?&*,???d*+??,??:??:??:*,?t*,?t*,?t*?x*?&*,???#+???
+????+?*,+??/
Bab
cdef"g*h4j=kNn?p?q?s?t?u?v?x?z?{?}?~??????????? ?$?0?3?B?G?L?P?_?d?s?x????????????????????????????????????????"?%?+?1?
?:NE?3OE?,PE+QE%PE?3RE?,SE?%TE,23,HI'=EUVWIJ ,HKUXWK5;?T???E?5TTT? ?-TT?+$(?O
@6H*Y	Z[.<	j,?
*+-???Y-?:?Y?1Y*?3?:,?:??2?#?T:?&??*?????)?-?1??ʱ/>??
?(	F
MQV
[^cfi1RF (Ejj>Ej\]j?#j^:S_`(B/aJj\b5?$?86>\?^*c())3p.?%*+?m*+?H*+?S?4*++?S?t?	M*,??{}/"
$1 78%23%@E5^=6@de./*??/ 123'A.r#*?7?**?B?
*?B?;?O?7*?7?/)*,1#235Y?:HL.o!*?>L*?B?+?**?+?F?B*?B?/12351!23"#5?fQR.\*?JL+??+?M?/
:;123
hE5?
NCi()kX./*?H?/@123pw.?S?S??XY?ZY?\?]?*+?_*+?H*+?B*?b*?&*+,???*+??*+?H*?&*+,??*?_?/2DEGIJ$K(L7M<NAOMQRR1 S23S=ESlE576	=lsw.?;*?eN*+?_*+?H*?&*+,???*+,?h*+?H*?&*+,??*-?_?/&	UV
WXY$Z)[5]:^1*;23;=E;lE6mE5?5T6	=lvw.?>*+?k*+?q*+?H*?&*+,???*+?H*+??*?&*+,??*?x*?k?/*
bc
def#g(h4j8l=m1 >23>=E>lE546	=lw.?U*+?H*?&*+,???C+??N-??:???????*+?t*-+?t*+?H*?&*+,???/.pqrsu$v6w=yC{H|T~14;nE5oEU23U=EUlE5?0TT@?6	=lvw.???+?ܶ?.?~M~~Tb~~~~~~~[ipp*+,?n?*+,?q?*+,?t?*+,?w?*+,?z?*?;?
*+,?}?*+?H*?&*+,????+??>*?k:?*+?q+???*+?k+??:???:*+?t:????
*?x*?k*+?H*?&*+,???/?"?X?^?_?e?f?l?m?s?t?z?{?????????????????????????????????????????????1H?%E?pE?23?=E?lE?[?:?UqE5?X
?T?T?
6	=l(	)jw.\	y+??N,?+???6?	*-+?t*+?H*?k:*+?k*??:*+??*+?q?	*-+?t-??:??:*+?t*+?t*?x*??*?k?/R????"?'?-?2?8?=?B?G?M?S?Z?a?h?l?r?x?1\	y23y=EylEtNEb?:-LqE8ArES&OEZPE5?T@??*TT6	=lyw.Cq*+?H*?&*+,????+??N-??:??:+??6*+?t?	*-+?t*+?H*+?q?	*-+?t*+?t*?x*+?H*?&*+,???/N?? '-	49
?DINT[_dp 1Hq23q=EqlEWQE QsE'JPE-D?:5?)TTTTT6	=l|w.?v*+?H*?&*+,????+??N-?&-??:-???
-???*-??-?tN???+??N-?-??:??-?ܶ?.?????????????????]????*+?H*?&*-+????*-??-?t*+?H*?&*-+???x*+?H*?k:*+?k*-?q*?&*-+???$-???*-??-?t*+?H*?&*-+??*?x*?k?&*+-???*-+?t???Y-?ܺ????N???*+?H*?&*+,???/?'$%&)*$+2,;.>/A1J2P4?6?8?9?:?;???A?B?C?E
FGI"J.M2N8O;QARDXJYM[^]a^d`iaub1R$%E'pE?GqEP%EFpEv23v=EvlE50?T?T??T?qT0?3T??6	=l?w.*?kN*+?k*,?q*,+?t*?x*-?k?/ef
ghijk1*23=EpEqE6	=pp.?+??M,?,??N*,+?t-M???/n	qrstu1*%EpE23=E5?T?6=X./*???/|123()sp.y(*?H?W+?W*?
+??W*?)?
*?)*???/??
???'?1(23(tE5'6ts?.Q*+?ӱ/
??123HIJHK6H*Ys?.?'*?H?W*?
+??W?*?)?
*?)*???/????&?1 '23'HI'u:J'HK5&6	Hu*vz.4*???/
??123z?.p'?*?)?
*?)*??*?
*?
??d??W?/???&?1'23'u:56u??.W+?T?
+?T?
+?????/?123>w5FT6>?X.i*?
??<?**?
d??????/????123xE5?()??.b*?
??<????d?/???123yE5?@z?.2*?????/?123{?.2*?????/?123??.8**?
??d?ð/?123*|??.?C*?
??M,?T?1?
*d?çN*?6,?T-??:*?
??W?,???/?	?? ?0?;?>?14 }I0~IC23CE	:?wJ }K0~K5
?@?6*???.2*?иӬ/?123?X.?,*?
??d<?**?
????M,?ә,???????/???"?$?*?1 	?E
 ?E,235
?
?()??.?0*?
??d<?#**?
????M,???	*?ð??????/???"?(?.?1 
?E
$?E0235
?
?*|()??.?0*?
??d<?#**?
????M,?ә	*?ð??????/???"?(?.1 
?E
$?E0235
?
?*|()
??.w;??*?ܶ?.?+))
))?*?֬/46
1;=E546=?X.0?*?
??d<??**?
????M??,?ܶ?.?ypybnynnyyyynyyyyyyyyn,?ٙ?,?,?,???,??????e?/2???? ?"?#?'??*1 ??E
??E?235?
?}T	??()??./*?6?/.123??.B
*?ܚ??/61
235@??.2*?и߬/;123??.J*??
*????/?1235@??.2*?и֬/D123??.B
*?k???/I1
235@??.s*?kL+??+??+??L+?߬/NO	QSUW123?E5	?T???.l+,-??:*???/\]^1423=E????
??6
=?????.x+,-??:*???/e
fg1>23?E?E????

??6?????._*?eL+?W+??+??*?+???/jk
lmn123mE?p.A	*?+???/
qr1	23	=E6=?X.R*?B??Y??*?B?/??1235()ap.>*+?e?/
??123=E6=(	).[+?+??+?SL???+?/???123=E56=op.W?S??XY?ZY?\?]?+?	M*,?k,?,?+?
N*-?_,?
,??:*??*-?:*?B*?b?/6
?????(?,?1???E?L?R?V?1>W23W?E=?E,+mE??EL?E5?T@T?T@T6?6p.?H??Y??M+?*+??
,+?+?SL???,?N-??-?#?T:*?q???/&	?????#?>?D?G?1*>?EH23H=E@?VJ@??5????6=?.{$+??+?S??+???+?????/????? ?"?1$23$=E56=d.F*? *?7*?B?/??
??123@A.Y*?B?*? ?**?B?$? *? ?/???1235?k.Q+?
*?%?+?;?/?123=E5C:6=???"????????????'$? ?????????????$?	'?	????	??	??	??	??	??	??	??	??	??	????




© 2015 - 2024 Weber Informatics LLC | Privacy Policy