com.google.javascript.jscomp.RewriteAsyncIteration.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@
java/lang/Object ()V
2com/google/javascript/jscomp/RewriteAsyncIteration nextForAwaitId I
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; -com/google/javascript/jscomp/AbstractCompiler compiler /Lcom/google/javascript/jscomp/AbstractCompiler; 'com/google/javascript/jscomp/AstFactory
astFactory )Lcom/google/javascript/jscomp/AstFactory; 'com/google/javascript/rhino/StaticScope " # $ namespace )Lcom/google/javascript/rhino/StaticScope; & java/util/ArrayDeque
% ) * + contextStack Ljava/util/ArrayDeque;
- . / createAstFactory +()Lcom/google/javascript/jscomp/AstFactory;
1 2 3 getTranspilationNamespace +()Lcom/google/javascript/rhino/StaticScope;
5 6 ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/AstFactory;Lcom/google/javascript/rhino/StaticScope;)V
% 8 9 : isEmpty ()Z
< = >
checkState (Z)V
@ A B C D Acom/google/javascript/jscomp/RewriteAsyncIteration$LexicalContext newGlobalContext g(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/RewriteAsyncIteration$LexicalContext;
% F G H push (Ljava/lang/Object;)V J K L transpiledFeatures 8Lcom/google/javascript/jscomp/parsing/parser/FeatureSet; N 3com/google/javascript/jscomp/NodeTraversal$Callback
P Q R S T 0com/google/javascript/jscomp/TranspilationPasses processTranspile ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;[Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
P V W X !maybeMarkFeaturesAsTranspiledAway ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;)V
% Z [ \ element ()Ljava/lang/Object; @ ^ _ ` function "Lcom/google/javascript/rhino/Node;
% b c \ remove
e f g h : com/google/javascript/rhino/Node
isFunction
@ j k l newContextForFunction ?(Lcom/google/javascript/jscomp/RewriteAsyncIteration$LexicalContext;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/jscomp/RewriteAsyncIteration$LexicalContext;
e n o : isParamList
@ q r l newContextForParamList t u v w x 4com/google/javascript/jscomp/RewriteAsyncIteration$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
e z { | getToken %()Lcom/google/javascript/rhino/Token;
~ ? ? ? !com/google/javascript/rhino/Token ordinal ()I @ ? ? ` contextRoot
? ? ? equals (Ljava/lang/Object;)Z
? = ? (ZLjava/lang/Object;)V
% ? ? \ pop
e ? ? : isAsyncGeneratorFunction
? ? ? convertAsyncGenerator %(Lcom/google/javascript/rhino/Node;)V
? ? ? prependTempVarDeclarations r(Lcom/google/javascript/jscomp/RewriteAsyncIteration$LexicalContext;Lcom/google/javascript/jscomp/NodeTraversal;)V
? ? ? convertAwaitOfAsyncGenerator h(Lcom/google/javascript/jscomp/RewriteAsyncIteration$LexicalContext;Lcom/google/javascript/rhino/Node;)V
? ? ? convertYieldOfAsyncGenerator
? ? ? convertReturnOfAsyncGenerator
e ? ? : isAsyncFunction
? ? ? replaceForAwaitOf
? ? ? ? ? *com/google/javascript/jscomp/NodeTraversal getCurrentScript $()Lcom/google/javascript/rhino/Node; ? ? ? ? ? >com/google/javascript/jscomp/parsing/parser/FeatureSet$Feature CONST_DECLARATIONS @Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;
? ? ? ? ? %com/google/javascript/jscomp/NodeUtil addFeatureToScript ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;Lcom/google/javascript/jscomp/AbstractCompiler;)V
@ ? ? : mustReplaceThisSuperArgs
? ? ? replaceThis ? arguments
e ? ? ? matchesName (Ljava/lang/String;)Z
? ? ? replaceArguments
? ? ? replaceSuper ?(Lcom/google/javascript/jscomp/RewriteAsyncIteration$LexicalContext;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V ? $jscomp.AsyncGeneratorWrapper
? ? ? createQName _(Lcom/google/javascript/rhino/StaticScope;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
? ? ? (createEmptyAsyncGeneratorWrapperArgument O(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/Node;
e ? ? ? getLastChild
e ? ? ? detach
e ? ? ? replaceWith ? ? ? ? ? 2com/google/javascript/jscomp/colors/StandardColors GENERATOR_ID -Lcom/google/javascript/jscomp/colors/ColorId;
? ? ? type ](Lcom/google/javascript/jscomp/colors/ColorId;)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;
? ? ?
createNewNode i(Lcom/google/javascript/rhino/Node;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
? ? ? createReturn F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
? ? ? createBlock G([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
e ? ? ? addChildToBack
e > setIsAsyncFunction
e > setIsGeneratorFunction
e ? srcrefTreeIfMissing
? reportChangeToChangeScope
e
: isAwait
e ? removeFirstChild await needs an expression
8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; *$jscomp.AsyncGeneratorWrapper$ActionRecord 4$jscomp.AsyncGeneratorWrapper$ActionEnum.AWAIT_VALUE
e ? addChildToFront ~ ! YIELD #Lcom/google/javascript/rhino/Token;
e#$% setToken &(Lcom/google/javascript/rhino/Token;)V
e'( : isYield
e*+ :
isYieldAll- 3$jscomp.AsyncGeneratorWrapper$ActionEnum.YIELD_STAR
?/0 ? newUndefinedNode2 4$jscomp.AsyncGeneratorWrapper$ActionEnum.YIELD_VALUE e456 YIELD_ALL 'Lcom/google/javascript/rhino/Node$Prop;
e89: putBooleanProp +(Lcom/google/javascript/rhino/Node$Prop;Z)V
e<= : isReturn ?@A makeConcatWithConstants (I)Ljava/lang/String; ? ? ? ?
eGH : hasParentJ &Cannot replace parentless for-await-of
eLM ? getParent
eOP : isLabel
eRST isSecondChildOf %(Lcom/google/javascript/rhino/Node;)Z
VWX !createJSCompMakeAsyncIteratorCall o(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/StaticScope;)Lcom/google/javascript/rhino/Node;
Z[\ createSingleVarNameDeclaration X(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node; ?^_`
TOP_OBJECT +Lcom/google/javascript/jscomp/colors/Color;
b ?c [(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/jscomp/AstFactory$Type;
efg
createName d(Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;i done ?kl` BOOLEAN
nop
createGetProp ?(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
rs ? createBreak
uvw createIf h(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
eyz : isValidAssignmentTarget
| ?} R(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/AstFactory$Type; value
??w createAssign
?? ?
exprResult
???T isNameDeclaration
e?? ?
getFirstChild
e?? : isName
e?? : isDestructuringLhs
e?? ? getOnlyChild? java/lang/AssertionError? unexpected for-await-of lhs
?? H
?[? 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
??? constructAwaitNextResult ?(Lcom/google/javascript/jscomp/RewriteAsyncIteration$LexicalContext;Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
??\
?? ? createEmpty
?? ? ensureBlock
??? createFor ?(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;
e?? ? cloneNode
??w createLabel
?? ? createOuterTry
e?? ? insertBefore
??? createOuterCatch H(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
??? createOuterFinally(Lcom/google/javascript/jscomp/RewriteAsyncIteration$LexicalContext;Lcom/google/javascript/jscomp/AstFactory$Type;Lcom/google/javascript/jscomp/AstFactory$Type;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
??? createTryCatchFinally ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
?? ? reportChangeToEnclosingScope? error
??? createNameWithUnknownType
??\ createStringKey
?? ? createObjectLit
??w createCatch
?? ? createNot
??w createAnd? return ???` UNKNOWN? call
??? createGetPropWithUnknownType X(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
??? createYield t(Lcom/google/javascript/jscomp/AstFactory$Type;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node; ??? ?
PROMISE_ID
??? createAwait
?? ? createThrow
??w createTryFinally
e?? : isBlock
e?? ? srcref? next
? createCallWithUnknownType
e : isThis
>
checkArgument
)Cannot prepend declarations to root scope
? @ thisSuperArgsContext ILcom/google/javascript/jscomp/RewriteAsyncIteration$ThisSuperArgsContext; Gcom/google/javascript/jscomp/RewriteAsyncIteration$ThisSuperArgsContext uniqueId Ljava/lang/String; @ &(Ljava/lang/String;)Ljava/lang/String;
createThis R(Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node; `
thisNodeToAdd
e"#$ getString ()Ljava/lang/String;
&