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

com.google.javascript.jscomp.StripCode$Strip.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/StripCode$Stripthis$0(Lcom/google/javascript/jscomp/StripCode;
	
java/lang/Object()V	decisionsLog1Lcom/google/javascript/jscomp/diagnostic/LogFile;	(com/google/javascript/jscomp/StripCode$1,$SwitchMap$com$google$javascript$rhino$Token[I
 com/google/javascript/rhino/NodegetToken%()Lcom/google/javascript/rhino/Token;
 !"!com/google/javascript/rhino/Tokenordinal()I
$%&%isMethodOrCtorCallThatTriggersRemovals(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z()*get()Ljava/util/function/Supplier;
,-./0/com/google/javascript/jscomp/diagnostic/LogFilelogP(Ljava/util/function/Supplier;)Lcom/google/javascript/jscomp/diagnostic/LogFile;
234 replaceHighestNestedCallWithNulls(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
674#removeVarDeclarationsByNameOrRvalue
9:4%maybeRemoveReferenceToRemovedVariable
<=4$maybeEliminateAssignmentByLvalueName
?@A%eliminateKeysWithStripNamesFromObjLitQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
CDEmaybeEliminateExpressionByName%(Lcom/google/javascript/rhino/Node;)V
GH4"maybeEliminateClassByNameOrExtends
JKL
getFirstChild$()Lcom/google/javascript/rhino/Node;
NOLgetNext
QRSisDestructuringLhs()Z
UVSisName
XYZ[\$com/google/common/base/Preconditions
checkState(ZLjava/lang/Object;)V
^_`	getString()Ljava/lang/String;
bcdefjava/lang/StringlastIndexOf(I)I
bhij	substring(I)Ljava/lang/String;
lmnisStripName(Ljava/lang/String;)Z
pqr qualifiedNameBeginsWithStripType%(Lcom/google/javascript/rhino/Node;)Z
tur&isCallWhoseReturnValueShouldBeStripped	wxyz{&com/google/javascript/jscomp/StripCodevarsToRemove9Lcom/google/javascript/jscomp/base/LinkedIdentityHashMap;
}~??7com/google/javascript/jscomp/base/LinkedIdentityHashMapput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?$
b???contains(Ljava/lang/CharSequence;)Z?)?C(Ljava/lang/String;Ljava/lang/String;)Ljava/util/function/Supplier;
??ShasChildren
??LgetOnlyChild
??EreplaceWithNull
????Lcom/google/javascript/rhino/IRnullNode
???srcrefF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
??EaddChildToFront
????*com/google/javascript/jscomp/NodeTraversalreportCodeChange?)?1(Ljava/lang/String;)Ljava/util/function/Supplier;
??Ldetach	w???compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
?????%com/google/javascript/jscomp/NodeUtilmarkFunctionsDeletedT(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;)V
???replaceWithEmptyG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
???isReferenceToRemovedVarQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Z?)?A(Lcom/google/javascript/rhino/Node;)Ljava/util/function/Supplier;
??L	getParent?
??SisExprResult
??EreplaceWith?
??risFirstChildOf?
??LgetLastChild
??SisCall
??SisNew??
??SisAssign
???risNormalGet
??rnameIncludesFieldNameToStrip	?
????E-com/google/javascript/jscomp/AbstractCompilerreportChangeToEnclosingScope	w???STRIP_ASSIGNMENT_ERROR-Lcom/google/javascript/jscomp/DiagnosticType;
??`getQualifiedName
????reporte(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V
X??\
checkArgument
?
????getNameNode
??SisQualifiedName
?qn?
?risStatementParent
LgetSecondChild	w
?STRIP_TYPE_INHERIT_ERROR
?
?#getCallTargetResolvingIndirectCalls	wstripTypesList[Ljava/lang/String;
bequals(Ljava/lang/Object;)Zequals strip type
logStripName'(Ljava/lang/String;Ljava/lang/String;)V	wstripTypePrefixesList
b!"n
startsWith$starts with strip type prefix& does not begin with a strip type
()logNotAStripName
}+),&(Ljava/lang/Object;)Ljava/lang/Object;
?./risNameDeclaration
12?actsOnStripType
45S	isGetProp
b78findexOf:\$
b<=>split'(Ljava/lang/String;)[Ljava/lang/String;
?@ABgetCodingConvention1()Lcom/google/javascript/jscomp/CodingConvention;DEFGH-com/google/javascript/jscomp/CodingConventiongetClassesDefinedByCallh(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/CodingConvention$SubclassRelationship;	JKLMNBcom/google/javascript/jscomp/CodingConvention$SubclassRelationshipsubclassNameLjava/lang/String;Pclass defining call	JRSNsuperclassName	wUVWstripNameSuffixes(Lcom/google/common/collect/ImmutableSet;
YZ[?&com/google/common/collect/ImmutableSet]matches a suffix	w_`WstripNamePrefixesbmatches a prefix
bdeSisEmpty
bghicharAt(I)C
klmnojava/lang/CharacterisUpperCase(C)Zqempty or starts with uppercase	stuvwjava/util/LocaleROOTLjava/util/Locale;
byz{toLowerCase&(Ljava/util/Locale;)Ljava/lang/String;	w}~stripNamePrefixesLowerCaseList?
??2(Ljava/lang/String;Ljava/util/function/Supplier;)V	w??stripNameSuffixesLowerCaseList
b??nendsWith
??
no matches
,??S	isLogging???)?N(Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/function/Supplier;??
????removeChild
??`getLocation???makeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;????)?java/util/function/Supplier()Ljava/lang/Object;???8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;?????????? ?!?"?#??removing function call?3com/google/javascript/jscomp/NodeTraversal$Callback\(Lcom/google/javascript/jscomp/StripCode;Lcom/google/javascript/jscomp/diagnostic/LogFile;)VCodeLineNumberTableLocalVariableTablethis.Lcom/google/javascript/jscomp/StripCode$Strip;MethodParametersshouldTraverset,Lcom/google/javascript/jscomp/NodeTraversal;n"Lcom/google/javascript/rhino/Node;parent
StackMapTablevisitnamelastDollarSignIpossibleStripNamenameNodenextgreatGrandparentrvaluegrandparentisLastChildZparentIsCalleeisSafeToRemovenodeancestor
ancestorChildancestorParentlvalue
expressionkey	className	classNodesuperclassNodefunctionRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;typecalleepart
nameStringcallNodeclassesDLcom/google/javascript/jscomp/CodingConvention$SubclassRelationship;	stripNamelcNamereasonreasonSupplierLjava/util/function/Supplier;LocalVariableTypeTable1Ljava/util/function/Supplier;	SignatureF(Ljava/lang/String;Ljava/util/function/Supplier;)Vlambda$replaceWithEmpty$186(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;lambda$replaceWithNull$17lambda$logStripName$16C(Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/lang/String;lambda$logStripName$15lambda$logNotAStripName$14lambda$isStripName$13lambda$isStripName$12,lambda$maybeEliminateClassByNameOrExtends$11(lambda$maybeEliminateExpressionByName$10-lambda$maybeEliminateAssignmentByLvalueName$9.lambda$maybeRemoveReferenceToRemovedVariable$8.lambda$maybeRemoveReferenceToRemovedVariable$7.lambda$maybeRemoveReferenceToRemovedVariable$6.lambda$maybeRemoveReferenceToRemovedVariable$5.lambda$maybeRemoveReferenceToRemovedVariable$4.lambda$maybeRemoveReferenceToRemovedVariable$3,lambda$removeVarDeclarationsByNameOrRvalue$2,lambda$removeVarDeclarationsByNameOrRvalue$1lambda$shouldTraverse$0
SourceFileStripCode.javaNestHostBootstrapMethods
"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;?
	``
?
?!
"?$
%?'
(?*
+?-
.?0
1?3
4?6
7??9
:??<
=???
@??B
C??E
F??H
I??K
L??N
O??Q
RST?U$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;Wreplace with empty: Yreplace with null: [	strip name: ]	not a strip name: _matches lc suffix: amatches lc prefix: c: removing classe*: removing property declaration statementg : removing assignment statementi : replacing reference with nullk.: replacing reference in comma expr with nullm*: replacing parameter reference with nullo$: replacing rhs reference with nullq&: removing assignment to stripped vars&: removing getelem/getprop/call chainu: removing declarationw: initialize with null ()InnerClassesStripSubclassRelationshipCallback}%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup ?*??K*+?*?*,?
???	??????	?&??H?,??.?;*+,-?#?*?
?'?+W*+,-?1?????$?.?;?B?D?F??*H??H??H??H???$?
????4?+??,??.??YYYcmmmmmmmmmmmmw??*+,-?5?2*+,-?8?(*+,-?;?*+,?>?*,?B?
*+,-?F???:?d?k?n?u?x??????????????*??????????????d				?
???74?		?:,?I:???M:?P????T?W?]:$?a6?`?g?:*?k?*?o?*?I?s?v*??v?|W????<*?
???+W???*???????????+???$*?
???+W??W*?????:??$,???
*,-??+????n *1:P\ e!n#}$?3?4?5?:?<?@?A?B??F?H?I?K?\	1??N:???P??N	???????????????????'?	?+bAb?b=? ??
???:4?4ײ-??.??mmm????????????????pp=?^-?I,?V*+,???M*?
,???+W*+--???1?2*+,???)-?I,?N-??:*?
,???+W?ę??:*??+???,?M:??W-??+????*?
,???+W*,??+????,-?˚?*+,????*?
,???+W*,??+????-??:-??,??6?Қ?ՙ-?˙?6???6?F*+,???=*?
,???+W*,??+???#*+,???*?
,???+W*,??+?????(UxZ{d?e?f?v?w?x?y?{?}?~????????????????.?<?A?H?N?]?_?}????????????????????p???????B??Nh??]Y??}9???(???????????????-?x+?B?*?@?@?@?)?
???34?Lz-:,:??:???I?*???R?ę*?????ڙ?϶??ǧ'?ݚ?Қ*???::???+????V???
????#?&?.?6?9?A?N?Q?a?g?j?n?u?y??Hz??z??z??z??w??t??
m?????
?
???=4??d,?I:*???*?o?N-?ę3*?
???+W-??:?*-??*?????+,???bY??S???.????.?4?9?@?L?Oc?>4??d??d??d??d??^????3?
???DE??G+??+??+??M,??+?IN*-???*-?o?"*?
-???+W*+,??*???,???.
!'5!;"F$?*G??G??
:??0???????@A??o,?IN-?h?-??.?R    *-?]?k?*-?M:-??W-*?????N*???,????-?MN?????223	449?:E;J<U=X>c?fCnF?4E!??o??o??o??j????.1?	??H4?f?,??:?D???<??:*???1*?
??+W-??*,-???*,??+???:,?:?1???)??:*???+,?	?bYSYS???FMPQR#S2T9UBWGYKZL]QaWbdckdte?h?\	2?NkSN???????????????Q:?NW4????Bb??b?8?
???ur??6+?+?Қ
+?ՙ
+????+?M*,?o?*,??????vwz {? 6??6?? ????@???	?qr?M+??M*,????
??? ?????N??qn?t+?i*??M,?>6?",2:+??
*+??????*??M,?>6?",2:+? ?
*+#??????*+%?'??6
???'?/?1?7?Q?Z?b?d?j?r??*?NQ?Nt??t?N?????
???????`*??v,?]?*?????? ???????@?	??%&?4|,?:?????-?-?T?-??:?
?-???T?*?]?k???I:*???*???*?o?*+,?0????>???? ?&?3?5?I?K?R?^?g?p?{??H&??|??|??|??|??v??R*?????*@?
????r?p+??+?3?*+?]?k?*+?I?????+?T?A+?]M,$?6?0,9?;N-?66?-2:*?k?????????6
???
?)?0?5???[?d?f?l?n??*[?N59?Np??p???$	@?$b??????	?2???T*?????,?CN-?@*-?I???*-?IO??*-?Q???+,?	?bY-?ISY-?QS????&	
 +-8R?*T??T??T??C???	?-J$?	??mn???*??T+?X?
*+\??*??^+?X?
*+a??+?c?+?f?j?
*+p?'?+?r?xM*??|N-?66?&-2:,? ?*+????????*???N-?66?&-2:,???*+?????????*+??'??Z"#$'&(.)0,B-J.L1T2p3y4?5?2?9?:?;?<?9?@?A?4p?N??N?????NT|?N?+
	?bb?#???#???)?i*?
???*?
+,???+W??E
FH? ???N?N??	???i*?
???*?
+,???+W??K
LN? ???N?N??	????{*?
???*?
+,???+W??Q
RT? ???N???????	?????E?a!*?
+???+W+????+*???????\]^ _?!??!???????i*?
+???+W,+??+*???????ghij? ???????	??
???4
*??????g?
??
???4
*??????\?
??
???D*+???b????R??N??
???<*+????L??N?N
???<*+????F??N?N
???1*????;??N
???1*????4??N
???1*????S??N
???4
*?]???? ?
??
??4
*?]??????
??
??4
*????????
??
??4
*????????
??
??4
*????????
??
??4
*????????
??
??4
*??????z?
??
??4
*?]????e?
??
??1*????@??N
??<*+????3??N?N
	`?????
w
&$ #&),/258;>ADGJMPVPXPZP\P^P`PbPdPfPhPjPlPnPpPrPtPvx*wyJDz	??{	|~?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy