com.google.javascript.jscomp.ClosureOptimizePrimitives.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
6com/google/javascript/jscomp/ClosureOptimizePrimitives compiler /Lcom/google/javascript/jscomp/AbstractCompiler; canUseEs6Syntax Z Ecom/google/javascript/jscomp/ClosureOptimizePrimitives$FindPrimitives
;(Lcom/google/javascript/jscomp/ClosureOptimizePrimitives;)V
*com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
! com/google/javascript/rhino/Node getSecondChild $()Lcom/google/javascript/rhino/Node;
# $ % canOptimizeObjectCreate %(Lcom/google/javascript/rhino/Node;)Z
' ( ) * + com/google/javascript/rhino/IR objectlit G([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
- . / srcref F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
1 2 ! getNext
4 5 ! detach
7 8 9 : / %com/google/javascript/jscomp/NodeUtil getEnclosingScript
< = > addKeyValueToObjLit ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
@ A B replaceWith %(Lcom/google/javascript/rhino/Node;)V
D E F G B -com/google/javascript/jscomp/AbstractCompiler reportChangeToEnclosingScope
I J !
getFirstChild L JSCompiler_renameProperty
N O P matchesQualifiedName (Ljava/lang/String;)Z
' R S T name 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
V W X getOriginalQualifiedName ()Ljava/lang/String;
Z [ \ setOriginalName (Ljava/lang/String;)V ^ _ ` FREE_CALL 'Lcom/google/javascript/rhino/Node$Prop;
b c d putBooleanProp +(Lcom/google/javascript/rhino/Node$Prop;Z)V
f g % isOptimizableKey
i j % canOptimizeObjectCreateSet
' l m ! trueNode
o p q isNumber ()Z
s t q isStringLit v java/util/LinkedHashSet
u
y z X getString
| } ~ getDouble ()D
? ? ? ? ? %com/google/javascript/rhino/dtoa/DToA numberToString (D)Ljava/lang/String; ? ? ? ? ?
java/util/Set add (Ljava/lang/Object;)Z
? ? ! getPrevious ? ? ? DUPLICATE_SET_MEMBER -Lcom/google/javascript/jscomp/DiagnosticType; ? java/lang/String
? ? ? ? ? $com/google/javascript/jscomp/JSError make ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
D ? ? ? report )(Lcom/google/javascript/jscomp/JSError;)V
' ? ? T string
? ? ? setIsParenthesized (Z)V ? ? ? ? ? !com/google/javascript/rhino/Token
STRING_KEY #Lcom/google/javascript/rhino/Token;
? ? ? setToken &(Lcom/google/javascript/rhino/Token;)V
? ? setQuotedStringKey
' ? ? ? propdef h(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
? ? B addChildToBack
' ? ? ? computedProp ? ? ? ? ? >com/google/javascript/jscomp/parsing/parser/FeatureSet$Feature COMPUTED_PROPERTIES @Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;
7 ? ? ? addFeatureToScript ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;Lcom/google/javascript/jscomp/AbstractCompiler;)V
7 ? ? % isStatement ? JSC_DUPLICATE_SET_MEMBER ? $Found duplicate value ''{0}'' in set
? ? ? ? ? +com/google/javascript/jscomp/DiagnosticType warning S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; ? goog.object.create
? ? ? ? ? )com/google/javascript/rhino/QualifiedName of ?(Ljava/lang/String;)Lcom/google/javascript/rhino/QualifiedName; ? ? ? GOOG_OBJECT_CREATE +Lcom/google/javascript/rhino/QualifiedName; ? goog.object.createSet ? ? ? GOOG_OBJECT_CREATESET ? )com/google/javascript/jscomp/CompilerPass 3(Lcom/google/javascript/jscomp/AbstractCompiler;Z)V Code LineNumberTable LocalVariableTable this 8Lcom/google/javascript/jscomp/ClosureOptimizePrimitives; MethodParameters process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V externs "Lcom/google/javascript/rhino/Node; root pass GLcom/google/javascript/jscomp/ClosureOptimizePrimitives$FindPrimitives; processObjectCreateCall keyNode valueNode objNode callNode curParam
StackMapTable processRenamePropertyCall nameNode newTarget
firstParam processObjectCreateSetCall key Ljava/lang/String; keys Ljava/util/Set; LocalVariableTypeTable #Ljava/util/Set;
scriptNode
SourceFile ClosureOptimizePrimitives.java NestMembers InnerClasses FindPrimitives 3com/google/javascript/jscomp/NodeTraversal$Callback Callback %com/google/javascript/rhino/Node$Prop Prop 6com/google/javascript/jscomp/parsing/parser/FeatureSet Feature 0 ? ? ? ? ? ? ?
? ? Y *? *+? *?
? ? R S T U ? ? ? ? ? ? ? c ? Y*? N*? ,-? ? ? Y Z [ ? * ? ? ? ? ? ?
? ? ? ? ? ? B ? ? V+? M*,? "? K? ? &+? ,N,? .,:,? 0:? 0M? 3W? 3W*-+? 6? ;???+-? ?*? -? C? ? : _ `
a b c d &