com.google.javascript.jscomp.PeepholeCollectPropertyAssignments.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
9com/google/javascript/jscomp/AbstractPeepholeOptimization ()V
com/google/javascript/rhino/Node isScript ()Z
isBlock
getFirstChild $()Lcom/google/javascript/rhino/Node;
%com/google/javascript/jscomp/NodeUtil isNameDeclaration %(Lcom/google/javascript/rhino/Node;)Z
isExprAssign
getNext
! " # $ ?com/google/javascript/jscomp/PeepholeCollectPropertyAssignments isPropertyAssignmentToName
& ' hasOneChild
) * + , - $com/google/common/base/Preconditions
checkState (Z)V
! / 0 1 getName F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
3 4 isName
! 6 7 1 getValue
! 9 : isInterestingValue
< = > getString ()Ljava/lang/String;
! @ A B collectProperty Y(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Z
! D E F reportChangeToEnclosingScope %(Lcom/google/javascript/rhino/Node;)V
H I getFirstFirstChild K java/lang/IllegalStateException
J
N O getLastChild
Q R isObjectLit
T U
isArrayLit
W X isNormalGet
Z [ \ ] ^ java/lang/String equals (Ljava/lang/Object;)Z
! ` a mayHaveSideEffects
c d canBeSideEffected
f g h isLiteralValue &(Lcom/google/javascript/rhino/Node;Z)Z
! j k l mightContainForwardReference 7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Z n o p q r Acom/google/javascript/jscomp/PeepholeCollectPropertyAssignments$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
t u v getToken %()Lcom/google/javascript/rhino/Token;
x y z { | !com/google/javascript/rhino/Token ordinal ()I
! ~ ? collectArrayProperty G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
! ? ? ? collectObjectProperty
? ? |
getChildCount
? ? isGetElem
? ? isNumber
? ? ? getDouble ()D
? ? ? ? ? java/lang/Double
isInfinite (D)ZA?????
? ? ? ? com/google/javascript/rhino/IR empty
? ? 1 srcref
? ? F addChildToBack
? ? detach
? ? ? getChildAtIndex %(I)Lcom/google/javascript/rhino/Node;
? ? isEmpty
? ? F replaceWith
? ? isGetProp
) ? , ? (ZLjava/lang/Object;)V
! ? ? ? getSideEffectFreeStringValue 6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
? ? isStringLit
? ? isStringKey
? ? isMemberFunctionDef
? ? isGetterDef
? ? isSetterDef
? ? ? ? stringKey 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
? ? 1 srcrefIfMissing
? ? setQuotedStringKey
! ? ? F
deleteNode Code LineNumberTable LocalVariableTable this ALcom/google/javascript/jscomp/PeepholeCollectPropertyAssignments; optimizeSubtree name "Lcom/google/javascript/rhino/Node; value propertyCandidate child subtree codeChanged Z
StackMapTable MethodParameters n expr lhs obj Ljava/lang/String; rhs emptyNode currentValue arrayLiteral
assignment sizeOfArrayAtStart I maxIndexAssigned property dindex D index propertyName isCurrentValueSideEffect isNewValueSideEffect currentPropertyName currentProperty
objectLiteral existingProperty newProperty newValue node varName
SourceFile 'PeepholeCollectPropertyAssignments.java NestMembers InnerClasses 0 !
? / *? ? ? ? ? ? ? 1 ? ? ?+? ? +?
? +?=+? N-? y-? ?
-? ? ? `-? ? ? ? S-? %? (-? .:? 2? ? ;-? 5:? 0? 8? ? %-? Y:? *? ;? ?? ? =???-? N???? *+? C+? ? b # $ ' + , - ) . , 0 6 2 9 5 @ 6 F 7 N 9 Q ; W <