com.google.javascript.jscomp.Es6RewriteScriptsToModules.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
Ccom/google/javascript/jscomp/NodeTraversal$AbstractPreOrderCallback ()V
7com/google/javascript/jscomp/Es6RewriteScriptsToModules compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
.com/google/javascript/jscomp/Es6RewriteModules isEs6ModuleRoot %(Lcom/google/javascript/rhino/Node;)Z com/google/javascript/rhino/Node !com/google/javascript/rhino/Token MODULE_BODY #Lcom/google/javascript/rhino/Token;
&(Lcom/google/javascript/rhino/Token;)V
! srcref F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
# $ % removeChildren $()Lcom/google/javascript/rhino/Node;
' ( ) addChildrenToBack %(Lcom/google/javascript/rhino/Node;)V
+ , ) addChildToBack
. / 0 1 ) -com/google/javascript/jscomp/AbstractCompiler reportChangeToChangeScope
3 4 %
getFirstChild
6 7 8 isScript ()Z
: ; < = > $com/google/common/base/Preconditions
checkArgument (Z)V
@ A B C D *com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
F G % getNext
I J K
getInputId '()Lcom/google/javascript/rhino/InputId;
. M N O getInput S(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput;
Q R S T U *com/google/javascript/jscomp/CompilerInput getJsModuleType 9()Lcom/google/javascript/jscomp/CompilerInput$ModuleType; W X Y Z [ 5com/google/javascript/jscomp/CompilerInput$ModuleType IMPORTED_SCRIPT 7Lcom/google/javascript/jscomp/CompilerInput$ModuleType;
] ^ ) forceToEs6Module ` )com/google/javascript/jscomp/CompilerPass 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this 9Lcom/google/javascript/jscomp/Es6RewriteScriptsToModules; MethodParameters root "Lcom/google/javascript/rhino/Node;
moduleNode
StackMapTable process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V file externs shouldTraverse s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
moduleType
nodeTraversal ,Lcom/google/javascript/jscomp/NodeTraversal; n parent
SourceFile Es6RewriteScriptsToModules.java InnerClasses AbstractPreOrderCallback | 3com/google/javascript/jscomp/NodeTraversal$Callback Callback
ModuleType 1 _ a b F
*? *+? ? c ! " # d
e f
g ^ ) b ? -+?
? ?? Y? ? +? M,+? "? &+,? **? +? -? c * + - . / $ 0 , 1 d - e f - h i j i k g h l m b ? ",? 2N-? -? 5? 9*? -*? ?-? EN??? c 5 6 7 5 ! 9 d * n i " e f " o i " h i k ? ? g o h p q b ? &,? 5? *? ,? H? L? P:? V? *,? \? c = > @ A $ E d 4
r [ &