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

com.google.javascript.jscomp.PureFunctionIdentifier$FunctionBodyAnalyzer.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<	Hcom/google/javascript/jscomp/PureFunctionIdentifier$FunctionBodyAnalyzerthis$05Lcom/google/javascript/jscomp/PureFunctionIdentifier;
	
java/lang/Object()Vjava/util/ArrayDeque[com/google/javascript/jscomp/PureFunctionIdentifier$FunctionBodyAnalyzer$FunctionStackEntry
o(Lcom/google/javascript/jscomp/PureFunctionIdentifier$FunctionBodyAnalyzer;Lcom/google/javascript/rhino/Node;)V
'com/google/common/collect/ImmutableListof=(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;

(Ljava/util/Collection;)V	 functionScopeStackLjava/util/ArrayDeque;
"#$addToCatchDepthIfTryBlock&(Lcom/google/javascript/rhino/Node;I)V
&'()*%com/google/javascript/jscomp/NodeUtilisInvocation%(Lcom/google/javascript/rhino/Node;)Z	,-./03com/google/javascript/jscomp/PureFunctionIdentifierallFunctionCallsLjava/util/List;23456java/util/Listadd(Ljava/lang/Object;)Z
89:;< com/google/javascript/rhino/Node
isFunction()Z
&>?@getBestJSDocInfoK(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
BCDE<%com/google/javascript/rhino/JSDocInfoisNoSideEffects	,GHI$summariesForAllNamesOfFunctionByNode$Lcom/google/common/collect/Multimap;KLMNO"com/google/common/collect/Multimapget*(Ljava/lang/Object;)Ljava/util/Collection;QRSTUjava/util/Collectioniterator()Ljava/util/Iterator;WXYZ<java/util/IteratorhasNextW\]^next()Ljava/lang/Object;`Mcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary
_bcdsetIsArtificiallyPure(Z)V	_fghbitmaskI

jk^getLast	mnoroot"Lcom/google/javascript/rhino/Node;
_qr<isArtificiallyPure
tuvwx$com/google/common/base/PreconditionscheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;
z{|updateSideEffectsForNode?(Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
_~<mutatesGlobalState	?????5com/google/javascript/jscomp/PureFunctionIdentifier$1,$SwitchMap$com$google$javascript$rhino$Token[I
8???getToken%()Lcom/google/javascript/rhino/Token;
?????!com/google/javascript/rhino/Tokenordinal()I
8???
getFirstChild$()Lcom/google/javascript/rhino/Node;
8??<isDestructuringPattern	,???RHS_IS_NEVER_LOCALLjava/util/function/Predicate;	,???"FIND_RHS_AND_CHECK_FOR_LOCAL_VALUE???accept(Lcom/google/javascript/jscomp/PureFunctionIdentifier$FunctionBodyAnalyzer;Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;Lcom/google/javascript/jscomp/NodeTraversal;Ljava/util/function/Predicate;)Ljava/util/function/Consumer;
&???visitLhsNodesInNodeB(Lcom/google/javascript/rhino/Node;Ljava/util/function/Consumer;)V
?????*com/google/javascript/jscomp/NodeTraversalgetScope&()Lcom/google/javascript/jscomp/Scope;
8???getOnlyChild	,???RHS_IS_ALWAYS_LOCAL
???visitLhsNode?(Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;Lcom/google/javascript/jscomp/Scope;Lcom/google/javascript/rhino/Node;Ljava/util/function/Predicate;)V
???&deprecatedSetSideEffectsForControlLossR(Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;)V????(Lcom/google/javascript/jscomp/PureFunctionIdentifier$FunctionBodyAnalyzer;Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;Lcom/google/javascript/jscomp/NodeTraversal;)Ljava/util/function/Consumer;
???checkIteratesImpureIterablet(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;)V?
???	visitCallt(Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;Lcom/google/javascript/rhino/Node;)V
8???	getParent
&??*isAnyFor?
&??*isNameDeclaration
&??*evaluatesToLocalValue
8???	getString()Ljava/lang/String;
?????"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;? com/google/javascript/jscomp/Var	???skiplistedVarsLjava/util/LinkedHashSet;
?3?java/util/LinkedHashSet
???recordThrowsBasedOnContext	,???assumeGettersArePureZ
_???%setMutatesGlobalStateAndAllOtherFlagsQ()Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;
8??<isObjectPattern
,???getPropertyKindU(Ljava/lang/String;)Lcom/google/javascript/jscomp/AccessorSummary$PropertyAccessKind;
????<?com/google/javascript/jscomp/AccessorSummary$PropertyAccessKind	hasGetter
???<hasGetterOrSetter
&*isCompoundAssignmentOp	,compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
	
-com/google/javascript/jscomp/AbstractCompilergetAstAnalyzer,()Lcom/google/javascript/jscomp/AstAnalyzer;
*(com/google/javascript/jscomp/AstAnalyzernodeTypeMayHaveSideEffects"java/lang/IllegalArgumentExceptionmakeConcatWithConstants6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
(Ljava/lang/String;)V
&*iteratesImpureIterable	 h
catchDepth
_"#?	setThrows
?%&<isFunctionScope
?()?getScopeRoot
t+,-
checkState(ZLjava/lang/Object;)V

/01addLast(Ljava/lang/Object;)VK346containsKey	,678reverseCallGraph8Lcom/google/javascript/jscomp/graph/LinkedDirectedGraph;:
_<=>
createInGraph?(Lcom/google/javascript/jscomp/graph/DiGraph;Ljava/lang/String;)Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;K@ABput'(Ljava/lang/Object;Ljava/lang/Object;)Z
?DEFgetClosestContainerScope.()Lcom/google/javascript/jscomp/AbstractScope;
?HI?getRootNode
KL6equals

NO^
removeLastQ%s has no side effect info.
tSwTJ(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
?VWXgetVarIterable()Ljava/lang/Iterable;ZR[java/lang/Iterable
?]^?getNameNode
&`a*isLhsByDestructuring
?cd<isParam
?fg6contains	ij?taintedVars
_lm?setMutatesArguments
?op<isCatch
?r?F
?tuvhasSameContainerScope/(Lcom/google/javascript/jscomp/AbstractScope;)Z
&xy*isNormalOrOptChainGet
8{|<isThis
_~?setMutatesThis
8??<isName
???!isVarDeclaredInSameContainerScopeI(Lcom/google/javascript/jscomp/Var;Lcom/google/javascript/jscomp/Scope;)Z????6java/util/function/Predicatetest
8??<isCall	,???astAnalyzer*Lcom/google/javascript/jscomp/AstAnalyzer;
??*functionCallHasSideEffects
8??<isNew
??*constructorCallHasSideEffects
,???getSummariesForCalleeM(Lcom/google/javascript/rhino/Node;)Lcom/google/common/collect/ImmutableList;
??<isEmpty
?T?2()Lcom/google/common/collect/UnmodifiableIterator;
?????Icom/google/javascript/jscomp/PureFunctionIdentifier$SideEffectPropagation
forInvocationp(Lcom/google/javascript/rhino/Node;Z)Lcom/google/javascript/jscomp/PureFunctionIdentifier$SideEffectPropagation;	_???	graphNode8Lcom/google/javascript/jscomp/graph/DiGraph$DiGraphNode;
?????6com/google/javascript/jscomp/graph/LinkedDirectedGraphconnect?(Lcom/google/javascript/jscomp/graph/DiGraph$DiGraphNode;Ljava/lang/Object;Lcom/google/javascript/jscomp/graph/DiGraph$DiGraphNode;)V
8??<isBlock
8??<isTry
8??*isFirstChildOf
8???getNext?9com/google/javascript/jscomp/NodeTraversal$ScopedCallback	SignatureuLjava/util/ArrayDeque;8(Lcom/google/javascript/jscomp/PureFunctionIdentifier;)VCodeLineNumberTableLocalVariableTablethisJLcom/google/javascript/jscomp/PureFunctionIdentifier$FunctionBodyAnalyzer;MethodParametersshouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z	traversal,Lcom/google/javascript/jscomp/NodeTraversal;nodeparentvisits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)VsummaryOLcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;jsdoc'Lcom/google/javascript/rhino/JSDocInfo;
StackMapTablelhsrhsLocalityscope$Lcom/google/javascript/jscomp/Scope;var"Lcom/google/javascript/jscomp/Var;valueencloserSummaryLocalVariableTypeTableBLjava/util/function/Predicate;
enterScope/(Lcom/google/javascript/jscomp/NodeTraversal;)Vtfunction	exitScopeisFromDestructuringlocalVarvsideEffectInfo
functionScope
functionEntry]Lcom/google/javascript/jscomp/PureFunctionIdentifier$FunctionBodyAnalyzer$FunctionStackEntry;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;
objectNodehasLocalRhs?(Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;Lcom/google/javascript/jscomp/Scope;Lcom/google/javascript/rhino/Node;Ljava/util/function/Predicate;)VedgeKLcom/google/javascript/jscomp/PureFunctionIdentifier$SideEffectPropagation;
calleeInfo
callerInfo
invocationcalleeSummaries)Lcom/google/common/collect/ImmutableList;propatesThrowszLcom/google/common/collect/ImmutableList;ndeltajsCatch!lambda$updateSideEffectsForNode$3lhsNode!lambda$updateSideEffectsForNode$2!lambda$updateSideEffectsForNode$1!lambda$updateSideEffectsForNode$0?(Lcom/google/javascript/jscomp/PureFunctionIdentifier$AmbiguatedFunctionSummary;Lcom/google/javascript/jscomp/NodeTraversal;Ljava/util/function/Predicate;Lcom/google/javascript/rhino/Node;)V
SourceFilePureFunctionIdentifier.javaNestHostBootstrapMethods

"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;1
%(Lcom/google/javascript/rhino/Node;)V
|
|
 |"
#$%&$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;(!Unhandled side effect node type InnerClassesFunctionBodyAnalyzerFunctionStackEntryAmbiguatedFunctionSummary.,com/google/javascript/jscomp/AccessorSummaryPropertyAccessKindSideEffectPropagation26com/google/javascript/jscomp/graph/DiGraph$DiGraphNode4*com/google/javascript/jscomp/graph/DiGraphDiGraphNodeScopedCallback8%java/lang/invoke/MethodHandles$Lookup:java/lang/invoke/MethodHandlesLookup0? ????W!*+?*?*?
Y?Y*??????s	vw v?!??????T*,?!??
???*?????o?o?
????????*,?!,?%?*??+,?1W,?7?O,?=:?D?A?<*??F,?J?P:?V??[?_:?a?e???*??i??l:?J*??F?J?P:?V?+?[?_:?p????*?s?_+,?y??ѱ?J??
??"?(?5?_?e?k?n?}??????????????R_??(F?????????????o??o}Mno?!?-BW?$?(8W? _??
???{|?	h+?}????-????.?0??W?////????? 8??????-??:???	?????:-*+,?????d*+,??-???????Q*+??-*+,????*-+???7-*+,?????(*+-?§-?Ƹə?-??*+,?????-?Ƹ͙?-??:?2?К*,??:-?Ӷ???:*??i?????W??*+???*-+??*+????*+????*????+??W??*-+????-?ƶ?v*?-?Ӷ????e+??W?]*?-?Ӷ????L+??W?D+??W?<-??*+,??-???????"*???-?
??Y-??????>???????????????	?
?????*?0?3???BHKUX
Yd
gjtz????? ?!?$?&?'?+?,?0?2?8?9?<??@
HI&P+Q.T5W8Y<ZBWE^HaYbge?\	?$?o????!?????z4?oh??h??h??h?o?????(???8B???C
"?
??????a+???,??W??lmo
p? ???o????	?????>*+???
|}??????????[*??i???+?!W?????????????????V+???$??+?'M,?7,?**??Y*,??.*??F,?2? *??59?;N*??F,-??W??*
?
????(?8?B?F?U??*F??V??V??F?o?	?I8?????I
*+???C??M,?$??*??i?N,?G-?l?J,?G?*+?'-?l?J?*??MW*??F-?l?J?P:?V???[?_:P-?l?RW?}????+???U?Y:?V???[??:?\?_6?b?)?$-???e?-?h?e??kW???6	?b??n?6		?-???e?-?h?e???W???v??7??z??????-?0?>?F?s????????????????????????????? ?#?&?)??R?j???9??	?t??s???*??*???????5???2?W?-_?
W?M??????????a+?+?q??,?s?????? ???????@?	???	??????-?w?a-???z?+?}W??-??:???9,?Ӷ???:*,???*??i??h??W?+??W?+??W?H-??-?*,-?Ӷ???:*,???$-???*??i?????W?+??W??N?????'?5???U?Z?]?b?e?m?z?????
?R5%??C?oz0?????????????o?????????;8?????????????????c?,???*???,????,???*???,????*?,??N-???	+??W?*??i????6-??:?V?/?[?_:,??:*??5??+??????ͱ?>+,5<ABY u!x"}#?$?%?H}??u??????????o5a??Y=???5a????@?W?5?	??#$???+??N+???-???+-????+????:??*??i?Y?`???"()*-%.*/+2>3?4?????o??h:?o%o??8?8?	??|?V*+,??-??????
?*??????o|?^*+,??-????????
??*??????o|?^*+,??-????????
??*??????o?_
*+,??-??????4
??
??
??
??
o	,
0!')J	,*+_,,??-/@?,0
135	??6	79;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy