com.google.javascript.jscomp.ClosureCodeRemoval.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 java/util/ArrayList
/com/google/javascript/jscomp/ClosureCodeRemoval abstractMethodAssignmentNodes Ljava/util/List; abstractMemberFunctionNodes assertionCalls compiler /Lcom/google/javascript/jscomp/AbstractCompiler; removeAbstractMethods Z removeAssertionCalls " Ccom/google/javascript/jscomp/ClosureCodeRemoval$FindAbstractMethods
! $ % 4(Lcom/google/javascript/jscomp/ClosureCodeRemoval;)V ' ( ) * + java/util/List add (Ljava/lang/Object;)Z - Bcom/google/javascript/jscomp/ClosureCodeRemoval$FindAssertionCalls
, $
0 1 2 3 4 1com/google/javascript/jscomp/CombinedCompilerPass traverse d(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Ljava/util/List;)V ' 6 7 8 iterator ()Ljava/util/Iterator; : ; < = > java/util/Iterator hasNext ()Z : @ A B next ()Ljava/lang/Object; D Ccom/google/javascript/jscomp/ClosureCodeRemoval$RemovableAssignment
C F G remove I com/google/javascript/rhino/Node
H K L M
getFirstChild $()Lcom/google/javascript/rhino/Node;
O P Q R S -com/google/javascript/jscomp/AbstractCompiler reportFunctionDeleted %(Lcom/google/javascript/rhino/Node;)V
H U V M getParent
H X Y M detach
O [ \ S reportChangeToEnclosingScope
H ^ _ > isExprResult
a b c d e %com/google/javascript/jscomp/NodeUtil markFunctionsDeleted T(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;)V
H g h M getSecondChild
a j k l newUndefinedNode F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
H n o S replaceWith
H q r l copyTypeFrom t )com/google/javascript/jscomp/CompilerPass ABSTRACT_METHOD_NAME Ljava/lang/String;
ConstantValue y goog.abstractMethod Signature WLjava/util/List; 4Ljava/util/List; 4(Lcom/google/javascript/jscomp/AbstractCompiler;ZZ)V Code LineNumberTable LocalVariableTable this 1Lcom/google/javascript/jscomp/ClosureCodeRemoval; MethodParameters process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
assignment ELcom/google/javascript/jscomp/ClosureCodeRemoval$RemovableAssignment; parent "Lcom/google/javascript/rhino/Node; memberFunction replacement firstArg call externs root passes LocalVariableTypeTable GLjava/util/List;
StackMapTable
SourceFile ClosureCodeRemoval.java NestMembers InnerClasses FindAbstractMethods FindAssertionCalls RemovableAssignment ? 3com/google/javascript/jscomp/NodeTraversal$Callback ? *com/google/javascript/jscomp/NodeTraversal Callback 0 s u v w x z { z | z | } ~ ? 5*? *? Y? ?
*? Y? ? *? Y? ? *+? *? *? ? " ? 9 = B % ? * ? / ? 4 ? ? * 5 ? ? 5 5 5 ?
? ? ~ ? 3? Y? N*? ? -? !Y*? #? & W*? ? -? ,Y*? .? & W*? ,-? /*?
? 5 :? 9 ? ? ? ? C:? E???*? ? 5 :? 9 ? 4? ? ? H:*? ? J? N? T:? WW*? ? Z???*? ? 5 :? 9 ? t? ? ? H:*? ? Z? T:? ]? ? WW*? ? `? ;? f:? ? i? m? ? W:? pW? m*? ? `???? z ? ? ? ? % ? 4 ? = ? ^ ? c ? f ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?&