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

com.google.javascript.jscomp.Es6RewriteDestructuring.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!
????7c
java/lang/Object()Vjava/util/ArrayDeque
	
4com/google/javascript/jscomp/Es6RewriteDestructuringpatternNestingStackLjava/util/Deque;	destructuringVarCounterI	com/google/javascript/jscomp/parsing/parser/FeatureSet$Feature	DGHIDEFAULT_PARAMETERS@Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;	DKLIARRAY_DESTRUCTURING	DNOIARRAY_PATTERN_REST	DQRIOBJECT_DESTRUCTURING
?TUVwith{([Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;)Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;	XYCfeaturesToTriggerRunningPass	D[\IOBJECT_PATTERN_REST
?^U_z(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;)Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;	abCfeaturesToMarkAsRemoveddjava/lang/AssertionErrorfghmakeConcatWithConstantsi(Lcom/google/javascript/jscomp/Es6RewriteDestructuring$ObjectDestructuringRewriteMode;)Ljava/lang/String;
cjk(Ljava/lang/Object;)Vmnopqjava/util/DequeisEmpty()Z
stuvw$com/google/common/base/Preconditions
checkState(Z)V
yz{|}*com/google/javascript/jscomp/NodeTraversaltraverse?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
????0com/google/javascript/jscomp/TranspilationPasses!maybeMarkFeaturesAsTranspiledAway?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;)V
????q com/google/javascript/rhino/NodeisScript
?????%com/google/javascript/jscomp/NodeUtilgetFeatureSetOfScript\(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;
????containsAtLeastOneOf;(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;)Z	3??7,$SwitchMap$com$google$javascript$rhino$Token
????getToken%()Lcom/google/javascript/rhino/Token;
?:?!com/google/javascript/rhino/Token
???pullDestructuringOutOfParamsG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
???qisObjectPattern
???qhasChildren
????getLastChild$()Lcom/google/javascript/rhino/Node;
???qisRestm???iterator()Ljava/util/Iterator;????qjava/util/IteratorhasNext????next()Ljava/lang/Object;?Hcom/google/javascript/jscomp/Es6RewriteDestructuring$PatternNestingLevel	????hasNestedObjectRestZm???peekLast
???&(Lcom/google/javascript/rhino/Node;Z)Vm??kaddLast
???visitPatternQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Vm???getLast	????pattern"Lcom/google/javascript/rhino/Node;m???
removeLast
????
getFirstChild
????getNext
???qisDefaultValue
????removeFirstChild
????getJSDocInfo)()Lcom/google/javascript/rhino/JSDocInfo;
????setJSDocInfoK(Lcom/google/javascript/rhino/JSDocInfo;)Lcom/google/javascript/rhino/Node;
???qisName?	undefined
????	getString()Ljava/lang/String;
?????java/lang/Stringequals(Ljava/lang/Object;)Z
???qisVoid
??isImmutableValue%(Lcom/google/javascript/rhino/Node;)Z
??	cloneTree
?getTempVariableName
	

'com/google/javascript/jscomp/AstFactorytypeR(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/AstFactory$Type;
createTempVarNameNoded(Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
defaultValueHookh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
	createAssign
com/google/javascript/rhino/IR
exprResultF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
 !var
?#$srcrefTreeIfMissing
?&'2getInsertionPointAfterAllInnerFunctionDeclarations
?)*+insertBefore%(Lcom/google/javascript/rhino/Node;)V
?-.+addChildToBack
?01+insertAfter
?34qisDestructuringLhs
67"rewriteVarDestructuringDeclaration
?9:+replaceWith
!<=+reportChangeToChangeScope
??@qisDestructuringPattern
BCDreplacePatternParamWithTempVar?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
sFvG(ZLjava/lang/Object;)V
?IJ?getGrandparent
?LMqisExportOFExport destructuring declarations not expected inside a function body.
?QR?	getParentTUVacceptA(Lcom/google/javascript/rhino/Node;)Ljava/util/function/Consumer;
?XYZvisitLhsNodesInNodeB(Lcom/google/javascript/rhino/Node;Ljava/util/function/Consumer;)V\)Expected destructuring pattern but got %s
?^_?toStringTree
savb((ZLjava/lang/String;Ljava/lang/Object;)V
?desrcref
	
	hicreateConstantNamekgl(I)Ljava/lang/String;
?noqisVanillaFor
qr?.visitDestructuringPatternInVanillaForInnerVars
?tu
isEnhancedFor
wx+/visitDestructuringPatternInEnhancedForInnerVars
z{|replacePattern?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
?~qisExprResult
???&wrapAssignOrDestructuringInCallToArrow
??+3visitDestructuringPatternInEnhancedForWithOuterVars
??? visitDestructuringPatternInCatch?java/lang/IllegalStateException?unexpected parent
???(Ljava/lang/String;)V
???isStatement
s??G
checkArgument
??|replaceArrayPattern
??|replaceObjectPattern?
unexpected?java/util/ArrayList
?	9??REWRITE_OBJECT_REST
????detach
???qisConst
?????%com/google/javascript/rhino/JSDocInfobuilder1()Lcom/google/javascript/rhino/JSDocInfo$Builder;
????q-com/google/javascript/rhino/JSDocInfo$BuilderrecordConstancy
????build
???qisStringKey
???qisQuotedStringKey
	???createString6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
	??
createGetElem
	???
createGetProp?(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
????add
???qisComputedProp
????	cloneNode?1object rest may not be followed by any properties?
Object.assign
	???createQName_(Lcom/google/javascript/rhino/StaticScope;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;	?????2com/google/javascript/jscomp/colors/StandardColors
TOP_OBJECT+Lcom/google/javascript/jscomp/colors/Color;
	??[(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/jscomp/AstFactory$Type;
	???
createCall?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AstFactory$Type;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
	???createObjectLitG([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
????getOnlyChild?$jscomp$destructuring$var
????
startsWith(Ljava/lang/String;)Z
	??
createName
???objectPatternRestRHS?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Ljava/lang/String;Ljava/util/ArrayList;)Lcom/google/javascript/rhino/Node;?unexpected child
???isNameDeclaration	?IS_CONSTANT_NAME'Lcom/google/javascript/rhino/Node$Prop;
?putBooleanProp+(Lcom/google/javascript/rhino/Node$Prop;Z)V
	
declaration?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Token;)Lcom/google/javascript/rhino/Node;
?
qisAssignnot reached
visits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
yreportCodeChange
s?w
?n
??
deletionNodeForRestProperty
	 !createComma
	#$%createGetPropWithUnknownTypeX(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;'g(&(Ljava/lang/String;)Ljava/lang/String;
	*+
createDelProp
	-./createJSCompMakeIteratorCallo(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/StaticScope;)Lcom/google/javascript/rhino/Node;
	123createSingleVarNameDeclarationX(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
?n?
	789createCallWithUnknownTypei(Lcom/google/javascript/rhino/Node;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;;value
	=>/!createJscompArrayFromIteratorCall
@Alet
yCD?getCurrentScript	DFGILET_DECLARATIONS
?IJKaddFeatureToScript?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;Lcom/google/javascript/jscomp/AbstractCompiler;)V
MN
returnNode
PQ?blockS
	UVWcreateZeroArgFunction?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/Node;
?YZwsetIsArrowFunction	D\]IARROW_FUNCTIONS	?_`	FREE_CALL
?bcdmarkNewScopesChangedT(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;)V
?fgqisLabel
iQ?
kl?emptyT
opqrZ0com/google/javascript/jscomp/parsing/ParsingUtilgetParamOrPatternNames'
	uv?createNameWithUnknownType
?xy?toString
!{|+reportChangeToEnclosingScope
~Q
?!
???+addChildToFront	????LET#Lcom/google/javascript/rhino/Token;
	???createUndefinedValue
???makeNonIndexable
????getColor-()Lcom/google/javascript/jscomp/colors/Color;
????setColorO(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/rhino/Node;
	??
createSheq
	???
createHook?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;?>lhs in destructuring declaration should be a simple name. (%s)
???name
????getBooleanProp*(Lcom/google/javascript/rhino/Node$Prop;)Z?+JSC_UNEXPECTED_DESTRUCTURING_REST_PARAMETER?CEs6RewriteDestructuring not expecting object pattern rest parameter
?????+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;	???'UNEXPECTED_DESTRUCTURING_REST_PARAMETER-Lcom/google/javascript/jscomp/DiagnosticType;?3com/google/javascript/jscomp/NodeTraversal$Callback?)com/google/javascript/jscomp/CompilerPass	Signature]Ljava/util/Deque;DESTRUCTURING_TEMP_VARLjava/lang/String;
ConstantValueA(Lcom/google/javascript/jscomp/Es6RewriteDestructuring$Builder;)VCodeLineNumberTableLocalVariableTablethis6Lcom/google/javascript/jscomp/Es6RewriteDestructuring;>Lcom/google/javascript/jscomp/Es6RewriteDestructuring$Builder;
StackMapTableMethodParametersprocessexternsrootshouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)ZscriptFeatureslevelJLcom/google/javascript/jscomp/Es6RewriteDestructuring$PatternNestingLevel;hasRestt,Lcom/google/javascript/jscomp/NodeTraversal;nparentnewParamlhsrhsnewStatement
nameOrPatternjsDoc'Lcom/google/javascript/rhino/JSDocInfo;defaultValueisNoopparam	paramListfunction
insertSpotbodypatternParamtempVarName	paramType.Lcom/google/javascript/jscomp/AstFactory$Type;newDecl?,com/google/javascript/jscomp/AstFactory$TypedestructuringLhsdestructuringPatternassignexprdeclarationParentnodeToDetach/Lcom/google/javascript/rhino/JSDocInfo$Builder;newLHSnewRHStempVarNameNodegetpropdefaultNodeexprEvalTempVarNameexprEvalTempVarModelexprEvalDeclgetelemintermediateTempVarNameintermediateDecl
hasDefaultpropExpr
assignCallrestTempDeclrestNamenewNodechild
objectPatterntempVarTyperestTempVarNamepropsToDeleteForRestLjava/util/ArrayList;tempDeclLocalVariableTypeTable9Ljava/util/ArrayList;propItrLjava/util/Iterator;commareststatedPropertiesrestTempVarModelresult8Ljava/util/Iterator;?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Ljava/lang/String;Ljava/util/ArrayList;)Lcom/google/javascript/rhino/Node;getrestTempVarNameNodepropertynextCallnextVarNamenextCallDotValuenextVarType
assignmentarrayPatternmakeIteratorCalltempVarModel
newAssignmentreplacementExprarrowFncallnewDeclarationc	unusedVarinsertionPointdeclarationNodeforNodedeclarationTypedeclnewBlock
clonedName
catchBlockpatternTypegetpropClone7lambda$visitDestructuringPatternInVanillaForInnerVars$1+lambda$rewriteVarDestructuringDeclaration$0newNamenewVar
SourceFileEs6RewriteDestructuring.javaNestMembersBootstrapMethods8
9:;g<$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;>FEs6RewriteDestructuring cannot handle ObjectDestructuringRewriteMode @
ABCDE"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;kH
I/?+L$jscomp$destructuring$varN%Unexpected property to delete node: P
Q.?S$unusedInnerClassesBuilderObjectDestructuringRewriteModeFeatureCallbackPatternNestingLevelType\%com/google/javascript/rhino/Node$PropProp_%java/lang/invoke/MethodHandles$Lookupajava/lang/invoke/MethodHandlesLookup1??
??()01YCbC????????U?*?*?Y?	?
*?*+??*+??**?? ?&**??*?.?2*??8.?jR*?>?DY?FSY?JSY?MSY?PS?S?W**?W?Z?]?`?,*?>?Z?]?W**?W?`??cY*??e?i???NQKORS$T/U:W`Y?Z?b?c?d?h?i?j?k?m?q?????????`6?????|.*?
?l?r*?,*?x*?,*?`?~*?
?l?r?????!?-?? .??.??.???	???????,???,??:*?W?????,????.??##*,-????,???,???,??????6*?
?l?M?H*?
??:???#????:?????????*?
??????*?
??Y,?Ĺ????F??
??<?B?E?d?u??????????????????H

?C???dl???????????????
$@??? ????
?????K??,????.??*+,??,*?
?????Ѧ*?
??W????$?*?=?J??*K??K??K??K???$%?
????????N,??::+??:?y??:?ޙ??:??:??W??:	6???,	???	???6?	???
	?ظ?6?
?:
?????**???:
?:*
?	?:
??*?&
???

?:?"W-? ?%N-?-?(??,?	-?/N?ض2?
*?ض5N
?8
??W*?,?;?N?>?*,-*??AN*?,?;?.???&?ض>?*,-??*??AN*?,?;:??????2??????%?,?3?:?A?D?O?W?f?n?x?}???????????????????????????? '
/7BHOZmry}????????
?v???i??
?G??,??3??A???	????
D???{??????????????????????????????=?????????L??.????????????F?? ?	????????*??	??CD?$j-?:*?:-???W-?8-*??:-?"W,?$+???%M,?,?(?+???,?	,?/*?ض5??:0123 4.5579::;A<E=N@ZC`F?Rj??j??j??j??j??d??Z??.<????N????????7?(s+?2+?E+?H?K??N?E+?PM+,?S?W+??N-?>[-?]?`+??:*?&-?:,?cW*?&?f:,?cW,?8??JST	UTW"[,o1p2q9s<p?uEvQwXxcyj{p|?Hs??s??"Q!?1B??E.??Q"??c???@???H
*?&+,?g???? 
??
??
??	???;*Y?Z`??j???????????,?PN??-????.????D??????????-?P:?P:?m?*+,?p?!?s?*,?v?*+,,???y?G-?P?}?*+,,??--?P?y?+*+-???"?*,???*+,?????Y??????V??T?Z?a?i?r?z????????????????????????????>Z6
?a/????????????????T?????

?	??{|??X??????,????.?7)*+,-???*+,-?????Y??????"?
?0?;?>?I?L?W??>X??X??X??X??X??X???0

???????|?	Vg*?:,?:::	,???,???????Y??:	*?:?**???? *?
???????*Y?d??*?-???,?":
?????:??W
????W
?(,??:????:????*?:???*?&*?&????§*?&????:??:?ޚ:
:???:
??:*?:	?	??W???̙?????6??:???:??:
??:?
??:
:	?C*?:*??:???:?"W?(??:	?϶?W?S*?&*???:*?:*???:?"W?(**???:?*?&*
????:?????????Yҷ??*?&*?&*?.Զֲڸ?????:*?&????,*??,*??:,?"W
?/??:????*????:
?*?&?????:
*,	??:???Y???????%???
??
???:?)??*?&
??:???Y????"W?(*+

?P?:??C??W+????g?????#?,?5???Q?[?\?a?l?q?y?~????????????????	???
?
#+6@GLSZa d!k"n$s&y'~(?)?*?+?,?-?/?1?2?5?6?7?8?9?<?>=?@AC)D.E9HHJNKUIZLjMwO?P?Q?S?T?U?W?Y?Z?[?_?`?acde/g:iBkIoU?\rbsft??0~?????
??
???q???????8;?
!??
??S??Z
??
a??y:???-???!???:???4???"????@???n???G???k???
?????
Z????V???A?????
?????,???k??
?k??:?????????g??g??g?g??g??g??a??[?X?U	q??
U	???5
y????????&?2????=y????????????O?????y???????????????????5y?????????????	y???????????????D?T?y????????????????y???????????????y????????????????
y????????????
???
??!y?????????????????	?+??,???*-+??:??:??W?:*???????:???$*?&*????????:???*?&?:,?"W??6
???"?*?1?F?P?Y?i?q?~????\	1M	
F8???????????
m?"f?1M	?
?+@?8	????????*??
??x??,????.?SF,???*?&+*?&,????§*?&+,??"N?!*?&+,??N???Y,?]?&???*?&-?)??:?$?+?5?;?A?G?J?N?Q?[?^?c?o??>N?[?x??x?x?o	??$K????	?|?)?*????"*?
?l?*?
????????*?:*?&-??*?.?,:*?&?0:??:	,?"W?(,??:

?f
??:
?4?:*?&*?&	??5?ڸ?????6?:
?"W?(?
?ޙt*?:*?&*?&*?&	??5?"???6:?":?:*??:
?"W?(
??:**?
?????:
?Y
???
??:*?&	??*?.?<:
?5
??:*?&*?&*?&	??5?"???6:
???:
??*?&
?:?:?
???:,?"W?(*+?P?:
?????W+????7?
?(?)?/?@?M?T?[?b?m?t?|?????????????????????????????????????$?)?4?;?PWe	rz}?????????????????h??B??;??,!???)??
;??M??
?????Wr???G??
???hh?
t\???????????????????/???@??M??T??	?L(?>y??????????J??x#?1???
????????????
?*?N,????:*-??:????:+?B?E*??H*?&,???϶:?:?ϸL:	??YSYSY	S?O:
*?&R
?T:?X*?&?????:+?B?[*??H,?"W?^?,?8*??a*+?????y??^<=?A&B4D9EFFMHWKoL~M?P?Q?R?S?T?U?V?X?Y?V?\??
????????????????&??F??M??W?N?	ojQ?
~[??A ??	?r??b(,?>?,?PN-?P:?P:?P?e?
?P:????????.??2??h?c:?8?,??:-?%??:???,?(??:?????:-???,?(*+,,???y????j?8?E,-?m?n*?&*??s?t-?c:-?8-?,*+-?????Y?w???*??z*??a???#`abde$f.iTl^menlusvyx?y?z?w?~?????????????????????????????'??p^Q??!?s("??.!??#?(??(??(????
?$??
????%???'44?	??x+?E
}+?>?*?M+?PN-?2?r-?P:?P:?s?r??:-*,+??+?c?8??:+??*,+???:+?"W?}:		?8	?,??J??????%?-?4?E?L?M?[?`?g?n?u?|??f
}??}??q??l??_%?%X&?4IQ?L1'?`(?n)?	???+?)	o+?>?*?M+?PN-??:*,+??:?:+?"W-?(??:+?"W+?8*?&+*,+????:+?"W????F?????"?)?0?6?=?D?J?R?[?`?g?n??\	o??o??c??^&?XQ?"M??)F(?=2*?`???????>*?N,??:,?:,*-??8,*-??????+?B?E*??H??&	?????#?,?/?=??>>??>??>??9??3+?-,??	????-*?&??N-??+?+????:*?&*?&+-??,????????#?)??4-??-??-??%??-??	??
.??=	+??*?(????	??	??
/???8+???+?`+???+?cM+????,??,?+?cN-*?(??&	_`_cd!g)i2j7k?*8!?8??!0?21???)?2?-
????????,-,345
3?96.7=?FGJ7K7M?FOJ7RTR
U9V@3D?W@?yX	?Y?	Z??U	[?]@^`b




© 2015 - 2024 Weber Informatics LLC | Privacy Policy