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

com.google.javascript.jscomp.PeepholeMinimizeConditions.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!
????7V
9com/google/javascript/jscomp/AbstractPeepholeOptimization()V		
7com/google/javascript/jscomp/PeepholeMinimizeConditionslateZ	9com/google/javascript/jscomp/PeepholeMinimizeConditions$1,$SwitchMap$com$google$javascript$rhino$Token[I
 com/google/javascript/rhino/NodegetToken%()Lcom/google/javascript/rhino/Token;
!com/google/javascript/rhino/Tokenordinal()I
 !"tryRemoveRedundantExitF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
$%"tryReplaceExitWithBreak
'()
getFirstChild$()Lcom/google/javascript/rhino/Node;
+,"tryMinimizeCondition
./"tryMinimizeNot
12"performConditionSubstitutions
45"
tryMinimizeIf
78"tryMinimizeExprResult
:;"tryMinimizeHook
=>?@"%com/google/javascript/jscomp/NodeUtilgetConditionExpression
BCDtryJoinForCondition%(Lcom/google/javascript/rhino/Node;)V
FG"tryReplaceIf
IJ)getLastChild
LMNisIf()Z
PQ)getSecondChild
STNisBreak
VWNhasChildren
YZ[hasXChildren(I)Z
]^)detach
`aDreplaceWith
=cdDredeclareVarsInsideBranch
fg)removeFirstChild
ijkl"com/google/javascript/rhino/IRnot
no"srcref
qrNisEmpty
tuDreportChangeToEnclosingScope	wxyAND#Lcom/google/javascript/rhino/Token;
{|&(Lcom/google/javascript/rhino/Token;)V
~DaddChildToBack
??)getNext
???
isReturnBlock%(Lcom/google/javascript/rhino/Node;)Z
???areNodesEqualForInliningG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
??detachChildren	??yOR
??H(Lcom/google/javascript/rhino/Token;Lcom/google/javascript/rhino/Node;)V
???isReturnExpression
???isReturnExpressBlock
??"getBlockReturnExpression
=??"newUndefinedNode
i???hook?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
i??"
returnNode
???statementMustExitParent
??DinsertAfter
?????0com/google/javascript/jscomp/ControlFlowAnalysis
isBreakTarget7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Z
??N
isFunction
??NisScript
??)	getParent
???"computeFollowNode
??"skipFinallyNodes
???isPure
??NisThrow
???areMatchingExits
i??)	breakNode
=???canBeSideEffected
???mayHaveSideEffects
=???isTryFinallyNode
??NisASTNormalized
??NisReturn
???isEquivalentTo
???isExceptionPossible
??"getExceptionHandler
?????$com/google/common/base/Preconditions
checkState(ZLjava/lang/Object;)V
=???isLiteralValue&(Lcom/google/javascript/rhino/Node;Z)Z
??
??NisNot
????
checkArgument(Z)V	??yNE	??yEQ	?ySHNE	ySHEQ
|setToken
	
/com/google/javascript/jscomp/MinimizedConditionfromConditionNodeU(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/MinimizedCondition;	Acom/google/javascript/jscomp/MinimizedCondition$MinimizationStyleALLOW_LEADING_NOTCLcom/google/javascript/jscomp/MinimizedCondition$MinimizationStyle;
getMinimized?(Lcom/google/javascript/jscomp/MinimizedCondition$MinimizationStyle;)Lcom/google/javascript/jscomp/MinimizedCondition$MeasuredNode;
??isLowerPrecedence&(Lcom/google/javascript/rhino/Node;I)Z
iAB1and
=DE?isStatementBlock
GHNhasOneChild
JKDtryRemoveRepeatedStatements
MN?consumesDanglingElse
=PQ?isAssignmentOp
ST?mayEffectMutableState
VWNisAssign
YZNisName
\]j(Lcom/google/javascript/rhino/Token;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
i_`"
exprResult
bc?
isVarBlock
ef"getBlockVar
hij	getString()Ljava/lang/String;
lmnopjava/lang/Stringequals(Ljava/lang/Object;)Z
?r??
?tuvcheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;
xyNisBlock
{|NisExprResult
~NisCall
??NisOptChainCall
??)getFirstFirstChild
??N	isGetElem
??NisOptChainGetElem
??N	isGetProp
??NisOptChainGetProp?on
l???
startsWith(Ljava/lang/String;)Z
??NisVar
??
getChildCount
=???
precedence&(Lcom/google/javascript/rhino/Token;)I???apply$()Lcom/google/common/base/Predicate;	=???MATCH_NOT_FUNCTION"Lcom/google/common/base/Predicate;
=???hasi(Lcom/google/javascript/rhino/Node;Lcom/google/common/base/Predicate;Lcom/google/common/base/Predicate;)Z
???
willChange
??"applyTo
???getSideEffectFreeBooleanValueK(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/base/Tri;	?????%com/google/javascript/jscomp/base/TriUNKNOWN'Lcom/google/javascript/jscomp/base/Tri;
????	toBoolean(Z)Z
i??1comma	????TRUE	????FALSE
???maybeReplaceChildWithNumberG(Lcom/google/javascript/rhino/Node;I)Lcom/google/javascript/rhino/Node;
i???number%(D)Lcom/google/javascript/rhino/Node;
??DmarkFunctionsDeletedCodeLineNumberTableLocalVariableTablethis9Lcom/google/javascript/jscomp/PeepholeMinimizeConditions;MethodParametersoptimizeSubtreeresult"Lcom/google/javascript/rhino/Node;node
StackMapTablereplacementifConditionfixedIfConditionforCondition	thenBlock
maybeBreaknblockmaybeIfnewCondnextCondnextThennextElsethenExprelseExprcond
thenBranch
elseBranchnextNodechildnextbreakTargetfollowprefinallyFollowsexitExprRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;nodeThisnodeThatcomplementOperatorparentnotChildnewOperatororiginalExprminCond1Lcom/google/javascript/jscomp/MinimizedCondition;mNode>Lcom/google/javascript/jscomp/MinimizedCondition$MeasuredNode;originalCondreplacementCondexpr	innerCondinnerThenBranchinnerElseBranchinnerIf
assignNamehookNodeassignlhsthenOpelseOpvar
elseAssignname1
maybeName2
thenAssign
maybeName1name2
unnegatedCond	shortCondthenBranchIsExpressionBlockelseBranchIsExpressionBlockthenBranchIsVarelseBranchIsVarlastTrue	lastFalse
trueBranchfalseBranchcalledFn	maybeExprfirst)isPropertyAssignmentInExpressionPredicateLocalVariableTypeTableFLcom/google/common/base/Predicate;originalmeasuredNodeReplacementtypervalleftrightrightVal	conditiontrueNode	falseNodetrueNodeValfalseNodeValequivalentResultnValnumnewNode)lambda$isPropertyAssignmentInExpression$0input
SourceFilePeepholeMinimizeConditions.javaNestMembersBootstrapMethodsC
DEFGH"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;pK
L;??InnerClassesMinimizationStyleMeasuredNodeR%java/lang/invoke/MethodHandles$LookupTjava/lang/invoke/MethodHandlesLookup 78"??F
*?*???56	7?
??
??"?W??
+??.??
55HWfu????*+?M,+?,?*+?#?*+?&?*W*+?-?*+?&?0W*+?3?*+?&?0W*+?6?*+?&?0W*+?9?*+?))
+>?*?U?
*?HL+???????4?6?=?B?G?I??B??K???4??%"?S?+?&M+N-???-???
-???+?-??N???-??::??:?
*,?š+??+?Ś,?+??
*+?ș??:+?_*?s?+??R
'-18?G I$Y&[+j,o-u.{/~2?Ho????????{??y??-S??1O???	??!??!"??N+?&M+??N-:-??N-?
*,?š+?-?+?Ś,?+?-?*+-?ș*+?s+?\W?+??:>@
D
EFH J"N1P3U@VEWJXL[?4N??N??I??
D??
A????"???????e+?+?Κ*+?њ???cd
ec??????@???"?U*?*??*?ԙ*??K???*??lmo??????????>*?ך+?Ś
+?ڙ+?U??+,?ݙ+???+??,?????"yz{~?'?.?=?? >??>??>???@?	??????6*?ښ
*?ř?*??*?Ś*?U?*?H????????&?5??6???
@@???"?/*?????????/"?\y+???+??M+?&N?
-??.?@ (08??:???:???:?
?:?+?+?e:?+?_*,?s??J????<?A?D?I?L?Q?T?Y?\?^?d?k?q?v??f
A?yI?yQ?yY?yy??y??m??h?^?yd???<???8"??3+?&M,?N-?
?:??*,??W?*,?W+??"??
????)?1??43??3??.?
) ??)??;"??J+?&M,?N-?
?:??(+?O:*,??W?\W+?}*+?s?*,?W+??6
??
????!?,?2?8?=?@?H??>!??J??J??E?
@7??@??5"?
?+??M+?&N-??+?-??:??:-?:?"?:?
?:?F?%???(:	*??	?+?
*-?W+???7*-???\:

	?e?.+?m:?2:+?_*,?s??5?9?	?&?5?\A_?cBf>iCrDwGyL?M?S?W?X?Y?Z?[?\?`?a?b?d?e?f?k?l?m?k?no
p
stv%w/x9yF{N|U}f?n?v?????????????????????????????????????!?(?/?;?G?N?X?_?f?p?x?????????????????????????????????!?/?9?A?H?T?c?i?p?v?{?~????<9%?
?0??4?O?	?	?%?
?B??4?S&?
[
?
%T?,M?j
?	?@??	?9??
?-?????V??O??H???A???,????	?U??
/??9???,?
	??@???6???*???N??
X}?_v?fo?9E??H6??T*?c????
}?v?o??????????
~?n??!g??'a1W;Mt	m
(`/Y ????S
;"?0?N
?1		2?V?y?a?7??????KD?g|*?ך?+?K+??+??M,?C??+?&N-??:??:?sW?sW?H:?H:?0?+*?????\W?\W+??*,?s??ñ?Z??????"(/5;	B
IX^
agmsx{?RB6!?I/"?|??|??g??"Z??(T#?/M$??!???%???
'???f*?w?`*?F?Y*?&L+?z?K+?&?}?
+?&???5+??M,???
,????,???
,???,?g?????????:,.-31A2C3R4^5`9b;d?? 3-%?Q&?f????.?
????
*"?:*?%?q*?&??
FG?????
???g*?w?*?F?
*?&L+?ڬ??OPQRV?'??????
???r!*?w?*?F?*?&L+?ڙ+?F???^_`abg?'?!?????
???I*?ڙ*?F???noq??????
?"?:*???q*????
xy?????
c??r!*?w?*?F?*?&L+???+?F??????????'?!?????
f"?:*?a?q*?&??
???????
N???}?
*??.?pEpphphWppppphh*????*?HK???*?F??*?HK???*?HK?????2?P?X?Z?_?b?i?k?p?s?x?{??}????O	??>??P*????????????8?@?	??
-??Y??L*+??????
?????	(?)	(*??,"?f*+?0L+?M*+,?"?????????? ????
?? !?x,+???,+??N*-?s-?+????????*????+?,??	+,2"??	?+??M?
+??.???$$+?&N+?H:*-?0N*?0:*??:*?????f+?::??6?????v??	-:?*-?њ
:?+??-??:?+??+?_*,?s?+?+?&N+?O:+?H:*?0:*?0::*??:*??:?Ŧ?Ȧ-?\W-:?v?Ȧ?Ŧ-?\W-?h:?X?Ŧ+??-?.:?A?Ȧ+??-?@:?**-?њ"*?њ-?ݙ+???.:?+?_*?sL+?*+??N-???-??6??6*+?˰+???;??4?9???E?MUa
gjr???????? ?!?"?%?*?+?,?1?2?<?=?>??
ABC%E*F3G;I?JJKRMVNaOlPuQ{ST?W?X?Y?Z?]?b?c?d?e?f?i??g]-yjZ??rR.9?/???0?Uq1???2???3???4???????5???6????78?$8???????????u?4?J	????N	??&???@?	??????!???N-+?ݚ+-?_*-?s*+??-?+??tuvwxz}?*!??!??!98:????	?9
;??L*???*???U??????<??@=?"
?v???5??+>?@ABIJMN"O@PQSU




© 2015 - 2024 Weber Informatics LLC | Privacy Policy