com.google.javascript.jscomp.Es6RewriteGenerators$SingleGeneratorFunctionTranspiler.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded Show documentation
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 1com/google/javascript/jscomp/Es6RewriteGenerators Scom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler this$0 3Lcom/google/javascript/jscomp/Es6RewriteGenerators;
java/lang/Object ()V forInCounter I
com/google/javascript/rhino/Node getLastChild $()Lcom/google/javascript/rhino/Node; originalGeneratorBody "Lcom/google/javascript/rhino/Node; uniqueId Ljava/lang/String; " hcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext
! $
% X(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler;)V ' ( ) context jLcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext;
+ , - isVar ()Z
/ 0 1 2 3 $com/google/common/base/Preconditions
checkState (ZLjava/lang/Object;)V 5 6 newGeneratorHoistBlock
8 9 : insertBefore %(Lcom/google/javascript/rhino/Node;)V
< = -
isFunction
? @ : addChildToFront
B C getParent
E F - isCall
H I getPrevious
K L
getFirstChild
N O getNext Q R S JSCOMP_ASYNC_EXECUTE +Lcom/google/javascript/rhino/QualifiedName;
U V W X Y )com/google/javascript/rhino/QualifiedName matches %(Lcom/google/javascript/rhino/Node;)Z
[ \ getGrandparent
^ _ - isReturn
/ a 2 b (Z)V
d e - isGeneratorFunction g h i GENERATOR_FN 'Lcom/google/javascript/rhino/Node$Prop;
k l m putBooleanProp +(Lcom/google/javascript/rhino/Node$Prop;Z)V o p q r s 2com/google/javascript/jscomp/colors/StandardColors
TOP_OBJECT +Lcom/google/javascript/jscomp/colors/Color; u v w
astFactory )Lcom/google/javascript/jscomp/AstFactory;
y z { | } 'com/google/javascript/jscomp/AstFactory createBlock G([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
? Y isTranspiledAsyncFunction
? ? - isGetProp
? ? - isBlock
? ? ? ? ? %com/google/javascript/jscomp/NodeUtil getEnclosingFunction F(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/String isEmpty ? $jscomp$generator$function
! ? ? ?
getScopedName &(Ljava/lang/String;)Ljava/lang/String;
y ? ? - isAddingColors
? ? ? getColor -()Lcom/google/javascript/jscomp/colors/Color;
? ? ? setColor O(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/rhino/Node; ? ? i IS_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 ? ? ? createCallWithUnknownType i(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/AbstractCompiler reportChangeToChangeScope ? Acom/google/javascript/jscomp/Es6RewriteGenerators$YieldNodeMarker
?
? ? ? ? ? *com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
? ? Y isEndOfBlockUnreachable
? ? - 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; !
currentCase oLcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case; ! programEndCase
mcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case jumpTo ?(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/rhino/Node;)V mayFallThrough Z
! : finalizeTransformation
! checkStateIsEmpty
! ?"(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;)V
?$% Y mayBeStatement
'( - isGeneratorMarker
*+ : transpileUnmarkedNode -./01 3com/google/javascript/jscomp/Es6RewriteGenerators$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
345 getToken %()Lcom/google/javascript/rhino/Token;
789:; !com/google/javascript/rhino/Token ordinal ()I
=> : transpileLabel
@A : transpileBlock
CD : transpileExpressionResult
FG : transpileVar
IJ : transpileReturn
LM : transpileThrow
OPQ transpileIf ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;)V
ST" transpileFor
VW" transpileForIn
YZ" transpileDo
\]Q transpileTry
_`Q transpileSwitchb java/lang/IllegalStateException def makeConcatWithConstants 7(Lcom/google/javascript/rhino/Token;)Ljava/lang/String;
ah
?
?jkl
startsWith (Ljava/lang/String;)Z
no : hoistFunctionDeclarationNode
qr - isAddedBlock
?tu ? block
!wx : transpileUnmarkedBlockz java/util/ArrayList
y
}~ - isLabel
y??? add (Ljava/lang/Object;)Z
??? Y isLoopStructure
!???
createCase q()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
!??? switchCaseTo r(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;)V
?? ? exposeYieldAndTranspileRest
?? ? transpileYields
?? - isYield
?? ? prepareNodeForWrite
?? b setGeneratorMarker
!?? : writeGeneratedNode
?? ? maybeDecomposeExpression
!??? returnExpression h(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
??? Y mayBeExpression? >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/Objects requireNonNull &(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;
?? b setGeneratorSafe
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;)V forIn
propertyIteratorType !Lcom/google/common/base/Supplier; com/google/common/base/Supplier get ()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!"#
createName d(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; *+ s nullableStringType
y-./
createCall ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AstFactory$Type;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
y12? createAssign
y45
createNull
y78? 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;
!ABC
enterTryBlock(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/rhino/Node;)V
!EFC
leaveTryBlock
!HIC enterFinallyBlock
!KL leaveFinallyBlock
NO - isCatch
QR getFirstFirstChild
!TU enterCatchBlock
!WX leaveCatchBlock
Z[ -
isDefaultCase ]^_`a .com/google/javascript/jscomp/TranspilationUtil CANNOT_CONVERT_YET -Lcom/google/javascript/jscomp/DiagnosticType;c #Case statements that contain yields
efghi $com/google/javascript/jscomp/JSError make ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
?klm report )(Lcom/google/javascript/jscomp/JSError;)V op caseBlock
!rst createJumpToNode ?(Lcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$TranspilationContext$Case;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
vw b setIsAddedBlocky _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/Iterator hasNext??? next x??
generatedCase x?? body
!?? popBreakContext? _com/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$YieldFinder
? $
??? getYieldNode j(Lcom/google/javascript/jscomp/Es6RewriteGenerators;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V Code LineNumberTable LocalVariableTable this ULcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler; genFunc MethodParameters hoistVarNode node
callTarget generatorFunction
StackMapTable transpile program changeScopeNode genFuncName createGenerator programType
generatorBody shouldAddFinalJump
finalBlock? )com/google/javascript/jscomp/colors/Color statement breakCase continueCase RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; functionName n
labelNames Ljava/util/ArrayList; LocalVariableTypeTable 9Ljava/util/ArrayList; exposedExpression
decomposed var newVars isExpression? #[Lcom/google/javascript/rhino/Node; wrapper
jumpToSection yieldNode yieldExpression tmpNode
jumpToNode endCase jumpToBlock condition ifBlock elseBlock ifCase
newIfBlock init increment startCase
incrementCase detachedExpr target child forInGetNext forCond
exceptionName catchBody tryBlock
catchBlock finallyBlock catchCase finallyCase caseSection newBody detachedCase aLcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$1SwitchCase; hasGeneratorMarker
detachedCases canSkipUnmarkedCases xLjava/util/ArrayList; yieldFinder aLcom/google/javascript/jscomp/Es6RewriteGenerators$SingleGeneratorFunctionTranspiler$YieldFinder;
SourceFile Es6RewriteGenerators.java NestHost BootstrapMethods?
???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 !SingleGeneratorFunctionTranspiler TranspilationContext? %com/google/javascript/rhino/Node$Prop Prop Type YieldNodeMarker 3com/google/javascript/jscomp/NodeTraversal$Callback Callback Case YieldExposer UnmarkedNodeTranspiler
SwitchCase YieldFinder %java/lang/invoke/MethodHandles$Lookup
java/lang/invoke/MethodHandles Lookup
( ) 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? ? ? `?? ? &