
com.google.javascript.jscomp.FunctionRewriter.class Maven / Gradle / Ivy
The newest version!
???? 3 ?
u v
0 w x
y z
y {
y |
y }
y
~
? ? ?
?
? ? ? ? ? ? ? ? ? ? ? ? ?
?
? ? ? ? ?
? ?
?
? ?
? ?
? ? ?
# w
0 ?
# ? ?
# ?
# ?
?
? ?
? ?
? ?
? ?
? ? ? ? ? InnerClasses
SetterReducer
GetterReducer ReturnConstantReducer IdentityReducer ? SingleReturnStatementReducer EmptyFunctionReducer Reducer ReductionGatherer Reduction compiler /Lcom/google/javascript/jscomp/AbstractCompiler; SAVINGS_THRESHOLD I
ConstantValue 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this /Lcom/google/javascript/jscomp/FunctionRewriter; process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V reduction 9Lcom/google/javascript/jscomp/FunctionRewriter$Reduction;
addingRoot "Lcom/google/javascript/rhino/Node;
reductions Ljava/util/Collection;
helperCode helperCodeCost savings reducer 7Lcom/google/javascript/jscomp/FunctionRewriter$Reducer; externs root reducers Ljava/util/List; reductionMap $Lcom/google/common/collect/Multimap; LocalVariableTypeTable QLjava/util/Collection; ILjava/util/List; ?Lcom/google/common/collect/Multimap;
StackMapTable ? ? ? ? ? ? ? parseHelperCode [(Lcom/google/javascript/jscomp/FunctionRewriter$Reducer;)Lcom/google/javascript/rhino/Node; isReduceableFunctionExpression %(Lcom/google/javascript/rhino/Node;)Z n
access$500 `(Lcom/google/javascript/jscomp/FunctionRewriter;)Lcom/google/javascript/jscomp/AbstractCompiler; x0
access$600
SourceFile FunctionRewriter.java l m > ? D ? Ccom/google/javascript/jscomp/FunctionRewriter$ReturnConstantReducer D ? ;com/google/javascript/jscomp/FunctionRewriter$GetterReducer ;com/google/javascript/jscomp/FunctionRewriter$SetterReducer Bcom/google/javascript/jscomp/FunctionRewriter$EmptyFunctionReducer =com/google/javascript/jscomp/FunctionRewriter$IdentityReducer ? ? ? ? ? ? ?com/google/javascript/jscomp/FunctionRewriter$ReductionGatherer D ? ? ? ? ? ? ? ? ? ? ? ? 5com/google/javascript/jscomp/FunctionRewriter$Reducer ? ? ? ? ? ? j k ? ? ? 7com/google/javascript/jscomp/FunctionRewriter$Reduction ? ? -com/google/javascript/jscomp/FunctionRewriter ? ? ? ? ? ? ? ? ? ? java/lang/StringBuilder ? ? ? ? :helper ? ? ? ? ? ? ? ? ? ? ? ? m ? ? ? m java/lang/Object )com/google/javascript/jscomp/CompilerPass /com/google/javascript/jscomp/FunctionRewriter$1 Jcom/google/javascript/jscomp/FunctionRewriter$SingleReturnStatementReducer java/util/List "com/google/common/collect/Multimap java/util/Iterator java/util/Collection com/google/javascript/rhino/Node ()V 4(Lcom/google/javascript/jscomp/FunctionRewriter$1;)V 'com/google/common/collect/ImmutableList of ?(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; &com/google/common/collect/HashMultimap create *()Lcom/google/common/collect/HashMultimap; f(Lcom/google/javascript/jscomp/FunctionRewriter;Ljava/util/List;Lcom/google/common/collect/Multimap;)V *com/google/javascript/jscomp/NodeTraversal traverseEs6 ? Callback ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; get *(Ljava/lang/Object;)Ljava/util/Collection; isEmpty 0com/google/javascript/jscomp/InlineCostEstimator getCost %(Lcom/google/javascript/rhino/Node;)I estimateSavings ()I apply -com/google/javascript/jscomp/AbstractCompiler getNodeForCodeInsertion K(Lcom/google/javascript/jscomp/JSModule;)Lcom/google/javascript/rhino/Node; addChildToFront %(Lcom/google/javascript/rhino/Node;)V reportCodeChange getClass ()Ljava/lang/Class; append -(Ljava/lang/Object;)Ljava/lang/StringBuilder; -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; getHelperSource parseSyntheticCode H(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/rhino/Node; removeFirstChild $()Lcom/google/javascript/rhino/Node; %com/google/javascript/jscomp/NodeUtil isFunctionExpression getParent
isGetOrSetKey 3com/google/javascript/jscomp/NodeTraversal$Callback 0 1 > ? @ A B C D E F F
*? *+? ? G 8 9 : H
I J
> ? K L F ?
? Y? ? Y? ? Y? ?
Y? ? Y?
? N? :*? ,? Y*-? ? -? :? ? ?? ? :? :? ? ???*? :? ???? 6 6
? :? ? ? ? :
? `6
???
`? B? :? ? ? ? :? ???*? ? :? !*? ? "??C? G b > , D 1 H D L b M m N w O z R ? S ? T ? W ? Z ? [ ? \ ? ] ? a ? b ? c ? d ? f ? g h j k H ?
?
M N ? M N ? O P m ? Q R ? ? S P ? x T A ? u U A
b ? V W
I J
X P
Y P , ? Z [ 1 ? \ ] ^ m ? Q _ , ? Z ` 1 ? \ a b M ? L c d e? - f g? h? e? "? e? ? i h h c d e ? j k F ? /*? ? #Y? $+? %? &'? (? )+? *? +M,?
,? ,? ? G s t " u H / I J / V W "
Y P b ? - h@ h
l m F T *? -? *? .? /? ? ? G y z y H n P b @ o p F / *? ? G 2 H q J r m F / *? ? G 2 H q P s t 3 Z 2 4
5
6
7
8 9
:
; <