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

com.google.javascript.jscomp.ReplaceStrings.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!
????7K
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback()Vjava/util/LinkedHashMap
	
+com/google/javascript/jscomp/ReplaceStrings	functionsLjava/util/Map;	results	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
java/lang/StringisEmpty()Z`	 !"placeholderTokenLjava/lang/String;
$%&createNameGenerator5()Lcom/google/javascript/jscomp/DefaultNameGenerator;	()*
nameGenerator3Lcom/google/javascript/jscomp/DefaultNameGenerator;
,-.parseConfiguration(Ljava/util/List;)V01234
java/util/Mapvalues()Ljava/util/Collection;	678USED_RESULTS"Lcom/google/common/base/Predicate;
:;<=>#com/google/common/collect/IterablesfilterL(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Iterable;
@ABCD'com/google/common/collect/ImmutableListcopyOf?(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList;
FGHIJ&com/google/common/collect/ImmutableMapbuilder2()Lcom/google/common/collect/ImmutableMap$Builder;LMNOPjava/lang/Iterableiterator()Ljava/util/Iterator;RSTUjava/util/IteratorhasNextRWXYnext()Ljava/lang/Object;[2com/google/javascript/jscomp/ReplaceStrings$Result	Z]^"replacement	Z`a"original
cdefg.com/google/common/collect/ImmutableMap$BuilderputV(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;i(com/google/javascript/jscomp/VariableMap
cklmbuildOrThrow*()Lcom/google/common/collect/ImmutableMap;
hop(Ljava/util/Map;)V
rstuv*com/google/javascript/jscomp/NodeTraversaltraverse?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V	xyz{|-com/google/javascript/jscomp/ReplaceStrings$1,$SwitchMap$com$google$javascript$rhino$Token[I
~??? com/google/javascript/rhino/NodegetToken%()Lcom/google/javascript/rhino/Token;
?????!com/google/javascript/rhino/Tokenordinal()I
~???
getFirstChild$()Lcom/google/javascript/rhino/Node;
~???getOriginalQualifiedName()Ljava/lang/String;
~???getSourceFileName
???findMatchingZ(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/ReplaceStrings$Config;
???doSubstitutions?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/jscomp/ReplaceStrings$Config;Lcom/google/javascript/rhino/Node;)V0???get&(Ljava/lang/Object;)Ljava/lang/Object;?2com/google/javascript/jscomp/ReplaceStrings$Config
???replace(CC)Ljava/lang/String;	????excludedFilenameSuffixes(Lcom/google/common/collect/ImmutableSet;
???O?&com/google/common/collect/ImmutableSet2()Lcom/google/common/collect/UnmodifiableIterator;
???endsWith(Ljava/lang/String;)Z
~??isTaggedTemplateLit	???"STRING_REPLACEMENT_TAGGED_TEMPLATE-Lcom/google/javascript/jscomp/DiagnosticType;
?????$com/google/javascript/jscomp/JSErrormake?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
?????-com/google/javascript/jscomp/AbstractCompilerreport)(Lcom/google/javascript/jscomp/JSError;)V
~??isNew
~??isCall
?????$com/google/common/base/Preconditions
checkState(Z)V
???isReplaceAll	????
parametersLjava/util/List;?M?java/util/List?java/lang/Integer
????intValue
~???getChildAtIndex%(I)Lcom/google/javascript/rhino/Node;
???replaceExpressionr(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
~???getSecondChild
~???getNext
~???	getString
???getReplacement&(Ljava/lang/String;)Ljava/lang/String;
?????com/google/javascript/rhino/IRstring6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;?java/lang/StringBuilder
?
buildReplacement?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Ljava/lang/StringBuilder;)Lcom/google/javascript/rhino/Node;
??toString
	
equals(Ljava/lang/Object;)Z
~
	setString(Ljava/lang/String;)V
??checkNotNull
recordReplacement
~srcrefTreeIfMissingF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
~replaceWith%(Lcom/google/javascript/rhino/Node;)V
r reportCodeChange
"#$%?1com/google/javascript/jscomp/DefaultNameGeneratorgenerateNextName
Z'('(Ljava/lang/String;Ljava/lang/String;)V0*f+8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;	Z-./didReplacementZ
~12?getCookedString
?456append-(Ljava/lang/String;)Ljava/lang/StringBuilder;8java/lang/IllegalStateException:;<makeConcatWithConstants6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
7>
r@ABgetScope&()Lcom/google/javascript/jscomp/Scope;
DEFGH"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;J com/google/javascript/jscomp/Var
ILMisDeclaredOrInferredConst
IOPisConst
IRS?getInitialValue
?U5V3(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
?XYZaddh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
~\]?	cloneTree
_-`H(Ljava/lang/String;)Lcom/google/javascript/jscomp/ReplaceStrings$Config;	?bc"name
efgindexOf(I)Ii:!
kfl(Ljava/lang/String;)In.prototype.
pqrcontains(Ljava/lang/CharSequence;)Z	tu?BAD_REPLACEMENT_CONFIGURATIONw3Cannot replace strings passed to prototype methods.
?y?zh(Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
|}~	substring(II)Ljava/lang/String;?java/util/ArrayList

?????com/google/common/base/Splitteron$(C)Lcom/google/common/base/Splitter;
????splitToList*(Ljava/lang/CharSequence;)Ljava/util/List;?*????size
????valueOf(I)Ljava/lang/Integer;??Y????q?Unknown marker (%s)
????((ZLjava/lang/String;Ljava/lang/Object;)V?
????of*()Lcom/google/common/collect/ImmutableSet;
???length
?}?(I)Ljava/lang/String;?,
???split'(Ljava/lang/String;)[Ljava/lang/String;
??C?=([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
???M(Ljava/lang/String;Ljava/util/List;Lcom/google/common/collect/ImmutableSet;)V
"??&(Ljava/util/Set;Ljava/lang/String;[C)V?!JSC_BAD_REPLACEMENT_CONFIGURATION?(Bad replacement configuration "{0}": {1}
?????+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;?&JSC_STRING_REPLACEMENT_TAGGED_TEMPLATE?CCannot string-replace arguments of a template literal tag function.
????warning???apply$()Lcom/google/common/base/Predicate;?)com/google/javascript/jscomp/CompilerPassDEFAULT_PLACEHOLDER_TOKEN
ConstantValueEXCLUSION_PREFIXREPLACE_ONE_MARKERREPLACE_ALL_MARKER	SignatureWLjava/util/Map;WLjava/util/Map;XLcom/google/common/base/Predicate;T(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;Ljava/util/List;)VCodeLineNumberTableLocalVariableTablethis-Lcom/google/javascript/jscomp/ReplaceStrings;functionsToInspectLocalVariableTypeTable$Ljava/util/List;
StackMapTableMethodParametersh(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;Ljava/util/List;)V	getResult()Ljava/util/List;H()Ljava/util/List;getStringMap,()Lcom/google/javascript/jscomp/VariableMap;result4Lcom/google/javascript/jscomp/ReplaceStrings$Result;map0Lcom/google/common/collect/ImmutableMap$Builder;VLcom/google/common/collect/ImmutableMap$Builder;processG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vexterns"Lcom/google/javascript/rhino/Node;rootvisits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vconfig4Lcom/google/javascript/jscomp/ReplaceStrings$Config;calledFnt,Lcom/google/javascript/jscomp/NodeTraversal;nparentexcludedSuffixcallsiteSourceFileNameRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;arg	parameterI
firstParamreplacementString
keyBuilderLjava/lang/StringBuilder;keyNodeexprkeyleftrightchild
newKeyNode
newKeyBuilderinitialValuevar"Lcom/google/javascript/jscomp/Var;prefixfunction'(Ljava/util/List;)Vparamfirstlastcolonparams
paramCountreplacementParametersparts%Ljava/util/List;
namePrefix
reservedChars[Clambda$static$07(Lcom/google/javascript/jscomp/ReplaceStrings$Result;)Z
SourceFileReplaceStrings.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;1Unexpected TEMPLATELIT child: 3
45678"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;;
<#$$InnerClassesAbstractPostOrderCallbackBuilderResultC3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackConfigG%java/lang/invoke/MethodHandles$LookupIjava/lang/invoke/MethodHandlesLookup ?u????"??"?h!"?"???"????)*??78?????=*?*?Y?	?
*?Y?	?*+?*,???,?*?#?'*-?+??&	uACvw x0z7}<~?*=??==!"=???=???1?,??????
!??????=*??/?5?9??????????????H?EL*??/?5?9?KM,?Q?,?V?ZN+-?\-?_?bW???hY+?j?n????,?9?<?? ,
??H??D???D????cR?"???L
*?,*?q??
?	?? 
??
??
???	??????T?w,?}??.?H,??:??:? *,????:?*+,??????*
?$?*?1?6?B?G?O?P?S??HB??*)??1"c"T??T??T??T???$?+~??
???????\*?
+????N-?+$.??L*?
+????N-?0-????:?Q??V?:,???????-??*
????)?-?L?U?W?Z??4L?"\??\c"\?"N????)??R ??	c????e?-???*?-????????-?ƚ
-?ə???,?ҚB,?չ?:?Q?*?V?ܶ?6-??:?*+??W??ҧ%-??::?*+??:??:????>????0?7?[?c?h?p?v?|????????Rc
?[??|??????????????

@?R-??	~~??
????????:?w,?}??.?w555,??:*??:??N?G??Y??:???:*+,?N?:*???,?*??:??,??W?W*?-,?W,-?+?-??^??,?2?:?@?C?L?S?^?e?q?s?{??????	???
??z@^?:	"^'^?{
"L9S2	????????
??#^??"?#"?T?,?/r~~?~?r~?r~~?	?
????7*?+???ZM,?,?\?*?'?!N?ZY+-?&M*?+,?)W-??)5?*7??7")??^"??Z??z *?+???ZM,????,?,?? !#$?  ?? "???
?Z@??x@?w,?}??.??@?,??:??:*+-?N*+-??,??:?a?w?}??.?9	(?0?3W?#*+??-?N??7Y?9?=???:???-?,??3W-?+??,??C?I:?M?K??N?=?Q:?1???:	??Y??:
*+	
?:	?

?TW-?*??3W-*????WN-,?[?W??v3(5.657@8K:V;|=?>?@?A?C?:?F?H?I?L?M?N?O?P?QRSTU!\+]7^??
.?5
?Qc??'?	
^??3??O@??@??@
?@?@? ("?~*
?	?$I?9??
-.??;+??M,?Q?-,?V?N*-?^:?*?
?a?)W??б?de!f&g7i:j?*!??";??;???;????R/????-`?P+(?d=+)?d>+h?j6?????+m?o? *??s?Y+SYvS?x???+?{:+`?{:6?Y??:,????:		??:

?Q??
?V?:????+?	??????????W?A???)????????????W???????v?????̻?Y?	???+h??`???????????? uvwz)|3}H~K}N?P?X?b?e?n?z????????????????
??"?*?0?6?<?I?O??p?t"P??P"IB9X?c"b?"e?n??z??	?n?z??	???%@)?2??R?8@@??
@?
??""??
??""???
%&?Q?K?L?"Y???+???????? "!"
#$?/*?,??????%?I!?????s?Ƹȳ????5??0145?&'(xZ?)*029:=>:r?	cF@	ZABrD	x?E
FHJ




© 2015 - 2024 Weber Informatics LLC | Privacy Policy