com.google.javascript.jscomp.Es6RewriteArrowFunction.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
4com/google/javascript/jscomp/Es6RewriteArrowFunction compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
-com/google/javascript/jscomp/AbstractCompiler createAstFactory +()Lcom/google/javascript/jscomp/AstFactory;
astFactory )Lcom/google/javascript/jscomp/AstFactory; java/util/ArrayDeque
contextStack Ljava/util/Deque; ! transpiledFeatures 8Lcom/google/javascript/jscomp/parsing/parser/FeatureSet; # 3com/google/javascript/jscomp/NodeTraversal$Callback
% & ' ( ) 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
% + , - !maybeMarkFeaturesAsTranspiledAway ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;)V / 0 1 2 3 6com/google/javascript/jscomp/Es6RewriteArrowFunction$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
5 6 7 8 9 com/google/javascript/rhino/Node getToken %()Lcom/google/javascript/rhino/Token;
; < = > ? !com/google/javascript/rhino/Token ordinal ()I
A B C D E *com/google/javascript/jscomp/NodeTraversal getInput .()Lcom/google/javascript/jscomp/CompilerInput;
G H I contextForScript ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/CompilerInput;)Lcom/google/javascript/jscomp/ThisAndArgumentsReferenceUpdater$ThisAndArgumentsContext; K L M N O java/util/Deque push (Ljava/lang/Object;)V
5 Q R S isArrowFunction ()Z
U V I contextForFunction K X Y Z peek ()Ljava/lang/Object; \ Ucom/google/javascript/jscomp/ThisAndArgumentsReferenceUpdater$ThisAndArgumentsContext
^ _ ` a b $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; [ d e f
isConstructor Z
5 h i S isCall
5 k l m
getFirstChild $()Lcom/google/javascript/rhino/Node; [ o p q scopeBody "Lcom/google/javascript/rhino/Node;
s t u getEnclosingStatement h(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node; [ w x q lastSuperStatement
5 z { m getParent
} ~ t ? %com/google/javascript/jscomp/NodeUtil F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
? ? ? visitArrowFunction ?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/ThisAndArgumentsReferenceUpdater$ThisAndArgumentsContext;)V K ? ? Z pop
A ? ? m getCurrentScript
[ ? ? ? addVarDeclarations }(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/AstFactory;Lcom/google/javascript/rhino/Node;)V
5 ? ? ? setIsArrowFunction (Z)V
5 ? ? m getLastChild
5 ? ? S isBlock ? 7Arrow function body must be a block after normalization
^ ? ? ?
checkState (ZLjava/lang/Object;)V ? =com/google/javascript/jscomp/ThisAndArgumentsReferenceUpdater
? ? ? ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/ThisAndArgumentsReferenceUpdater$ThisAndArgumentsContext;Lcom/google/javascript/jscomp/AstFactory;)V
A ? ? ? traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
A ? ? reportCodeChange
} ? ? ? isEs6Constructor %(Lcom/google/javascript/rhino/Node;)Z
? ? ? getUniqueIdSupplier 1()Lcom/google/javascript/jscomp/UniqueIdSupplier;
? ? ? ? ? -com/google/javascript/jscomp/UniqueIdSupplier getUniqueId @(Lcom/google/javascript/jscomp/CompilerInput;)Ljava/lang/String;
[ ? ? 8(Lcom/google/javascript/rhino/Node;ZLjava/lang/String;)V ? ? ? ? ! 6com/google/javascript/jscomp/parsing/parser/FeatureSet BARE_MINIMUM ? ? ? ? ? >com/google/javascript/jscomp/parsing/parser/FeatureSet$Feature ARROW_FUNCTIONS @Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;
? ? ? ? with z(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;)Lcom/google/javascript/jscomp/parsing/parser/FeatureSet; ? )com/google/javascript/jscomp/CompilerPass Signature jLjava/util/Deque; 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this 6Lcom/google/javascript/jscomp/Es6RewriteArrowFunction; MethodParameters process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V externs root shouldTraverse s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z context WLcom/google/javascript/jscomp/ThisAndArgumentsReferenceUpdater$ThisAndArgumentsContext; t ,Lcom/google/javascript/jscomp/NodeTraversal; n parent
StackMapTable block visit s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V body updater ?Lcom/google/javascript/jscomp/ThisAndArgumentsReferenceUpdater; functionNode input ,Lcom/google/javascript/jscomp/CompilerInput;
scriptNode
SourceFile Es6RewriteArrowFunction.java NestMembers InnerClasses Callback ThisAndArgumentsContext Feature ! " ? ? ? ! ? ? a *? *+? *+?
? *? Y? ? ? ? $ % &