com.google.javascript.jscomp.NodeUtil.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
'com/google/javascript/jscomp/NodeUtil$3 ,$SwitchMap$com$google$javascript$rhino$Token [I
com/google/javascript/rhino/Node getToken %()Lcom/google/javascript/rhino/Token;
!com/google/javascript/rhino/Token ordinal ()I %com/google/javascript/jscomp/base/Tri FALSE 'Lcom/google/javascript/jscomp/base/Tri; ! TRUE
# $ % hasOneChild ()Z
' ( ) getOnlyChild $()Lcom/google/javascript/rhino/Node;
+ , % isTemplateLitString
. / 0 1 2 $com/google/common/base/Preconditions
checkState (ZLjava/lang/Object;)V
4 5 6 getCookedString ()Ljava/lang/String;
8 9 : ; % java/lang/String isEmpty
= > ?
forBoolean *(Z)Lcom/google/javascript/jscomp/base/Tri; A B UNKNOWN
D E 6 getString
8 G H length
J K L getDouble ()D
N O P getBigInt ()Ljava/math/BigInteger; R S T U V java/math/BigInteger ZERO Ljava/math/BigInteger;
R X Y Z equals (Ljava/lang/Object;)Z
\ ] ) getLastChild
_ ` a b c %com/google/javascript/jscomp/NodeUtil getBooleanValue K(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/base/Tri;
e f g not )()Lcom/google/javascript/jscomp/base/Tri;
8 i j hashCode l undefined
8 X o NaN q Infinity
_ s t u getNumberValue 6(Lcom/google/javascript/rhino/Node;)Ljava/lang/Double;
w x y z % java/lang/Double isNaN
w | } L doubleValue
? ? ? ? /com/google/javascript/jscomp/base/JSCompDoubles isEitherZero (D)Z
_ ? ? ? getBigIntValue :(Lcom/google/javascript/rhino/Node;)Ljava/math/BigInteger;
? ? )
getFirstChild
? ? ? and P(Lcom/google/javascript/jscomp/base/Tri;)Lcom/google/javascript/jscomp/base/Tri;
? ? ? or
? ? ) getSecondChild
X ? java/lang/StringBuilder
?
? ? % isTemplateLitSub
_ ? ? ? getStringValue 6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
? ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
? ? ) getNext
? ? ? 6 toString
? ? ? ? ? %com/google/javascript/rhino/dtoa/DToA numberToString (D)Ljava/lang/String; ? ? ? makeConcatWithConstants *(Ljava/math/BigInteger;)Ljava/lang/String; ? false ? true ? null
? ? ? toBoolean (Z)Z
_ ? ? ?
arrayToString ? [object Object]
_ ? ? ? isNullOrUndefined %(Lcom/google/javascript/rhino/Node;)Z
9 ?
_ ? ? ? getArrayElementStringValue
? ? ? ? (C)Ljava/lang/StringBuilder;
_ ? ? ? doGetNumberValue 7(Lcom/google/javascript/rhino/Node;Z)Ljava/lang/Double;
w ? ? ? valueOf (D)Ljava/lang/Double;? ?
? ? ? ecmascriptToInt32 (D)I ? ? 0$SwitchMap$com$google$javascript$jscomp$base$Tri
? java/lang/AssertionError
?
_ ? ? ? getStringNumberValue &(Ljava/lang/String;)Ljava/lang/Double; ?
8 ? ? ? contains (Ljava/lang/CharSequence;)Z
_ ? ? ? trimJsWhiteSpace &(Ljava/lang/String;)Ljava/lang/String;
8 ? ? ? charAt (I)C
8 ? ? ? substring (I)Ljava/lang/String;
? ? java/lang/Integer parseInt (Ljava/lang/String;I)I java/lang/NumberFormatException infinity -infinity
+infinity
w
parseDouble (Ljava/lang/String;)D
? isAtLeastIntegerPrecision
? isExactInt64
R ? (J)Ljava/math/BigInteger; R V ONE
_ getStringBigIntValue *(Ljava/lang/String;)Ljava/math/BigInteger;
R ! P negate
R# f P
R% & (Ljava/lang/String;I)V
R( ) (Ljava/lang/String;)V
+,-./ %com/google/javascript/rhino/TokenUtil isStrWhiteSpaceChar *(I)Lcom/google/javascript/jscomp/base/Tri;
81 ?2 (II)Ljava/lang/String;
_456 getNameNode F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
89 6 getQualifiedName
;<