com.google.javascript.jscomp.SubstituteEs6Syntax.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 ?
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback ()V
0com/google/javascript/jscomp/SubstituteEs6Syntax objectLiteralShorthandWasAdded Z compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
*com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V 2com/google/javascript/jscomp/SubstituteEs6Syntax$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
! " com/google/javascript/rhino/Node getToken %()Lcom/google/javascript/rhino/Token;
$ % & ' ( !com/google/javascript/rhino/Token ordinal ()I
* + , isArrowFunction ()Z
. / 0 getLastChild $()Lcom/google/javascript/rhino/Node;
2 3 4 maybeSimplifyArrowFunctionBody G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
6 7 0
getFirstChild
9 : , isName
< = > getString ()Ljava/lang/String;
@ A B C D java/lang/String equals (Ljava/lang/Object;)Z
F G H setShorthandProperty (Z)V J K L M N >com/google/javascript/jscomp/parsing/parser/FeatureSet$Feature EXTENDED_OBJECT_LITERALS @Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;
P Q R S T %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
V W X Y H $com/google/common/base/Preconditions
checkArgument
[ \ , isBlock
^ _ , hasOneChild
a b , isReturn
d e 0 removeFirstChild g undefined
i j k l m com/google/javascript/rhino/IR name 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
o p q replaceWith %(Lcom/google/javascript/rhino/Node;)V
s t u v q -com/google/javascript/jscomp/AbstractCompiler reportChangeToEnclosingScope x )com/google/javascript/jscomp/CompilerPass 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this 2Lcom/google/javascript/jscomp/SubstituteEs6Syntax; MethodParameters process externs "Lcom/google/javascript/rhino/Node; root visit s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V t ,Lcom/google/javascript/jscomp/NodeTraversal; n parent
StackMapTable
arrowFunction body returnValue replacement
SourceFile SubstituteEs6Syntax.java NestMembers InnerClasses AbstractPostOrderCallback ? 3com/google/javascript/jscomp/NodeTraversal$Callback Callback ? 6com/google/javascript/jscomp/parsing/parser/FeatureSet Feature w y z O *? *? *+?
? { ! " | } ~ ? 4 z L
*?
,*? ? {
&