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

com.google.javascript.jscomp.FunctionToBlockMutator.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!
????75com/google/javascript/jscomp/FunctionArgumentInjector
java/lang/Object()V


$com/google/common/base/PreconditionscheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;-com/google/javascript/jscomp/AbstractCompiler	3com/google/javascript/jscomp/FunctionToBlockMutatorcompiler/Lcom/google/javascript/jscomp/AbstractCompiler;	safeNameIdSupplierLjava/util/function/Supplier;
getAstAnalyzer,()Lcom/google/javascript/jscomp/AstAnalyzer;
 !-(Lcom/google/javascript/jscomp/AstAnalyzer;)V	#$%functionArgumentInjector7Lcom/google/javascript/jscomp/FunctionArgumentInjector;
'()mutateInternal?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Ljava/lang/String;ZZZ)Lcom/google/javascript/rhino/Node;
+,-./ com/google/javascript/rhino/Node	cloneTree$()Lcom/google/javascript/rhino/Node;
12345com/google/javascript/rhino/IRscriptG([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
1785root
:;<makeLocalNamesUnique&(Lcom/google/javascript/rhino/Node;Z)V
+>?/getLastChild
ABCrewriteFunctionDeclarationsF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
EFGfindModifiedParameters3(Lcom/google/javascript/rhino/Node;)Ljava/util/Set;
IJKgetFunctionCallParameterMap?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Ljava/util/function/Supplier;)Lcom/google/common/collect/ImmutableMap;
MNOPQ&com/google/common/collect/ImmutableMapisEmpty()Z
STUgetCodingConvention1()Lcom/google/javascript/jscomp/CodingConvention;
WXYmaybeAddTempsForCallArguments?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/common/collect/ImmutableMap;Ljava/util/Set;Lcom/google/javascript/jscomp/CodingConvention;)V
[\]^C%com/google/javascript/jscomp/NodeUtilgetFunctionBody
+`a/detach
cdealiasAndInlineArguments}(Lcom/google/javascript/rhino/Node;Lcom/google/common/collect/ImmutableMap;Ljava/util/Set;)Lcom/google/javascript/rhino/Node;

ghi
checkState(Z)V
klmfixUninitializedVarDeclarationsG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
opqgetLabelNameForFunction&(Ljava/lang/String;)Ljava/lang/String;
stureplaceReturnsk(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Ljava/lang/String;Z)Lcom/google/javascript/rhino/Node;
+wxQ
isFunction
[z{|isFunctionDeclaration%(Lcom/google/javascript/rhino/Node;)Z
+~/
getFirstChild
+???	getString()Ljava/lang/String;
1???name6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
+??Csrcref
1??Cvar?
+???	setString(Ljava/lang/String;)V
+???replaceWith%(Lcom/google/javascript/rhino/Node;)V
+???addChildToFront?java/util/ArrayList
?
+??/getNext?????java/util/Listadd(ILjava/lang/Object;)V????iterator()Ljava/util/Iterator;????Qjava/util/IteratorhasNext????next()Ljava/lang/Object;
[??|isLoopStructure
+??QisVar
+??QisLet
+??QhasOneChild
+??QhasChildren
[??CnewUndefinedNode
+???addChildToBack
???getUniqueNameIdSupplier()Ljava/util/function/Supplier;
?????'com/google/common/collect/ImmutableListof=(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
?????4com/google/javascript/jscomp/MakeDeclaredNamesUniquebuilder@()Lcom/google/javascript/jscomp/MakeDeclaredNamesUnique$Builder;?Bcom/google/javascript/jscomp/MakeDeclaredNamesUnique$InlineRenamer?inline_
????(Lcom/google/javascript/jscomp/CodingConvention;Ljava/util/function/Supplier;Ljava/lang/String;ZZLcom/google/javascript/jscomp/MakeDeclaredNamesUnique$Renamer;)V
??????getValue
+@AQisThis
CDEF|(com/google/javascript/jscomp/AstAnalyzermayHaveSideEffects
HI?getUniqueThisName
[KLM
newVarNodeX(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
+OPCsrcrefTreeIfMissing
+RSC
srcrefTreeUVWXY
java/util/Mapput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;U[\remove	^_`ab!com/google/javascript/rhino/TokenRETURN#Lcom/google/javascript/rhino/Token;d;com/google/javascript/jscomp/NodeUtil$MatchShallowStatement
c
[ghigetNodeTypeReferenceCountj(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Token;Lcom/google/common/base/Predicate;)I
kl|hasReturnAtExit
nopconvertLastReturnToStatement7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V
rstreplaceReturnWithBreak?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
1vw?	labelName
1yz{labelh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
1}~/block
??paddDummyAssignment
+??QisBlock

??i
checkArgument
??McreateAssignStatementNode
+??QisReturn
???getReplacementReturnStatementX(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
1??{assign
[??CnewExpr
+??QisExprResult
[??|isStatementBlock
1??C	breakNode
+???insertBefore	Signature1Ljava/util/function/Supplier;O(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/util/function/Supplier;)VCodeLineNumberTableLocalVariableTable5Lcom/google/javascript/jscomp/FunctionToBlockMutator;LocalVariableTypeTableMethodParametersc(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/util/function/Supplier;)Vmutate?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Ljava/lang/String;ZZ)Lcom/google/javascript/rhino/Node;fnNameLjava/lang/String;fnNode"Lcom/google/javascript/rhino/Node;callNode
resultNameneedsDefaultResultZisCallInLoopmutateWithoutRenaminginlineResultrenameLocals	newFnNodenamesToAliasLjava/util/Set;args(Lcom/google/common/collect/ImmutableMap;hasArgsnewBlockinjectableBlock#Ljava/util/Set;^Lcom/google/common/collect/ImmutableMap;
StackMapTable
fnNameNodefnVarcnfunctionsToHoistLjava/util/List;4Ljava/util/List;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;srcLocationcontainingBlock
idSupplierresultnewNamenewValuenewNodereferencesThisvalueentryLjava/util/Map$Entry;	newArgMapLjava/util/Map;newVarsfnTemplateRootargMapKLjava/util/Map$Entry;ELjava/util/Map;?(Lcom/google/javascript/rhino/Node;Lcom/google/common/collect/ImmutableMap;Ljava/util/Set;)Lcom/google/javascript/rhino/Node;newRootresultMustBeSetreturnCountInoderetVal
resultNoderet
expressionnameNodecurrentparent
SourceFileFunctionToBlockMutator.javaNestMembersBootstrapMethods?
????$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;?JSCompiler_inline_label__?JSCompiler_inline_this_InnerClassesBuilder
InlineRenamer?I?N?]?b?t?w?z??????????????????????????
?5?????????????????????????>???	N???
]z???V???w?
????>???	N???
?1
?3+?&M@??(++@??+@????????
BC???*?v?8*?y?/*?}L+????+??M,??*??N+???*-??,*??-????Y??L*?}M,?!,??N,?@:?+??-M???+??M,??? ,???+N*?}-?*-?_???????Z?????(?.?3?8?:?<?D?M?R?X?]?f?k??????????\	'????(??X??I"??R????????DV???DV??? :??+?+???"?????
lm??S*????*???
*???)*???"*?}M,???,N,-?ö?+*?_???*?}M,?,+?j,??M????6
????"?)?+?3?;?<?E?J?R??4+??"??A??S??S???
?$+??+??	??;<??Q*???N*?+?͸ӻ?Y*??R-??ݶ???????Y*???Y-????+????2(	,/36MP?*Q5?Q??Q??I??I???	??pq?q"+??	?+M,*??	????
()? "5?"?????
@??I??<*??	????.?5?de?Zs-?-??$*?"*?+,?:+???f??Y,?:??Y??:,?"?&:???????+:?-?:-?0??4?6?v+?96	?<?+:

???Y	?*??
?B?E*?G:?<?+?*:?J?N:

??4???Q?TW?4?<?+?*:		?J	?N:

???ZW??$*?"*?+?:+???f??:??????+:+???????~=
?@+A.H8LAO`PlQwR?S?X?Y?Z?[?\?]?^?`?b?cdeg&j)m:nHrgsmtpv?????<???-?????
?j??	?^??
"??	??
l???`???g??8;??A2??:9??s5?s??s??s???4`???8;??A2??s??s???[
?+@??U???e+MU??++?A?0??+@????
?????
tu?j
?*?	W,?	W*:6*?]?cY?e?f6?M*?j6?*+?m???5*+,?qW,?u*??:*?x*??:?|*??:		??	:??+?*+???V??
?
??? ?%?+?0?5?8?=?E?O?[?d?k?o?|????f
O ??[z?d??	?~?????w????
w8?tl? d????8+6?~?w?
?p??#*????*M,??N+-??:*?NW*?Ʊ???	????"??4#??#??	???????	??
op??**?=M,????,+??N-?,?_W?-,?NW,-????"??????$?)??**~?*??%??????++
?	~?
?M?`*??M,+??N-????????*?????????	??
????8MN*???*?}?*N+?-?-??M?-?*:??N+-??M,??2???????#?'?*?0?6??4*??8??8??6??4????++?	??
l|?2*?=?????~??~
st?:u*?v?
*???*?*???@+???f*,??:-?u??:*?NW*???*?NW??K?"*?}:?*,-?q:??:???*??F
%.5;@GN Q!T"_$i"s(?H%,??.#??Z??u??u??u??uw???=++??+?????w?	???????????B????????	?+U	c[	





© 2015 - 2024 Weber Informatics LLC | Privacy Policy