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

com.google.javascript.jscomp.AliasStrings.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/TreeMap
	
)com/google/javascript/jscomp/AliasStrings
stringInfoMapLjava/util/SortedMap;java/util/LinkedHashSet
	usedHashedAliasesLjava/util/Set;java/util/LinkedHashMap
	chunkVarParentMapLjava/util/Map;	 !unitTestHashReductionMaskI	#$%compiler/Lcom/google/javascript/jscomp/AbstractCompiler;	'()
chunkGraph+Lcom/google/javascript/jscomp/JSChunkGraph;	+,-outputStringUsageZ	/01aliasStringsMode?Lcom/google/javascript/jscomp/CompilerOptions$AliasStringsMode;	345loggerLjava/util/logging/Logger;7Aliasing common strings
9:;<=java/util/logging/Loggerfine(Ljava/lang/String;)V
?@ABC*com/google/javascript/jscomp/NodeTraversaltraverse?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
EFreplaceStringsWithAliases
HIaddAliasDeclarationNodes
K,	MNOPQ+com/google/javascript/jscomp/AliasStrings$1,$SwitchMap$com$google$javascript$rhino$Token[I
STUVW com/google/javascript/rhino/NodegetToken%()Lcom/google/javascript/rhino/Token;
YZ[\]!com/google/javascript/rhino/Tokenordinal()I
_`abc5com/google/javascript/jscomp/ReplaceMessagesConstantsisProtectedMessage%(Lcom/google/javascript/rhino/Node;)Z
SefgisStringLit()Z
SijgisRegExp
Slmn	getString()Ljava/lang/String;p	undefined
rstuvjava/lang/Stringequals(Ljava/lang/Object;)Z	xyz{1=com/google/javascript/jscomp/CompilerOptions$AliasStringsModeLARGE
r}~]length
???getOrCreateStringInfoJ(Ljava/lang/String;)Lcom/google/javascript/jscomp/AliasStrings$StringInfo;	?????4com/google/javascript/jscomp/AliasStrings$StringInfooccurrencesLjava/util/ArrayList;
????vjava/util/ArrayListadd
????getChunk(()Lcom/google/javascript/jscomp/JSChunk;
???]size	????chunkToContainDecl&Lcom/google/javascript/jscomp/JSChunk;
?????)com/google/javascript/jscomp/JSChunkGraph#getDeepestCommonDependencyInclusivet(Lcom/google/javascript/jscomp/JSChunk;Lcom/google/javascript/jscomp/JSChunk;)Lcom/google/javascript/jscomp/JSChunk;
?????java/util/ObjectsrequireNonNull&(Ljava/lang/Object;)Ljava/lang/Object;???applyN(Lcom/google/javascript/jscomp/AbstractCompiler;)Ljava/util/function/Function;?????
java/util/MapcomputeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;	????parentForNewVarDecl"Lcom/google/javascript/rhino/Node;
S???
getFirstChild$()Lcom/google/javascript/rhino/Node;	????siblingToInsertVarDeclBefore?????java/util/SortedMapget??
???/(Lcom/google/javascript/jscomp/AliasStrings;I)V????put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;????entrySet()Ljava/util/Set;?????
java/util/Setiterator()Ljava/util/Iterator;????gjava/util/IteratorhasNext????next()Ljava/lang/Object;?java/util/Map$Entry????getKey????getValue
???shouldReplaceWithAliasK(Ljava/lang/String;Lcom/google/javascript/jscomp/AliasStrings$StringInfo;)Z
??
????getVariableName&(Ljava/lang/String;)Ljava/lang/String;
???replaceStringWithAliasNamem(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/jscomp/AliasStrings$StringInfo;)V	???-	isAliased
?????com/google/javascript/rhino/IRname6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
????string
????varh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
??(I)Ljava/lang/Object;
S
srcrefTreeF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
S	addChildToFront%(Lcom/google/javascript/rhino/Node;)V
S	insertBefore
	-com/google/javascript/jscomp/AbstractCompilerreportChangeToEnclosingScope
S	replaceWithjava/lang/StringBuilderStrings used more than once:

=
append(I)Ljava/lang/StringBuilder; : 
"#-(Ljava/lang/String;)Ljava/lang/StringBuilder;
%&(C)Ljava/lang/StringBuilder;
()ntoString
+,-.njava/lang/ClassgetName
9012	getLogger.(Ljava/lang/String;)Ljava/util/logging/Logger;4)com/google/javascript/jscomp/CompilerPass63com/google/javascript/jscomp/NodeTraversal$CallbackSTRING_ALIAS_PREFIXLjava/lang/String;
ConstantValue;$$S_	Signature_Ljava/util/SortedMap;#Ljava/util/Set;ALIAS_LARGE_STRINGS_LENGTHdYLjava/util/Map;?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/JSChunkGraph;ZLcom/google/javascript/jscomp/CompilerOptions$AliasStringsMode;)VCodeLineNumberTableLocalVariableTablethis+Lcom/google/javascript/jscomp/AliasStrings;MethodParametersprocessG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vexternsroot
StackMapTableshouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
nodeTraversal,Lcom/google/javascript/jscomp/NodeTraversal;nparentvisits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vstr
occurrenceinfo6Lcom/google/javascript/jscomp/AliasStrings$StringInfo;chunk	varParentt^$com/google/javascript/jscomp/JSChunknodeliteralentryLjava/util/Map$Entry;LocalVariableTypeTable_Ljava/util/Map$Entry;aliasfirstUse
sizeOfLiteralcount
sizeOfStringssizeOfVariable
sizeOfAliasesnameNodestringInfoEntrysbLjava/lang/StringBuilder;
SourceFileAliasStrings.javaNestMembersBootstrapMethodsv
wxyz{"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;?~
??getNodeForCodeInsertionJ(Lcom/google/javascript/jscomp/JSChunk;)Lcom/google/javascript/rhino/Node;?InnerClasses?,com/google/javascript/jscomp/CompilerOptionsAliasStringsModeCallback
StringInfoEntry?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup 3545789:$%(),-<=<>01?!9@<A !BC?@*?*?Y?	?
*?Y??*?Y??*?*+?"*,?&*?**?.?D*
[9;F%L*\/]4^9_?`E4@FG@$%@()@,-@01H$(,0IJC?%?26?8*?",*?>*?D*?G*?*?*?J?Ddgjmo p$rE %FG%K?%L?M$H	KLNOC?9?L,?R?X.?,?,?^????Dv(|*~7?E*9FG9PQ9R?9S?M(
@H
PRSTUC?	?,?d??-?h??,?k:o?q??*?.?w??|d??,:*?:????W+??:?????.?(??? ???*?&????:??*?*?"Y??W?????S:?????????DR?????+?3?4?7???J?P?\?s?????????????E\	?V87?W??~XYPmZ??[??FG?\Q?R??S?M)?r?QS?]?5?SSH
\RS??C?2*?
+????M,?!??Y**?
????M*?
+,??W,?D???$?0?E 2FG2?8$XYM?0?H?FC0u*?
????L+???_+????M,???rN,????:-??4????:??? ???S:*-?????ܧ???D&	?"?,?7?@?`?n?q?t?E4`_?,E`87:XY"OabuFGc"OadM1???:??r???&??ICi?*?
????L+????+????M,????N-?????-,???r??:??,???r????:-?????S:?W-???-????-???
*?"?
??z?D:?"?,?3?6?E?[?h?p?w?????????E>,iXYEPe8[:??h-f?"sab?FGc"sadM(???&???LrSS?
??C?2*?|`=+????>h66``h`6???D?????%?EH2V82XY+g!#h!i!j!%
k!M?0r?@H	VX??C},??:+?-??*?"?
?D?E4FGR??8XYl?H
R?X,C!z?Y?L*?
????M,???O,????N-????:????6?'+?W+?!W+-???r?!W+
?$W????2+?'?8?D2-	8
BHO
WeloyE484XYB*h!-?mbzFGonoc-?mdM???Q?pC$?*?/?2?D.qrsM?tu|}??2x??@5??	M?????	???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy