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

com.google.javascript.jscomp.RenameVars.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?
java/lang/Object()Vjava/util/ArrayList
	
'com/google/javascript/jscomp/RenameVarsglobalNameNodesLjava/util/ArrayList;	localNameNodesjava/util/LinkedHashMap
	originalNameByNodeLjava/util/Map;		renameMap	 assignmentCountI"java/util/LinkedHashSet
!	%&'localBleedingFunctionsLjava/util/Set;
)*+,-+com/google/common/collect/ArrayListMultimapcreate/()Lcom/google/common/collect/ArrayListMultimap;	/01localBleedingFunctionsPerScope(Lcom/google/common/collect/ListMultimap;	34assignments	678compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
:;<=>com/google/common/base/StringsnullToEmpty&(Ljava/lang/String;)Ljava/lang/String;	@ABprefixLjava/lang/String;	DEFlocalRenamingOnlyZ	HI
pseudoNameMap	KLMprevUsedRenameMap*Lcom/google/javascript/jscomp/VariableMap;	OPQreservedCharacters[C	STFpreferStableNames	VW'
reservedNames
!YZ(Ljava/util/Collection;)V	\]^
nameGenerator,Lcom/google/javascript/jscomp/NameGenerator;	`abc 2com/google/javascript/jscomp/RenameVars$Assignmentcount	efgORDER_OF_OCCURRENCE_COMPARATORLjava/util/Comparator;ijklmjava/util/Comparatorcompare'(Ljava/lang/Object;Ljava/lang/Object;)I
opqrs%com/google/javascript/jscomp/NodeUtilcollectExternVariableNames{(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;)Lcom/google/common/collect/ImmutableSet;	uvwexternNames(Lcom/google/common/collect/ImmutableSet;yz{|
java/util/Mapclear~3com/google/javascript/jscomp/RenameVars$ProcessVars
}??,(Lcom/google/javascript/jscomp/RenameVars;)V
?????*com/google/javascript/jscomp/NodeTraversaltraverse?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V?????
java/util/SetaddAll(Ljava/util/Collection;)Z?java/util/TreeSet?l?()Ljava/util/Comparator;
???(Ljava/util/Comparator;)Vy???values()Ljava/util/Collection;???java/util/SortedSet
???reusePreviouslyUsedVariableMap(Ljava/util/SortedSet;)V
???assignNames
???iterator()Ljava/util/Iterator;?????java/util/IteratorhasNext()Z????next()Ljava/lang/Object;? com/google/javascript/rhino/Node
???getNewGlobalName6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
???setNameAndReport7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V
???getNewLocalName
????	getString()Ljava/lang/String;
?????java/lang/Stringequals(Ljava/lang/Object;)Z
????	setString(Ljava/lang/String;)Vy???get&(Ljava/lang/Object;)Ljava/lang/Object;
?????-com/google/javascript/jscomp/AbstractCompilerreportChangeToEnclosingScope%(Lcom/google/javascript/rhino/Node;)V
????	getParent$()Lcom/google/javascript/rhino/Node;
????
isFunction
o???isFunctionDeclaration%(Lcom/google/javascript/rhino/Node;)Z	`??BnewName??>makeConcatWithConstantsy???put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
?????(com/google/javascript/jscomp/VariableMapgetNewNameToOriginalNameMap*()Lcom/google/common/collect/ImmutableMap;
?????$com/google/common/base/PreconditionscheckNotNull??	`??BoldName
???>
lookupNewName???contains	`FisLocal
?&com/google/common/collect/ImmutableSet
?	

startsWith(Ljava/lang/String;)Z?
?add
finalizeNameAssignmentI(Lcom/google/javascript/jscomp/RenameVars$Assignment;Ljava/lang/String;)V*com/google/javascript/jscomp/NameGeneratorreset&(Ljava/util/Set;Ljava/lang/String;[C)V
??isEmpty cloneQ(Ljava/util/Set;Ljava/lang/String;[C)Lcom/google/javascript/jscomp/NameGenerator;"#?generateNextName%&java/util/List%()*size()I%,?-(I)Ljava/lang/Object;
?/0*length?
`34?
setNewName
6789:&com/google/common/collect/ImmutableMapcopyOf9(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;
?<=(Ljava/util/Map;)V
??@AgetCodingConvention1()Lcom/google/javascript/jscomp/CodingConvention;CDEFG-com/google/javascript/jscomp/CodingConvention
isExported(Ljava/lang/String;Z)Z
IJKL* com/google/javascript/jscomp/VargetIndex
INOPgetScope.()Lcom/google/javascript/jscomp/AbstractScope;R"com/google/javascript/jscomp/Scope
QT?U&()Lcom/google/javascript/jscomp/Scope;W"java/lang/IllegalArgumentExceptionYVar is not local
V[?]^_?`&com/google/common/collect/ListMultimap$(Ljava/lang/Object;)Ljava/util/List;%bcdindexOf(Ljava/lang/Object;)I
fgh$shouldTemporarilyRenameLocalsInScope'(Lcom/google/javascript/jscomp/Scope;)Z
Qjk*getVarCount	`mn orderOfOccurrencepqr
applyAsInt$()Ljava/util/function/ToIntFunction;ituvcomparingInt:(Ljava/util/function/ToIntFunction;)Ljava/util/Comparator;x)com/google/javascript/jscomp/CompilerPass"MAX_LOCALS_IN_SCOPE_TO_TEMP_RENAME
ConstantValue?	Signature9Ljava/util/ArrayList;ELjava/util/Map;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;;#Ljava/util/Set;5Ljava/util/Map;3Ljava/util/Set;pLcom/google/common/collect/ListMultimap;WLjava/util/Map;LOCAL_VAR_PREFIX?L LLjava/util/Comparator;?(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;ZZZLcom/google/javascript/jscomp/VariableMap;[CLjava/util/Set;Lcom/google/javascript/jscomp/NameGenerator;)VCodeLineNumberTableLocalVariableTablethis)Lcom/google/javascript/jscomp/RenameVars;generatePseudoNamesLocalVariableTypeTable
StackMapTableQMethodParameters?(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;ZZZLcom/google/javascript/jscomp/VariableMap;[CLjava/util/Set;Lcom/google/javascript/jscomp/NameGenerator;)VfrequencyComparatork(Lcom/google/javascript/jscomp/RenameVars$Assignment;Lcom/google/javascript/jscomp/RenameVars$Assignment;)Ia14Lcom/google/javascript/jscomp/RenameVars$Assignment;a2processG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vn"Lcom/google/javascript/rhino/Node;externsrootvarsByFrequencyLjava/util/SortedSet;KLjava/util/SortedSet;parentaoldTempNamerecordPseudoNameprevNewNamevarsToRenameN(Ljava/util/SortedSet;)VjvarsByOrderOfOccurrenceleniglobalNameGeneratorlocalNameGeneratorpendingAssignmentsLjava/util/List;generatedNamesForAssignmentsnumPendingAssignmentsFLjava/util/List;$Ljava/util/List;getVariableMap,()Lcom/google/javascript/jscomp/VariableMap;
okToRenameVarnamegetLocalVarIndex%(Lcom/google/javascript/jscomp/Var;)Iv"Lcom/google/javascript/jscomp/Var;nums$Lcom/google/javascript/jscomp/Scope;isBleedingIntoScopelambda$static$07(Lcom/google/javascript/jscomp/RenameVars$Assignment;)Iarg
SourceFileRenameVars.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;m?
?????
?????$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;?$$$d?
????InnerClasses
AssignmentProcessVars?3com/google/javascript/jscomp/NodeTraversal$CallbackCallback?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup0wy z{78|}|}|~I|~?vw|?W'|?|?LMAB &'|?01|?4|?EFTFPQ?Bz?]^fg|????
?*?*?Y?	?
*?Y?	?*?Y??*?Y??*?*?!Y?#?$*?(?.*?Y??2*+?5*,?9??*?C?*?Y??G?*?G*?J*?N*?R?*?!Y?#?U?*?!Y?X?U*	?[??b?9<?%N0W5[@\A]GzR?W?_?d?i?w?|????????????????f
????78?AB?EF??F?TF?LM?PQ?W'?]^	??W??$?w
?????$?%	7AE?TLPW]|???
???e *?_+?_?
+?_*?_d??d*+?h??+,0? ?? ????	???????**?5+?n?t*??x*?5,?}Y*???*?U*?t??W??Y????N-*?2????W*?J?*-??*-??*?
??:???????:**???????*???:???????:**??????ޱ?B9;>%A3D@EPHWI\MaP?Q?R?U?V?W?X?>???????????????@~???@~????\??
??$???$?	??????I,?G,+???Ú<+,??,*?+???Ú&*?5+??+??N-?ۙ-?ޙ*?5-?ѱ?"\]a%b-c2d@gHk?*2??I??I??I?B??H?	??	?????A+??M*?2,???`N-???(-??,?Ú*?G?*?G+???İ-????nop%q,r:t?v?*A??A??<?B.????:?`???????:+??M*?2,???`N-??,?Ú*?G?*?G+???İ-????{|}~%3?8??*:??:??5?B'????3?`??????M*?G++??????W??
????????????$?*?J???W+??M,???g,???`N*?J-????:???*?U??????-??*?t-????"*????*?U?W*-??????2??%?2?E?H?W?c?i?u?|???*2J?B%W????????????????5`? ????|????9t*?[*?U*??*?N?*?[M*????,?*?[*?U*?N?N?Y?	:?Y?	:+??:???r???`:??????*?t?????????-?!:*??,?!:?$W?$W*?U?W????'66????Y?d??:?+?Ķ.6	6

?1
?+?Ķ.	?
?+?`?1W?
?????:

???'
???`:*?+?Ķ???է?l???"???$?(?=?F?O?m?u?x??????????????????????????????3?9?X?j?m?p?s?????B? ?Bm`??5? 
X??????p? 	??? t??t??Z?^=7?^F.??O%????? ?*????t??F.??O%???U?(S??%%?? `?????'??4???-???|??[+,?2*?+??,??W?????? ?????B?	?????9??Y*??5?;??????G?`*?5?>+?B????
? ???BF?@?	????,?+?H=+?M?Q?SN-??VYX?Z?-?S?*?$+????6-?S?L?*?.-?\+?a``=6?*?.-?\?'`=*-?e?
-?i`=-?SN?????::AF[a s"{#?%?'?4???????? |??:R?F??Q@?&??gh?W*?R?
+?i????5??????@??
???/*?l??5?????,?o?s?d??454???}`????????????"`?}????	???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy