com.google.javascript.jscomp.InstrumentAsyncContext.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!
???? 7G
java/lang/Object ()V java/util/ArrayDeque
3com/google/javascript/jscomp/InstrumentAsyncContext tryFunctionStack Ljava/util/Deque; java/util/LinkedHashSet
needsInstrumentation Ljava/util/Set; alreadyInstrumented hasSuper compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
" # $ % & -com/google/javascript/jscomp/AbstractCompiler createAstFactory +()Lcom/google/javascript/jscomp/AstFactory; ( ) *
astFactory )Lcom/google/javascript/jscomp/AstFactory; , - . shouldInstrumentAwait Z
0 1 2 3 4 *com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
6 7 8 9 : com/google/javascript/rhino/Node isTry ()Z
6 < = :
isFunction ? @ A B C java/util/Deque push (Ljava/lang/Object;)V
6 E F : isYield
6 H I : isForAwaitOf
6 K L : isAwait
6 N O : isName
6 Q R S getString ()Ljava/lang/String; U $jscomp$swapContext
W X Y Z [ java/lang/String equals (Ljava/lang/Object;)Z
0 ] ^ _ getEnclosingFunction $()Lcom/google/javascript/rhino/Node; a b c d [
java/util/Set add
6 f g : isSuper
i j k isReentrance %(Lcom/google/javascript/rhino/Node;)Z
m n o instrumentReentrance s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V ? q r s peek ()Ljava/lang/Object;
X ? v w s pop a y z [ contains
6 | } : isGeneratorFunction
? ?
instrumentTry %(Lcom/google/javascript/rhino/Node;)V
? ? ? instrumentGeneratorFunction Q(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
6 ? ? : isAsyncFunction
? ? ? ? ? $com/google/common/base/Preconditions
checkState (Z)V
? ? ? instrumentAsyncFunction
6 ? ? : isReturn
? ? o instrumentForAwaitOf
? ? ? ? _ com/google/javascript/rhino/IR empty
6 ? ? _
getFirstChild
? ? _
createExit
6 ? ? ? srcrefTreeIfMissing F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
6 ? ? ? addChildToBack
6 ? ? ? replaceWith
? ? ?
? ? ?
createReenter
6 ? ? _ getSecondChild
6 ? ? _ getLastChild
6 ? ? : isBlock
? ? _
? ? ? ?
exprResult
6 ? ? ? addChildToFront
? ? ? _ block
6 ? ? ? insertAfter
6 ? ? : hasChildren
6 ? ? _ getNext
? ? ? instrumentGeneratorMethod
6 ? ? ? setIsGeneratorFunction
6 ? ? _ detach
? ? ? ? ? 'com/google/javascript/jscomp/AstFactory type R(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/AstFactory$Type;
? ? ? ? createEmptyGeneratorFunction R(Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
6 ? ? ? setIsAsyncFunction
? ? ? addFinallyExit
? ? _ createEnterExit
? ? ? ? createCallWithUnknownType i(Lcom/google/javascript/rhino/Node;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
? ? ? ?
returnNode
? ? ? ? G([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node; ? Ucom/google/javascript/jscomp/ThisAndArgumentsReferenceUpdater$ThisAndArgumentsContext
" ? ? ? getUniqueIdSupplier 1()Lcom/google/javascript/jscomp/UniqueIdSupplier;
0 ? ? ? getInput .()Lcom/google/javascript/jscomp/CompilerInput;
-com/google/javascript/jscomp/UniqueIdSupplier getUniqueId @(Lcom/google/javascript/jscomp/CompilerInput;)Ljava/lang/String;
? 8(Lcom/google/javascript/rhino/Node;ZLjava/lang/String;)V =com/google/javascript/jscomp/ThisAndArgumentsReferenceUpdater
?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/ThisAndArgumentsReferenceUpdater$ThisAndArgumentsContext;Lcom/google/javascript/jscomp/AstFactory;)V
0 _ getCurrentScript
? addVarDeclarations }(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/AstFactory;Lcom/google/javascript/rhino/Node;)V
" ? reportChangeToChangeScope
6 _ getParent
6 : isMemberFunctionDef !" makeConcatWithConstants 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
6$% _ cloneTree
?'() createNameWithUnknownType 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;+ Dcom/google/javascript/jscomp/InstrumentAsyncContext$ArgumentsRenamer
*- . 8(Lcom/google/javascript/jscomp/InstrumentAsyncContext;)V *012
argumentsName Ljava/lang/String;
?45 _ createArgumentsReference
?789
createName d(Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
?;<