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

com.google.javascript.jscomp.CoalesceVariableNames.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!
>com/google/javascript/jscomp/NodeTraversal$AbstractCfgCallback()V	

applyAsIntX(Lcom/google/javascript/jscomp/CoalesceVariableNames;)Ljava/util/function/ToIntFunction;
java/util/ComparatorcomparingInt:(Ljava/util/function/ToIntFunction;)Ljava/util/Comparator;	2com/google/javascript/jscomp/CoalesceVariableNamescoloringTieBreakerLjava/util/Comparator;java/util/ArrayDeque
	shouldOptimizeScopeStackLjava/util/Deque;
 !"#-com/google/javascript/jscomp/AbstractCompilergetLifeCycleStage@()Lcom/google/javascript/jscomp/AbstractCompiler$LifeCycleStage;
%&'()Lcom/google/javascript/jscomp/AbstractCompiler$LifeCycleStage;
uvwsetLifeCycleStageA(Lcom/google/javascript/jscomp/AbstractCompiler$LifeCycleStage;)V
Yyz{getScopeRoot$()Lcom/google/javascript/rhino/Node;
}~?) com/google/javascript/rhino/Node
isFunction
Y???getCompiler1()Lcom/google/javascript/jscomp/AbstractCompiler;
Y???getScopeCreator-()Lcom/google/javascript/jscomp/ScopeCreator;
Y???getScope&()Lcom/google/javascript/jscomp/Scope;
?????%com/google/javascript/jscomp/NodeUtilgetAllVarsDeclaredInFunction?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/ScopeCreator;Lcom/google/javascript/jscomp/Scope;)Lcom/google/javascript/jscomp/NodeUtil$AllVarsDeclaredInFunction;?2com/google/javascript/jscomp/LiveVariablesAnalysis
??????com/google/javascript/jscomp/NodeUtil$AllVarsDeclaredInFunctiongetAllVariablesInOrder()Ljava/util/List;?????java/util/Listsize()I
???shouldOptimizeScopeo(Lcom/google/javascript/jscomp/NodeTraversal;)Lcom/google/javascript/jscomp/NodeUtil$AllVarsDeclaredInFunction;
?????java/lang/BooleanvalueOf(Z)Ljava/lang/Boolean;?????java/util/Dequepush(Ljava/lang/Object;)V
????)"com/google/javascript/jscomp/ScopeisFunctionScope
+?.?(ZLjava/lang/Object;)V
???getControlFlowGraph`(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/jscomp/ControlFlowGraph;
???(Lcom/google/javascript/jscomp/ControlFlowGraph;Lcom/google/javascript/jscomp/Scope;Lcom/google/javascript/jscomp/Scope;Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/ScopeCreator;Lcom/google/javascript/jscomp/NodeUtil$AllVarsDeclaredInFunction;)V	???liveness4Lcom/google/javascript/jscomp/LiveVariablesAnalysis;	?????6com/google/javascript/jscomp/parsing/parser/FeatureSetES38Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;
???
getOptions0()Lcom/google/javascript/jscomp/CompilerOptions;
?????,com/google/javascript/jscomp/CompilerOptionsgetOutputFeatureSet:()Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;
????contains;(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;)Z
???{getRootNode
????getFunctionParametersF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
}??)hasTwoChildren
???markAllParametersEscaped
???analyze
????getEscapedLocals()Ljava/util/Set;
???%computeVariableNamesInterferenceGraphn(Lcom/google/javascript/jscomp/ControlFlowGraph;Ljava/util/Set;)Lcom/google/javascript/jscomp/graph/UndiGraph;?Dcom/google/javascript/jscomp/graph/GraphColoring$GreedyGraphColoring
???L(Lcom/google/javascript/jscomp/graph/AdjacencyGraph;Ljava/util/Comparator;)V
?????0com/google/javascript/jscomp/graph/GraphColoringcolor????pop()Ljava/lang/Object;
??)booleanValue??peek?)isEmpty
}	)isName
?
getAllVariables()Ljava/util/Map;
}	getString()Ljava/lang/String;W
java/util/Mapget com/google/javascript/jscomp/Var
?getGraph5()Lcom/google/javascript/jscomp/graph/AdjacencyGraph; !"1com/google/javascript/jscomp/graph/AdjacencyGraphgetNodeB(Ljava/lang/Object;)Lcom/google/javascript/jscomp/graph/GraphNode;
?$%WgetPartitionSuperNode'()*?,com/google/javascript/jscomp/graph/GraphNodegetValue
,-.equals(Ljava/lang/Object;)Z
01getName
}345	setString(Ljava/lang/String;)V
78oreportChangeToEnclosingScope
:;< updateDeclarationsPostCoalescingi(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Var;Lcom/google/javascript/rhino/Node;)V>java/util/TreeSet
=
???BCDiterator()Ljava/util/Iterator;FGHI)java/util/IteratorhasNextFKL?next
?NOP
haveSameColor'(Ljava/lang/Object;Ljava/lang/Object;)ZRSTU.
java/util/SetaddR?X_
Z[\]^com/google/common/base/Joineron3(Ljava/lang/String;)Lcom/google/common/base/Joiner;
Z`abjoin((Ljava/lang/Iterable;)Ljava/lang/String;
?defhasSlot(Ljava/lang/String;)ZhijmakeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;l3trying to update the declaration of a non-name node
?nopisNameDeclaration%(Lcom/google/javascript/rhino/Node;)Z	rstuv!com/google/javascript/rhino/TokenDESTRUCTURING_LHS#Lcom/google/javascript/rhino/Token;
?xyzgetEnclosingTypei(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Token;)Lcom/google/javascript/rhino/Node;
?|}pisLhsByDestructuring
?p#isNameInsideDestructuringAssignment
???makeDeclarationVar%(Lcom/google/javascript/jscomp/Var;)V
??oremoveVarDeclaration
????
getRootTarget
}??)isDestructuringPattern
}??{	getParent
}??)isAssign
?????8com/google/javascript/jscomp/graph/LinkedUndirectedGraphcreate<()Lcom/google/javascript/jscomp/graph/LinkedUndirectedGraph;????toArray(([Ljava/lang/Object;)[Ljava/lang/Object;?#[Lcom/google/javascript/jscomp/Var;?java/util/BitSet
????apply"()Ljava/util/function/IntFunction;
?????java/util/ArrayssetAll6([Ljava/lang/Object;Ljava/util/function/IntFunction;)VR??.
??{
getParentNode
}??)isClass
???isInMultipleLvalueDecl%(Lcom/google/javascript/jscomp/Var;)Z
????",com/google/javascript/jscomp/graph/UndiGraph
createNode
????set(I)V
?????-com/google/javascript/jscomp/ControlFlowGraphgetNodes()Ljava/util/Collection;?B?java/util/Collection?6com/google/javascript/jscomp/graph/DiGraph$DiGraphNode
????isImplicitReturn;(Lcom/google/javascript/jscomp/graph/DiGraph$DiGraphNode;)Z????
getAnnotation1()Lcom/google/javascript/jscomp/graph/Annotation;?=com/google/javascript/jscomp/DataFlowAnalysis$LinearFlowState
????getIn?Fcom/google/javascript/jscomp/LiveVariablesAnalysis$LiveVariableLattice
????
nextSetBit(I)I
????getOut?Ccom/google/javascript/jscomp/CoalesceVariableNames$LiveRangeChecker?(
????(Lcom/google/javascript/rhino/Node;[Lcom/google/javascript/jscomp/Var;Lcom/google/javascript/jscomp/DataFlowAnalysis$LinearFlowState;)V
???ocheck
????setCrossingVariables([Ljava/util/BitSet;)V
???(I)Z
??)isParam
????connectIfNotFound9(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
???declarationType%()Lcom/google/javascript/rhino/Token;	?4com/google/javascript/jscomp/CoalesceVariableNames$1,$SwitchMap$com$google$javascript$rhino$Token[I
r?ordinal
!{
?$()Lcom/google/common/base/Predicate;
?
getEnclosingNodeh(Lcom/google/javascript/rhino/Node;Lcom/google/common/base/Predicate;)Lcom/google/javascript/rhino/Node;accept!([I)Ljava/util/function/Consumer;
?visitLhsNodesInNodeB(Lcom/google/javascript/rhino/Node;Ljava/util/function/Consumer;)V
}{
getFirstChild
})isDestructuringLhs
} {removeFirstChild
?"#p
isEnhancedFor
}%&oreplaceWith
}(){getFirstFirstChild
}+,{detach
./012com/google/javascript/rhino/IRassignh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
}45?srcref
?78?newExpr
}:;)hasOneChild
}=>)hasChildren
}@A)isVanillaFor
?CDEremoveChildG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
GH)isConst
JK)isLet
MN{getNameNode
+PVQ8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
STp isUninitializedLetNameInLoopBody
VWXY{'com/google/javascript/jscomp/AstFactorycreateUndefinedValue
}[\?
srcrefTree
}^_oaddChildToFront	rabvVAR
}defsetToken&(Lcom/google/javascript/rhino/Token;)V
}J
?ijpisLoopStructure
?lmpisWithinLoop
?opqgetVarIndex(Ljava/lang/String;)Is)com/google/javascript/jscomp/CompilerPass	SignatureyLjava/util/Deque;>;GLjava/util/Deque;:Ljava/util/Comparator;&Ljava/util/Deque;3(Lcom/google/javascript/jscomp/AbstractCompiler;Z)VCodeLineNumberTableLocalVariableTablethis4Lcom/google/javascript/jscomp/CoalesceVariableNames;MethodParametersprocessexterns"Lcom/google/javascript/rhino/Node;rootallVarsDeclaredInFunctionALcom/google/javascript/jscomp/NodeUtil$AllVarsDeclaredInFunction;t,Lcom/google/javascript/jscomp/NodeTraversal;
StackMapTableRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;enterScopeWithCfg/(Lcom/google/javascript/jscomp/NodeTraversal;)VenclosingFunctionscope$Lcom/google/javascript/jscomp/Scope;cfg/Lcom/google/javascript/jscomp/ControlFlowGraph;interferenceGraph.Lcom/google/javascript/jscomp/graph/UndiGraph;coloring2Lcom/google/javascript/jscomp/graph/GraphColoring;LocalVariableTypeTableSLcom/google/javascript/jscomp/ControlFlowGraph;bLcom/google/javascript/jscomp/graph/UndiGraph;fLcom/google/javascript/jscomp/graph/GraphColoring;exitScopeWithCfgvisits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)ViVar"Lcom/google/javascript/jscomp/Var;allMergedNamesLjava/util/Set;
pseudoNameLjava/lang/String;nparentvarvNode.Lcom/google/javascript/jscomp/graph/GraphNode;coalescedVar#Ljava/util/Set;bLcom/google/javascript/jscomp/graph/GraphNode;?java/lang/StringenclosingTargetvjIistate?Lcom/google/javascript/jscomp/DataFlowAnalysis$LinearFlowState;liveinHLcom/google/javascript/jscomp/LiveVariablesAnalysis$LiveVariableLattice;liveoutliveRangeCheckerELcom/google/javascript/jscomp/CoalesceVariableNames$LiveRangeChecker;cfgNode8Lcom/google/javascript/jscomp/graph/DiGraph$DiGraphNode;v2v2Indexv1escapedorderedVariablesinterferenceGraphNodesLjava/util/BitSet;interferenceBitSet[Ljava/util/BitSet;vIndexv1Index?Lcom/google/javascript/jscomp/DataFlowAnalysis$LinearFlowState;?Lcom/google/javascript/jscomp/graph/DiGraph$DiGraphNode;4Ljava/util/Set<+Lcom/google/javascript/jscomp/Var;>;??(Lcom/google/javascript/jscomp/ControlFlowGraph;Ljava/util/Set<+Lcom/google/javascript/jscomp/Var;>;)Lcom/google/javascript/jscomp/graph/UndiGraph;nameDeclcountrvaluedestructuringLhspatternvaluenameundefinedValuenameNodedeclNode
coalescedNameletNode	letParentlambda$isInMultipleLvalueDecl$2'([ILcom/google/javascript/rhino/Node;)Vlhs.lambda$computeVariableNamesInterferenceGraph$1(I)Ljava/util/BitSet;lambda$new$0%(Lcom/google/javascript/jscomp/Var;)Iarg
SourceFileCoalesceVariableNames.javaNestMembersBootstrapMethods?
?????"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;?(Ljava/lang/Object;)I?
?????
???i?$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;?$?(I)Ljava/lang/Object;?
????.mp?
??oInnerClassesAbstractCfgCallbackLifeCycleStageBuilder
3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackAllVarsDeclaredInFunctionGreedyGraphColoring*com/google/javascript/jscomp/graph/DiGraphDiGraphNode-com/google/javascript/jscomp/DataFlowAnalysisLinearFlowStateLiveVariableLatticeLiveRangeChecker4com/google/javascript/jscomp/ControlFlowGraph$BranchBranch%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup r	23RS6tu9tv<=DE??twtxyz?b*?**???*?Y??+??$?**+?0*?Y??4*?Y??7*?:*+?>?B*?FY?HY+?J?M?P?{2[QRU_&a+b6cAdFeNfag| b}~b23b<=	2<?Ez?.+?TW,?TW?X*?0?^*?d*?P?h,?l*?0?p?t?{&	kl
mnop q#r-s| .}~.??.??	??
??z?,*?x?|?#*??*??*????Ld+?????+??{|
}~?(?*?|??,???*?????z?	?+??M,?*??????*?????+??N-??-??**?0??:*??Y-*?0*?P,??????*?0?ʶζԙ-??:?۶ߙ
*????*????*?7*????**?????:??Y*???:??W*?4???{V??	???$?)?1?;?S?f?l?w?~???????????????|Rl???}~??????)???;????!?????? ;????!?????????f?????z?8*?????????*?4??W*?7??W**?7??????{????'?7?|8}~8??????z?
a*?4??,??
-?|??*???
,???:*?4?????:??*?4????#?:*?:?2?&??+??,?/?2*?0,?6*,-?9?ɻ=Y??:*???@?A:?E?N?J?:	*?4????	??&*?4???	?M?	?/?QW????V??W?Y?_:+???c??g:???,?2*?0,?6?&??+??*,-?9?{z???0?H?M?N?d?k?}?~????????????????????+?7?=?E?W?X?`?|f
?<??	????A??a}~a??a??a??01??H??d????????H???/
?2'?/?RF?Q??? ?
???;<z?4+?k??-?m?+?q?w?+?{?*+?~?*,??+???{"
$ *"/$3&|*4}~4??4??4???*
????pzr+??M,???,???????{0135| }~??????}???zH2??N*???@?????:??Y??:???:????6:?6	6

	?W
2:?,????9???|??+??????*????-??W???
???+?¹?:?E???J??:	+	?͙???	????:

????:??6?7??6

?2
??
`??6
???`??6???
????:??6

?7
??6?
2??`??6???
`??6
??ʻ?Y	???}
??:

	???}??
???6:		?6
6
??	2:?6
:?66?Z2:?

??@??6
???)????2
??-?????????-?{?7GLP"T*U4W7XQYTZ_[bbmcpm{n~u?v?y?z?X?????????????????"?,?9?G?Q?_?m?s??????????????????????????????$?*?0?|?QG?????
?9??B??49??
????
????,n?????
????	?J???j??
?p??2}~2??2??.????"??*??7????????4????
????	2??2??.????C?R??????

?
??
F?!?????
??
???
??
?/?R??????R???????R??????????R??????	??t???z?Y+??M??,?.?J+??	?N?
YO:-??.????{??(?5?>?I?W?|45"??>?Y}~Y??T?v??(r?,}?@??
?oz??*?	?L+??M+???<+?N-?:,?!?+?$?+?'?*:+?-+?3?6?$?e,?!?+*?*?$?S+?9?+?*??+??*?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy