com.google.javascript.jscomp.FunctionRewriter$IdentityReducer.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 N =com/google/javascript/jscomp/FunctionRewriter$IdentityReducer
Jcom/google/javascript/jscomp/FunctionRewriter$SingleReturnStatementReducer ()V
vfunction JSCompiler_identityFn() { return function(JSCompiler_identityFn_value) {return JSCompiler_identityFn_value}}
-com/google/javascript/jscomp/FunctionRewriter isReduceableFunctionExpression %(Lcom/google/javascript/rhino/Node;)Z
isIdentityFunction JSCompiler_identityFn
buildCallNode z(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
com/google/javascript/rhino/Node getSecondChild $()Lcom/google/javascript/rhino/Node;
! "
getFirstChild
$ % & isName ()Z
( ) * maybeGetSingleReturnRValue F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
, - . getString ()Ljava/lang/String;
0 1 2 3 4 java/lang/String equals (Ljava/lang/Object;)Z FACTORY_METHOD_NAME Ljava/lang/String;
ConstantValue
HELPER_SOURCE Code LineNumberTable LocalVariableTable this ?Lcom/google/javascript/jscomp/FunctionRewriter$IdentityReducer; getHelperSource reduce node "Lcom/google/javascript/rhino/Node;
StackMapTable MethodParameters functionNode argList paramNode value
SourceFile FunctionRewriter.java NestHost InnerClasses IdentityReducer SingleReturnStatementReducer 5 6 7 8 6 7 9 / *? ? : * ; <