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

com.google.javascript.jscomp.Es6RewriteGenerators$SingleGeneratorFunctionTranspiler.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!
????71com/google/javascript/jscomp/Es6RewriteGenerators	Scom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspilerthis$03Lcom/google/javascript/jscomp/Es6RewriteGenerators;


java/lang/Object()V	forInCounterI
 com/google/javascript/rhino/NodegetLastChild$()Lcom/google/javascript/rhino/Node;	originalGeneratorBody"Lcom/google/javascript/rhino/Node;	 uniqueIdLjava/lang/String;"hcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext
!$
%X(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler;)V	'()contextjLcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext;
+,-isVar()Z
/0123$com/google/common/base/Preconditions
checkState(ZLjava/lang/Object;)V	56newGeneratorHoistBlock
89:insertBefore%(Lcom/google/javascript/rhino/Node;)V
<=-
isFunction
?@:addChildToFront
BC	getParent
EF-isCall
HIgetPrevious
KL
getFirstChild
NOgetNext	QRSJSCOMP_ASYNC_EXECUTE+Lcom/google/javascript/rhino/QualifiedName;
UVWXY)com/google/javascript/rhino/QualifiedNamematches%(Lcom/google/javascript/rhino/Node;)Z
[\getGrandparent
^_-isReturn
/a2b(Z)V
de-isGeneratorFunction	ghiGENERATOR_FN'Lcom/google/javascript/rhino/Node$Prop;
klmputBooleanProp+(Lcom/google/javascript/rhino/Node$Prop;Z)V	opqrs2com/google/javascript/jscomp/colors/StandardColors
TOP_OBJECT+Lcom/google/javascript/jscomp/colors/Color;	uvw
astFactory)Lcom/google/javascript/jscomp/AstFactory;
yz{|}'com/google/javascript/jscomp/AstFactorycreateBlockG([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
?YisTranspiledAsyncFunction
??-	isGetProp
??-isBlock
?????%com/google/javascript/jscomp/NodeUtilgetEnclosingFunctionF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;?#asyncExecutePromiseGeneratorProgram
???	setString(Ljava/lang/String;)V
!???getJsContextNameNode
??:addChildToBack
??:replaceWith
??-isName
???	getString()Ljava/lang/String;
????-java/lang/StringisEmpty?$jscomp$generator$function
!???
getScopedName&(Ljava/lang/String;)Ljava/lang/String;
y??-isAddingColors
???getColor-()Lcom/google/javascript/jscomp/colors/Color;
???setColorO(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/rhino/Node;	??iIS_CONSTANT_NAME?
????}com/google/javascript/rhino/IR	paramList
y???type[(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/jscomp/AstFactory$Type;
y???createFunction?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;	???	namespace)Lcom/google/javascript/rhino/StaticScope;?!$jscomp.generator.createGenerator
y???createQName_(Lcom/google/javascript/rhino/StaticScope;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
??	cloneNode
y???createCallWithUnknownTypei(Lcom/google/javascript/rhino/Node;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
y???createReturn
???
srcrefTree	???compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
????:-com/google/javascript/jscomp/AbstractCompilerreportChangeToChangeScope?Acom/google/javascript/jscomp/Es6RewriteGenerators$YieldNodeMarker
?
?????*com/google/javascript/jscomp/NodeTraversaltraverse?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
??YisEndOfBlockUnreachable
??-hasChildren
??removeFirstChild
??:transpileStatement	jumpToEnd	osNULL_OR_VOID
!callContextMethodResult?(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;	!
currentCaseoLcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;	!programEndCase
mcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$CasejumpTo?(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/rhino/Node;)V	mayFallThroughZ
!:finalizeTransformation
!checkStateIsEmpty
!?"(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;)V
?$%YmayBeStatement
'(-isGeneratorMarker
*+:transpileUnmarkedNode	-./013com/google/javascript/jscomp/Es6RewriteGenerators$1,$SwitchMap$com$google$javascript$rhino$Token[I
345getToken%()Lcom/google/javascript/rhino/Token;
789:;!com/google/javascript/rhino/Tokenordinal()I
=>:transpileLabel
@A:transpileBlock
CD:transpileExpressionResult
FG:transpileVar
IJ:transpileReturn
LM:transpileThrow
OPQtranspileIf?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;)V
ST"transpileFor
VW"transpileForIn
YZ"transpileDo
\]QtranspileTry
_`QtranspileSwitchbjava/lang/IllegalStateExceptiondefmakeConcatWithConstants7(Lcom/google/javascript/rhino/Token;)Ljava/lang/String;
ah
?
?jkl
startsWith(Ljava/lang/String;)Z
no:hoistFunctionDeclarationNode
qr-isAddedBlock
?tu?block
!wx:transpileUnmarkedBlockzjava/util/ArrayList
y
}~-isLabel
y???add(Ljava/lang/Object;)Z
???YisLoopStructure
!???
createCaseq()Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;
!???
pushLabels?(Ljava/util/ArrayList;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;)V
!???	popLabels(Ljava/util/ArrayList;)V
!???switchCaseTor(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;)V
???exposeYieldAndTranspileRest
???transpileYields
??-isYield
???prepareNodeForWrite
??bsetGeneratorMarker
!??:writeGeneratedNode
???maybeDecomposeExpression
!???returnExpressionh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
???YmayBeExpression?>com/google/javascript/jscomp/Es6RewriteGenerators$YieldExposer
??
?6(Lcom/google/javascript/jscomp/Es6RewriteGenerators;)V
??detach
y???
exprResult?com/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$UnmarkedNodeTranspiler
?????java/util/ObjectsrequireNonNull&(Ljava/lang/Object;)Ljava/lang/Object;
??
?m(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext;)V
??-hasOneChild
???	findYield
??-
isYieldAll
!???yieldAll?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/rhino/Node;)V
!???
yieldValue
!???yieldResult
???srcref
y???	createNot
!???maybeCreateCase?(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;)Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;
!???createJumpToBlock?(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;ZLcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
??bsetGeneratorSafe
y???createIf
!??writeJumpTo
?
!???pushBreakContinueContext?(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;)V
!??popBreakContinueContext
??getSecondChild
??:insertAfter	7VAR#Lcom/google/javascript/rhino/Token;

&(Lcom/google/javascript/rhino/Token;)VforIn	
propertyIteratorType!Lcom/google/common/base/Supplier;com/google/common/base/Supplierget()Ljava/lang/Object;,com/google/javascript/jscomp/AstFactory$Type
!callContextMethod$jscomp$generator$forine'(Ljava/lang/String;I)Ljava/lang/String;
y?R(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/AstFactory$Type;
y!"#
createNamed(Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;O
y&'(
createGetProp?(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;	*+snullableStringType
y-./
createCall?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AstFactory$Type;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
y12?createAssign
y45
createNull
y78?createNe
?:;empty
?=>?forNode?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
!ABC
enterTryBlock(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/rhino/Node;)V
!EFC
leaveTryBlock
!HICenterFinallyBlock
!KLleaveFinallyBlock
NO-isCatch
QRgetFirstFirstChild
!TUenterCatchBlock
!WXleaveCatchBlock
Z[-
isDefaultCase	]^_`a.com/google/javascript/jscomp/TranspilationUtilCANNOT_CONVERT_YET-Lcom/google/javascript/jscomp/DiagnosticType;c#Case statements that contain yields
efghi$com/google/javascript/jscomp/JSErrormake?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
?klmreport)(Lcom/google/javascript/jscomp/JSError;)V	op	caseBlock
!rstcreateJumpToNode?(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
vwbsetIsAddedBlocky_com/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$1SwitchCase
x{
|?(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/rhino/Node;)V
!~?pushBreakContext
y???iterator()Ljava/util/Iterator;????-java/util/IteratorhasNext???next	x??
generatedCase	x??body
!??popBreakContext?_com/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$YieldFinder
?$
???getYieldNodej(Lcom/google/javascript/jscomp/Es6RewriteGenerators;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)VCodeLineNumberTableLocalVariableTablethisULcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler;genFuncMethodParametershoistVarNodenode
callTargetgeneratorFunction
StackMapTable	transpileprogramchangeScopeNodegenFuncNamecreateGeneratorprogramType
generatorBodyshouldAddFinalJump
finalBlock?)com/google/javascript/jscomp/colors/Color	statement	breakCasecontinueCaseRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;functionNamen
labelNamesLjava/util/ArrayList;LocalVariableTypeTable9Ljava/util/ArrayList;exposedExpression
decomposedvarnewVarsisExpression?#[Lcom/google/javascript/rhino/Node;wrapper
jumpToSection	yieldNodeyieldExpressiontmpNode
jumpToNodeendCasejumpToBlock	conditionifBlock	elseBlockifCase
newIfBlockinit	increment	startCase
incrementCasedetachedExprtargetchildforInGetNextforCond
exceptionName	catchBodytryBlock
catchBlockfinallyBlock	catchCasefinallyCasecaseSectionnewBodydetachedCaseaLcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$1SwitchCase;hasGeneratorMarker
detachedCasescanSkipUnmarkedCasesxLjava/util/ArrayList;yieldFinderaLcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$YieldFinder;
SourceFileEs6RewriteGenerators.javaNestHostBootstrapMethods?
???e?$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;?Unsupported token: ?$InnerClasses!SingleGeneratorFunctionTranspilerTranspilationContext?%com/google/javascript/rhino/Node$PropPropTypeYieldNodeMarker3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackCaseYieldExposerUnmarkedNodeTranspiler
SwitchCaseYieldFinder%java/lang/invoke/MethodHandles$Lookup
java/lang/invoke/MethodHandlesLookup 
 ()6
??z(*+?*?	*?*,??*-?*?!Y*?#?&???	????'?? (??(?( ?
??:?P+?*+?.+*?4??7??	??????o:?M+?;+?.*?4+?>?????????Y??R+?A?D?I+?G?B+?A?JM+?G,?2+?M?+?P,?T?!+?Z?]?`+?Z?M???`???&	#$%"&,'2(<)N*P-? 7?R??R??
?J@??????(*??AL+?c?`+?f?j?nN*??t??x:*+?~?m+?G:???`*+?Z?A?4*?4??*?4?.*?4??:?;?.???*??AM*??G*?&*?????*?????+:+?J:???`?????1*?&?????*??t???
+????W???j*??t??Y*?&*???S??-?ö?M*??t*???϶?:**??t?Y*??t*??t?Y??SY,S?ض?*???S?x?4*?*?4??*???,??*???*???Y????**?????6*????**????????*??t??x:? *?&*????????*?&?	*?&?
?*?&?	?*?&?*?&?*???????9123:;+>3B9CAGLHZIcJmMtO|Q?R?S?T?U?V?W?X?Z?[?\?_?b?h?kmipq$tJzRyUw\{`uf|q?|?????????????????????????'???
9a?|!?c:????$M?(?? ??
?s+?????????]??G	????@???.@??1?:?@*+? ??
?????????"???+?#?`+?A???`+?&?	*+?)??,+?2?6.??>FNV^fnw????*+?:?m?yY?{M+?|?,+???W+??L???+???
*?&???N*?&??:*?&,-??*+-? *?&,??*?&?	?*?&????2 3
<GOWcl?4m??m?e??3:?<1??e????y@?9??A:?Y+???*+???????????????D:??-*+????M*,??N,???+*-???>+??*?&+????!	"'()$*,,?*-??-?	$????,??G:?k+??+??M+???P+??YN?-?&?,-?????,???
*,?)+??M-? -?&?`-*-?????>-??,-?????,???*,?)??F01
25!6)8095::>>?E@QAVB[D^GeHjJ?*D?k??k?
a???
?? ??J:?x,+*?&+**+?????????>*?&+??*?&?	???N	PONQ R+S?,??,???M:?d$+**+???????>*?&+??*?&?	???WXY#Z?$??$??????>+?&?`+???+?+??=*??t?Y?*??t+?ܧ+S?xN*???+??Y*?????*???-??Y????-???:*-????????*
^_`mn:oPrbukvpw?4???j?:Euk??C?#y???y???FA?????]+?
+?&?+?**+??????|}
????????	?????U+??+?#?*??t?Y+S?x?*??t+??M*???,??Y*?&Y??W?Ÿ?,?ȸ`,???????.?I?P?? U??U?.'??J????????;}+?&?+?*?&??M*+??N**-??????:-?Ι*?&,-?ѧ*?&,-??*?&,??*?&-??:-+??-??+??A:?????+??J??	????%?,?:?E?M?W?\?_?e?k?r?{??>}??}?l?f?%X?W&??	?0
???PQ??	_*+????N+?J:?M:?&? ??&?+-?>+??*+?)???W?*??t??x+??:?	??W?&?'?&?*??t-??-??N:::?&?_*?&,??:*?&??:?????:???????**??t-??+?۶)*??*?&???*?&??:*?&,??:*-??N*?&+??:*?&*??t*-????+?۶?*??*?&??*?&??*??*?&?????*?	???+?0?5?:?;?A?F?]?c?s??????????????????????????????????????&?2?5?;?F?O?U?^???
???
??R??D?_??_?_?	V?P?I??c?Y?F???+!+??$?	????T"??>*+????:+?J:?M:?M:?&?$?&??&?+?>+??*+?)???$???*??t????:*?)*?&??:*?&-??:	*?&,??:
*?&????C**??????:*?&*??t*??t????*?&
+???+?۶?*?&
	??*????*?&??*?&	????#*????:**??t???۶)*?&+??*?&
?????%?
????(06<AFG	O
Wjpy???????????#?$?%?()
*+*-4/=0?p>??>?>?>?
4?.?'? ?y?????	???
?2?G"?m?K?
??????W"??
?*+??????:+?J:+??:?&??&???+??*+?)????*?7?&???`:?J?????`?J??:??Y????:*?&*??	?
??YS?:*??t*?&??*Y?Z`???? ??:		?>	??*??t	??$?n?ö%??:
*??t*??t*??)??*??t
*??)????,?۶0??*??t?3	?۶6??:?&???9+?????<+??:*,-?R???&=
>?B)C0D5E:F;KFMVNZOmPzS?W?X?Y?\?[?]?_?a?d?f	gj%o8qDrGnLsVt^lcuhvrz?}?~??Z ??????????
????{??	??????	??
h,??	>?"?;@?@???
??????Z"?'?*?&??:*?&,??M*?&-??N*?&??+??:*?&,-??*??*?&??*?&-??**+??????:*?&*??t*?&+???+?۶?*?&,????F?	???$?*?3?9?@?H?V?k?n?r?u?x????H?????????	x?*W?V+??
??????]Q?	?+??N+??:+??:???
*?&???:??
*?&??:*?&,??:*?&-?@*-???*?&-?D?**?&??*?&?G*??*?&?J???O?J?M?`*?&???P??:	*?&	?S?P??:

???`*
??*?&
?V*?&????f????&?8?B?N?S?X?g?p?}??????????????????????????p?.?	??
?????????????&??8??B???)?#@?
F?0&?S?	????`Q?#
v+*+?????>>+??:??&?>?
?M:????+??*+?)??yY?{:6+??:???Y?*?J?&?*???+?\??YbS?d?j??:???j??&??Z*??6*?&??:?n??W*?&?q?s:		?u	??	???xY*?z?W???M:??O*?&,??:+??*+?)*?&+??*?&?}??:???+???x:??:	*?&	??*???????*?&??*?&?????/?????!?#?&?0?4?9?>???H?K?Q?V?i?~???????????????
???
????#,IP Y!b"e#l%u&????o??F??+?	Q??P?	I??v??v?v?h?H.??K+?g??H.???1??	?y3??V?	?-??1?	???????`??Y*??M*???+,??,????*	+,? ???	?????Y??m+???`+?????,+??2?6.?MBMMKKMMMMMMKK*+???????MNOQ`SiYk\?m??mu??O?u?????????j
?!???@y?
?	!-??!x?	





© 2015 - 2024 Weber Informatics LLC | Privacy Policy