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

com.google.javascript.jscomp.Es6RewriteBlockScopedDeclaration$LoopClosureTransformer.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!
????7x=com/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration	Tcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformerthis$0?Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration;


Ccom/google/javascript/jscomp/NodeTraversal$AbstractPreOrderCallback()Vjava/util/LinkedHashMap
	
loopObjectMapLjava/util/Map;
,com/google/common/collect/LinkedHashMultimapcreate0()Lcom/google/common/collect/LinkedHashMultimap;	#nodesRequiringLoopObjectsClosureMap'Lcom/google/common/collect/SetMultimap;
!"#$&com/google/common/collect/HashMultimap*()Lcom/google/common/collect/HashMultimap;	&' nodesHandledForLoopObjectClosure	)*referenceMap
,-./0%com/google/javascript/jscomp/NodeUtilisReferenceName%(Lcom/google/javascript/rhino/Node;)Z
23456 com/google/javascript/rhino/Node	getString()Ljava/lang/String;
89:;<*com/google/javascript/jscomp/NodeTraversalgetScope&()Lcom/google/javascript/jscomp/Scope;
>?@AB"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;D com/google/javascript/jscomp/Var
CFGHisLet()Z
CJKHisConst
CM;N.()Lcom/google/javascript/jscomp/AbstractScope;
>PQRgetRootNode$()Lcom/google/javascript/rhino/Node;
,TU0isLoopStructure
2WXH	hasParent
2Z[R	getParent
>]^HisFunctionBlockScope
>`aHisGlobal
>c[<efghi%com/google/common/collect/SetMultimapput'(Ljava/lang/Object;Ljava/lang/Object;)Z
>klHisFunctionScope
2noHisGetterDef
2qrHisSetterDef
2tuRgetGrandparent
2wxHisObjectLit
z{|}~$com/google/common/base/Preconditions
checkState(Z)Ve??i
containsEntry???apply?(Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer;Lcom/google/javascript/jscomp/NodeTraversal;)Ljava/util/function/Function;?????
java/util/MapcomputeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;?_com/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject	????varsLjava/util/Set;?????
java/util/Setadd(Ljava/lang/Object;)Z	???uniqueIdSupplier/Lcom/google/javascript/jscomp/UniqueIdSupplier;
?????-com/google/javascript/jscomp/UniqueIdSuppliergetUniqueId@(Lcom/google/javascript/jscomp/CompilerInput;)Ljava/lang/String;???makeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;
C??RgetNameNode???HisEmpty
???createWrapperFunctions()Ljava/util/Set;????keySet????iterator()Ljava/util/Iterator;????Hjava/util/IteratorhasNext????next()Ljava/lang/Object;????get&(Ljava/lang/Object;)Ljava/lang/Object;	???
astFactory)Lcom/google/javascript/jscomp/AstFactory;
?????'com/google/javascript/jscomp/AstFactorycreateObjectLitG([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
???renameVarsToProperties?(Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
???createLoopObjectNameNode?(Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject;)Lcom/google/javascript/rhino/Node;
????createAssignh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
?????com/google/javascript/rhino/IRvar
2???
srcrefTreeF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
???addNodeBeforeLoopG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
2??HisVanillaFor
???changeVanillaForLoopHeader
,???getLoopCodeBlock
????
exprResult
2???srcrefTreeIfMissing
2???addChildToFront%(Lcom/google/javascript/rhino/Node;)V	???compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
??-com/google/javascript/jscomp/AbstractCompilerreportChangeToEnclosingScope
$changeLoopLocalVariablesToProperties?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject;)V
	
updateNamesInWrapperFunctions(Ljava/util/Set;)V
2
RgetSecondChild
2R
getFirstChild$jscomp$loop_param$
java/lang/StringindexOf(Ljava/lang/String;)I
	substring(II)Ljava/lang/String;
2RgetLastChild
!"#updateNamesY(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V
2%&RgetNext(java/util/LinkedHashSet
'e?
?,-R
returnNodee/?0#(Ljava/lang/Object;)Ljava/util/Set;?234size()I
678(createUniqueParameterNameToUseWithinLoop?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject;)Lcom/google/javascript/rhino/Node;:
?<=?	paramList
??@?block	BCDEF2com/google/javascript/jscomp/colors/StandardColors
TOP_OBJECT+Lcom/google/javascript/jscomp/colors/Color;
?HIJtype[(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/jscomp/AstFactory$Type;
?LMNcreateFunction?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
?PQ?reportChangeToChangeScope
?SITR(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/AstFactory$Type;
?VWX
createCall?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AstFactory$Type;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;	2Z[\	FREE_CALL'Lcom/google/javascript/rhino/Node$Prop;
2^_`putBooleanProp+(Lcom/google/javascript/rhino/Node$Prop;Z)V
,bc0isFunctionDeclaratione;block-scoped function declarations should not exist now: %s
zg}h((ZLjava/lang/String;Ljava/lang/Object;)V
2jk?replaceWith
2mnHisName
?
qrscontains(Ljava/lang/CharSequence;)Z
2uvw	setString(Ljava/lang/String;)V
?yzRempty
2?
,}~0isNameDeclaration
2???srcref
2???getChildAtIndex%(I)Lcom/google/javascript/rhino/Node;
????createComma
???getLoopObjPropName6(Lcom/google/javascript/jscomp/Var;)Ljava/lang/String;
2??HisForOf
z?}?(ZLjava/lang/Object;)V
2??HisForIn
???!assignLoopVarToLoopObjectProperty?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject;Lcom/google/javascript/jscomp/Var;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V
???replaceDeclarationWithProperty?(Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V
???replaceReferenceWithProperty	???	letConsts????remove
???handleLetConstDeclarationList
2??HhasChildren
???!createLoopVarReferenceReplacement?(Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
2??RremoveFirstChild
???extractInlineJSDoci(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
???maybeAddConstJSDoc
2???getJSDocInfo)()Lcom/google/javascript/rhino/JSDocInfo;
2???setJSDocInfoK(Lcom/google/javascript/rhino/JSDocInfo;)Lcom/google/javascript/rhino/Node;
2??Rdetach
2??R	cloneNode
2???insertAfter
C??RgetScopeRoot
???RcreateUndefinedValue
????createStringKeyX(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
2???addChildToBack
????
createGetProp?(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;	????nameLjava/lang/String;
,???
getInputIdI(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/InputId;
????getInputS(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput;???8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
????
createNamed(Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
8???.()Lcom/google/javascript/jscomp/CompilerInput;
???createUniqueObjectName
??
?k(Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer;Ljava/lang/String;)VLOOP_OBJECT_NAME
ConstantValue?$jscomp$loop	Signature?Ljava/util/Map;?Lcom/google/common/collect/SetMultimap;]Lcom/google/common/collect/SetMultimap;mLcom/google/common/collect/SetMultimap;B(Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration;)VCodeLineNumberTableLocalVariableTablethisVLcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer;MethodParametersshouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z	scopeRoot"Lcom/google/javascript/rhino/Node;s$Lcom/google/javascript/jscomp/Scope;nodeToWrapInClosureenclosingFunctionobjectaLcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject;t,Lcom/google/javascript/jscomp/NodeTraversal;nparentreferencedIn"Lcom/google/javascript/jscomp/Var;
declaredInloopNodeouterMostFunctionScope
StackMapTableinput,Lcom/google/javascript/jscomp/CompilerInput;transformLoopClosureloopBody
loopObjectobjectLitNextIterationupdateLoopObject	objectLitwrapperFunctionsLocalVariableTypeTable3Ljava/util/Set;loopObjectNameparamfunc6(Ljava/util/Set;)VobjectsparameterNames#[Lcom/google/javascript/rhino/Node;objectNamesForCallloopObjectIndexIiifecallreplacementfunctionOrObjectLitrLjava/util/Set;.5()Ljava/util/Set;childnode	paramNameplaceHolderinitializer	increment	referencenewPropertyNamenewReferenceassigndeclarationgrandParentreferenceParentloopVarReferenceforInPropAssignmentStatemntloopUpdateStatementnewPropertyValuepropertyNamelambda$shouldTraverse$0?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject;k
SourceFile%Es6RewriteBlockScopedDeclaration.javaNestHostBootstrapMethodsS
TUVWX"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;?[
\KL^?(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/Es6RewriteBlockScopedDeclaration$LoopClosureTransformer$LoopObject;`
abc?d$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;f$jscomp$loop$h$jscomp$loop_param$InnerClassesLoopClosureTransformerAbstractPreOrderCallback
LoopObjectn,com/google/javascript/jscomp/AstFactory$TypeTypeq%com/google/javascript/rhino/Node$PropPropt%java/lang/invoke/MethodHandles$Lookupvjava/lang/invoke/MethodHandlesLookup 
????????'?*?
l**+?*?	*?Y??*??*? ?%*??(?g	jlmno"p*	
%
a,?+??,?1:+?7:?=?C:???E?
?I???L?>:::		?O:

?S?

:?<
?V?
?Y?S?

?Y:?	?\?	?_??	?b:	???*?(,?dW:	:

?#
?O?
?j?
:	
?b:
???	??	?O:

?Y?m?
?Y?p?
?s:?v?y?
:*?%???*?%?dW*?*+??????:????W*??dW??,tu	xyz!{&|(8?:?D?G?K?R?Z?^?a?t?{?~???????????????????????????????	?
???-?:?D?Q?_??R>
KO
	?'

??~

RDaaaaR??L!@?DG??	H	?>C?>2>?2??	?>>?	?!2?2??
??E*???+????????<+???1?????	?*?????*??L*?????M,????,???2N*?-????:*????2??:*-??*???*????:*??*????2?ȸ?-??:*?-??-??
*-??-??:??-???*???-??*-???S*+??Z??
??4?C?S?\?f?p?s???????????????????????R? C?!S{"p^#?A$4???%?&?%'9
???????2?222??	

\+??M,???N,???2N-?:?:?/?1?1??:*-?? ?$:??ҧ???&	 ,.BNX![">B(?'1) 8=>*\\%?&\%'???222?0?%?+????'Y?)L*??*??M,????,???2N?+:*?-?.:?1?2:?1?2:6??:		???,	????:
*-
?5S*
??S????*???9?;?>?A?G?K:	*???	?O*???	-?R?U:

?Y?]-?a??d-?f
-??:-?i+	??W-??*???????+?~&'*(/);*G+S,V-u/}0?2?3?4?6?9?:?;?7?<?=?>?A?B?A?E?F?GH
IJKzu
/?-;?,?G?-.S?/.V?01?e2	?E3
?!4*?5%?&;?,6%'I????G
??22?77??2?R22@?2??8"#?C+?l?!+?1?o?+?1-?p?+,?1?t?+?:?*,-? ?$:???"UVW$X%[0\8[B^4+9CC:C;C(?%?2?
:;(??k+?N-?x?i-?{?-?|?-??-?N*?-+??+??:?{?,+??i?%?x:?i*???,??+??i?>efghi#k,n3o;pHrMsTt`ugtjw>M<kkk#f=38>?#2?2!	#\?,????N-????-???C:*??:*?(?.??:???d???2:+????+??+???+??Y?*+,???#?Y?|?*,???*,???????g?2~&?N?^?q?????????????>NR?&}@??????!'	?
??-C?? 2@%???	!??c	?-?Y:?Y:*?????W*???-?Y:-???O*+-,??:*???-????:-??-??????W????:?i?	??W*??????J??
??'?-?4?8?=?O?W?_?j?v?}???????\	=@AO.Bv4??!?@????C
?D??22
!@????-?Y:-*+-,???i*????????????4!@??E
!@???,
e-???????Y:?|???l????:*???*,???ָ???:+??:		?ɱ>???$?.?5?B?G?J?O?T?U?X?]?d?f
eee!e?e@?e?KE50FTG]H	
@!?@???c+????:???P???C:*??:??-?*+?????
*??Ķ?:,*????Ҷ֧???*
?!?)?2?A?M?Y?\?_?b?H)6@?MI!>?cc!c"c???5CI2?
!"??? *???*+??-,?R??:,??W??	????4  ! ? J?
4
!?J78|2*???,??*???*???+???????A?G??
+. 22:2!	:!??I*???+?ݲA?G??!!KLO??Y**+?????? MNOPQRYZ]_e_gi2j
8k	?lm?op2r@suw




© 2015 - 2024 Weber Informatics LLC | Privacy Policy