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

com.google.javascript.jscomp.ReplaceMessages.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()V		
,com/google/javascript/jscomp/ReplaceMessagescompiler/Lcom/google/javascript/jscomp/AbstractCompiler;
-com/google/javascript/jscomp/AbstractCompilercreateAstFactory+()Lcom/google/javascript/jscomp/AstFactory;	
astFactory)Lcom/google/javascript/jscomp/AstFactory;	bundle,Lcom/google/javascript/jscomp/MessageBundle;	strictReplacementZ >com/google/javascript/jscomp/ReplaceMessages$MsgProtectionPass
"#1(Lcom/google/javascript/jscomp/ReplaceMessages;)V%.com/google/javascript/jscomp/ReplaceMessages$1
$'(c(Lcom/google/javascript/jscomp/ReplaceMessages;Lcom/google/javascript/jscomp/JsMessageDefinition;)V*Fcom/google/javascript/jscomp/ReplaceMessages$QuotedKeyObjectLitBuilder
)"-key
/0123&com/google/javascript/jscomp/JsMessagegetKey()Ljava/lang/String;
)567	addStringn(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/ReplaceMessages$QuotedKeyObjectLitBuilder;
/9:3getAlternateId<alt_id
/>?3
getMeaningAmeaningCDEFG7com/google/javascript/jscomp/ReplaceMessages$MsgOptions
isIcuTemplate()ZImsg_text
/KL3asIcuMessageStringFO
/QR3asJsMessageStringCTUGescapeLessThanUCXYGunescapeHtmlEntitiesY
)\]^build$()Lcom/google/javascript/rhino/Node;`Fcom/google/javascript/jscomp/ReplaceMessages$ReplacementCompletionPass
_"
cdefg-com/google/javascript/jscomp/JsMessageVisitorextractObjectLiteralMapd(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/JsMessageVisitor$ObjectLiteralMap;ijklm>com/google/javascript/jscomp/JsMessageVisitor$ObjectLiteralMapextractAsValueMap*()Lcom/google/common/collect/ImmutableMap;o@com/google/javascript/jscomp/JsMessageVisitor$MalformedExceptionqjava/lang/IllegalStateException
pst(Ljava/lang/Throwable;)V
/vw3getIdyz{|}*com/google/javascript/jscomp/MessageBundle
getMessage<(Ljava/lang/String;)Lcom/google/javascript/jscomp/JsMessage;
/??jsPlaceholderNames*()Lcom/google/common/collect/ImmutableSet;
?????java/util/Objectsequals'(Ljava/lang/Object;Ljava/lang/Object;)Z
????G&com/google/common/collect/ImmutableSetisEmpty
???isStartOfIcuMessage(Ljava/lang/String;)Z	???&INVALID_ALTERNATE_MESSAGE_PLACEHOLDERS-Lcom/google/javascript/jscomp/DiagnosticType;?java/lang/String
????valueOf&(Ljava/lang/Object;)Ljava/lang/String;
?????$com/google/javascript/jscomp/JSErrormake?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
???report)(Lcom/google/javascript/jscomp/JSError;)V?@com/google/javascript/jscomp/ReplaceMessages$FullReplacementPass
?"???
java/util/Map
???createNodeForMsgStringo(Lcom/google/javascript/jscomp/ReplaceMessages$MsgOptions;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;?TThe translated message has placeholders, but the definition in the JS code does not.
n??7(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V
/???getParts+()Lcom/google/common/collect/ImmutableList;
???mergeStringParts"(Ljava/util/List;)Ljava/util/List;???java/util/List
?????'com/google/javascript/jscomp/AstFactorycreateString6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;????iterator()Ljava/util/Iterator;????Gjava/util/IteratorhasNext????next()Ljava/lang/Object;?+com/google/javascript/jscomp/JsMessage$Part???G
isPlaceholder???3getJsPlaceholderName????get&(Ljava/lang/Object;)Ljava/lang/Object;? com/google/javascript/rhino/Node???makeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;
???^	cloneTree???3	getString
????	createAddh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;?<?<
????replaceD(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;?>?>?'?'?""&&java/util/ArrayList
?
add(Ljava/lang/Object;)Z
#com/google/common/collect/IterablesgetLast((Ljava/lang/Iterable;)Ljava/lang/Object;?size()I?8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
1com/google/javascript/jscomp/JsMessage$StringPartcreateG(Ljava/lang/String;)Lcom/google/javascript/jscomp/JsMessage$StringPart;?!"#set'(ILjava/lang/Object;)Ljava/lang/Object;%{
?'(?
startsWith
?*+,indexOf(II)I.plural,
?0(1(Ljava/lang/String;I)Z3select,5$JSC_BUNDLE_DOES_NOT_HAVE_THE_MESSAGE7>Message with id = {0} could not be found in replacement bundle
9:;<=+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;	?@? BUNDLE_DOES_NOT_HAVE_THE_MESSAGEB*JSC_INVALID_ALTERNATE_MESSAGE_PLACEHOLDERSDPAlternate message ID={0} placeholders ({1}) differs from {2} placeholders ({3}).F.com/google/javascript/jscomp/ReplaceMessages$2
E	IJKICU_MSG_OPTIONS9Lcom/google/javascript/jscomp/ReplaceMessages$MsgOptions;_(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/MessageBundle;Z)VCodeLineNumberTableLocalVariableTablethis.Lcom/google/javascript/jscomp/ReplaceMessages;MethodParametersgetMsgProtectionPass-()Lcom/google/javascript/jscomp/CompilerPass;getMsgOptionsFromDefinitionm(Lcom/google/javascript/jscomp/JsMessageDefinition;)Lcom/google/javascript/jscomp/ReplaceMessages$MsgOptions;
definition2Lcom/google/javascript/jscomp/JsMessageDefinition;createMsgPropertiesNode?(Lcom/google/javascript/jscomp/JsMessage;Lcom/google/javascript/jscomp/ReplaceMessages$MsgOptions;)Lcom/google/javascript/rhino/Node;message(Lcom/google/javascript/jscomp/JsMessage;
msgOptionsmsgPropsBuilderHLcom/google/javascript/jscomp/ReplaceMessages$QuotedKeyObjectLitBuilder;altIdLjava/lang/String;
StackMapTablegetReplacementCompletionPass"extractPlaceholderValuesMapOrThrowL(Lcom/google/javascript/rhino/Node;)Lcom/google/common/collect/ImmutableMap;eBLcom/google/javascript/jscomp/JsMessageVisitor$MalformedException;valuesObjLit"Lcom/google/javascript/rhino/Node;	Signature?(Lcom/google/javascript/rhino/Node;)Lcom/google/common/collect/ImmutableMap;
lookupMessage?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/MessageBundle;Lcom/google/javascript/jscomp/JsMessage;)Lcom/google/javascript/jscomp/JsMessage;jsCodePlaceholderNames(Lcom/google/common/collect/ImmutableSet;alternateMsgPlaceholderNamescallNodetranslatedMessagealternateIdalternateMessageLocalVariableTypeTable;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;getFullReplacementPassconstructStringExprNode?(Lcom/google/javascript/jscomp/JsMessage;Ljava/util/Map;Lcom/google/javascript/jscomp/ReplaceMessages$MsgOptions;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;icuMsgStringjsPlaceholderName	valueNodepartNodemsgPart-Lcom/google/javascript/jscomp/JsMessage$Part;
resultNodemsgToUseplaceholderMapLjava/util/Map;options
nodeToReplacemsgPartsLjava/util/List;ELjava/util/Map;?Ljava/util/List;
Exceptions?(Lcom/google/javascript/jscomp/JsMessage;Ljava/util/Map;Lcom/google/javascript/jscomp/ReplaceMessages$MsgOptions;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;slastPartpartpartsresult?(Ljava/util/List;)Ljava/util/List;
commaIndexInextBracketIndex
SourceFileReplaceMessages.javaRuntimeInvisibleAnnotations/Lcom/google/common/annotations/GwtIncompatible;value	JsMessageNestMembers??com/google/javascript/jscomp/ReplaceMessages$ProtectedJsMessage?Acom/google/javascript/jscomp/ReplaceMessages$ProtectedJsMessage$1?Bcom/google/javascript/jscomp/ReplaceMessages$FullReplacementPass$2?Bcom/google/javascript/jscomp/ReplaceMessages$FullReplacementPass$1?Ccom/google/javascript/jscomp/ReplaceMessages$FullReplacementMsgData?Acom/google/javascript/jscomp/ReplaceMessages$ProtectedMsgFallback?Hcom/google/javascript/jscomp/ReplaceMessages$ReplacementCompletionPass$1?@com/google/javascript/jscomp/ReplaceMessages$MsgProtectionPass$2?@com/google/javascript/jscomp/ReplaceMessages$MsgProtectionPass$1?>com/google/javascript/jscomp/ReplaceMessages$MsgProtectionDataBootstrapMethods?
?????$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;?.Unrecognized message placeholder referenced: ?InnerClassesMsgProtectionPassQuotedKeyObjectLitBuilder
MsgOptionsReplacementCompletionPassObjectLiteralMapMalformedExceptionFullReplacementPassPart
StringPartProtectedJsMessageFullReplacementMsgDataProtectedMsgFallbackMsgProtectionData?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup1@???JK
LMx*?*+?*+?
?*,?*??NCD	EFGHO*PQR
STM3	?Y*?!?NQO	PQUVM>
?$Y*+?&?NO
PQ
WXRWYZMG??)Y*?+N-,+?.?4W+?8:?-;?4W+?=:?-@?4W,?B?-H+?J?4W-MN?4W?-H+?P?4W,?S?-VN?4W,?W?-ZN?4W-?[?NF	(.3<E P"\$g&p(y*?,?.O>?PQ?[\?]K	?^_v`a.bAab?()???
R	[]cTM3	?_Y*?a?NMO	PQdeMd*?b?h?L?pY+?r?	
nN?
??O	fghibJnRhjklmM?	?,-?u?x:??-?8:??,?x:?_-?~:?~:???H???-?J????*?+????YSY??SY-?.SY??S??????NZ??????!?+?0?6?8?=?G?Y?\?q?x???????????O\	6Vno=Opo?PQ?qi??[\?r\usa+dt\u6Vnv=Opvb?/???:/???/R
q[wxyTM3	??Y*???NO	PQz{Mv?,???L-?B?
*-+?J???+?~???
*-+?P???+?J:???*-????nY????+????:???
*?N???:??:???w????:???9??:
,
????:??nY
???????:	?*-????:	?	?*?	??:????Nf?	???&?0?6?>?F?R?[?e?o?r???????????????????????O?
6|a?*}a
?~i?i	?i	?e??r??i?PQ??\?????K??i[???u???[???bV?????????K/?C????????	?
?	J???nR????j???M?L+?S?,???M+?W?+,????????????????M*?,???N*
?	??? ?'?.?6???C?O LPQL?KL?ab0R	??
??M@??Y?L*??M,???x,????N-???+-?	W?W+????
+?
??:?
???+-?	W?'++?d??-????? W???+?N*
"+6!L"[#f%?(?)O*L>??"h????????u??????b#????&?F???
?#?R?j???M?M*$?&??*,?)<??*{?)=??!*-`?/?*2`?/???N*
?
?????#?4?A?L?O M?a9??#*??b??@R??MK#46?8?>AC?8???EY?G?H?N459:?????s??$??C?????_?)???E$????????$)?C?_?ic?	nc????/?	/?	E??	????
???????????




© 2015 - 2024 Weber Informatics LLC | Privacy Policy