com.google.javascript.jscomp.AstAnalyzer.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/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; -com/google/javascript/jscomp/AbstractCompiler (com/google/javascript/jscomp/AstAnalyzer compiler /Lcom/google/javascript/jscomp/AbstractCompiler; assumeGettersArePure Z
checkForStateChangeHelper &(Lcom/google/javascript/rhino/Node;Z)Z
! " com/google/javascript/rhino/Node isCall ()Z
$ % " isTaggedTemplateLit
' ( " isOptChainCall
* + ,
checkState (ZLjava/lang/Object;)V
. / " isNoSideEffectsCall
1 2 " isOnlyModifiesArgumentsCall
4 5 6 7 8 %com/google/javascript/jscomp/NodeUtil allArgsUnescapedLocal %(Lcom/google/javascript/rhino/Node;)Z
: ; <
getFirstChild $()Lcom/google/javascript/rhino/Node;
> ? " isName
A B C getString ()Ljava/lang/String; E F G %BUILTIN_FUNCTIONS_WITHOUT_SIDEEFFECTS (Lcom/google/common/collect/ImmutableSet;
I J K L M &com/google/common/collect/ImmutableSet contains (Ljava/lang/Object;)Z
O P " isGetProp
R S " isOptChainGetProp
U V " hasOneChild X Y G "OBJECT_METHODS_WITHOUT_SIDEEFFECTS
[ \ " isOnlyModifiesThisCall
4 ^ _ 8 evaluatesToLocalValue
a b " isQualifiedName d Math
f g h i M java/lang/String equals
f k l m hashCode ()I o abs q acos s acosh u asin w asinh y atan { atanh } atan2 cbrt ? ceil ? cos ? cosh ? exp ? expm1 ? floor ? hypot ? log ? log10 ? log1p ? log2 ? max ? min ? pow ? round ? sign ? sin ? sinh ? sqrt ? tan ? tanh ? trunc ? random
? ? " hasRegExpGlobalReferences
? ? " isRegExp ? ? G REGEXP_METHODS
? ? 8 isTypedAsString
? ? < getNext
? ? " isStringLit ? ? G STRING_REGEXP_METHODS ? replace
? ? ?
getOptions 0()Lcom/google/javascript/jscomp/CompilerOptions; ? ? ? ? ,com/google/javascript/jscomp/CompilerOptions useTypesForLocalOptimization
? ? ? getColor -()Lcom/google/javascript/jscomp/colors/Color; ? ? ? ? ? 2com/google/javascript/jscomp/colors/StandardColors STRING +Lcom/google/javascript/jscomp/colors/Color;
g
? ? ? getJSType -()Lcom/google/javascript/rhino/jstype/JSType;
? ? ? getTypeRegistry 5()Lcom/google/javascript/rhino/jstype/JSTypeRegistry; ? ? ? ? ? /com/google/javascript/rhino/jstype/JSTypeNative STRING_TYPE 1Lcom/google/javascript/rhino/jstype/JSTypeNative;
? ? ? ? ? 1com/google/javascript/rhino/jstype/JSTypeRegistry
getNativeType ^(Lcom/google/javascript/rhino/jstype/JSTypeNative;)Lcom/google/javascript/rhino/jstype/JSType;
? g ? )com/google/javascript/rhino/jstype/JSType
? ? < getParent ? ? ? ? ? *com/google/javascript/jscomp/AstAnalyzer$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
? ? ? getToken %()Lcom/google/javascript/rhino/Token;
? ? m !com/google/javascript/rhino/Token ordinal
4 8 iteratesImpureIterable
" hasChildren
4
8 isFunctionDeclaration
" isClassMembers
" isObjectPattern
< getLastChild
" isObjectRest
" isStaticMember
< getSecondChild
4 8 isClassDeclaration
!" 8 constructorCallHasSideEffects
$% 8 functionCallHasSideEffects
'() getPropertyKind U(Ljava/lang/String;)Lcom/google/javascript/jscomp/AccessorSummary$PropertyAccessKind;
+,-. " ?com/google/javascript/jscomp/AccessorSummary$PropertyAccessKind hasGetter
+01 " hasGetterOrSetter
434 8 isSimpleOperator
67 " isGetElem
49: 8 isAssignmentOp
4<= 8 isNormalGet
4?@ isLiteralValue
BC " isNewE Expected NEW node, got %s
GHI
checkArgument ((ZLjava/lang/String;Ljava/lang/Object;)V KL G !CONSTRUCTORS_WITHOUT_SIDE_EFFECTS +NOP NORMAL ALcom/google/javascript/jscomp/AccessorSummary$PropertyAccessKind;
RST getAccessorSummary 0()Lcom/google/javascript/jscomp/AccessorSummary;
VWXY) ,com/google/javascript/jscomp/AccessorSummary getKind[ Array] Date_ Errora Objectc RegExpe XMLHttpRequest
Ighi of ?(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;k Stringm Numbero BigIntq Booleans toStringu valueOf
Iwhx N(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;z test| exec~ match? search? split
I?h? r(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; Signature ; 3(Lcom/google/javascript/jscomp/AbstractCompiler;Z)V Code LineNumberTable LocalVariableTable this *Lcom/google/javascript/jscomp/AstAnalyzer; MethodParameters mayEffectMutableState n "Lcom/google/javascript/rhino/Node; mayHaveSideEffects name Ljava/lang/String; method param callNode callee
StackMapTable nativeStringType +Lcom/google/javascript/rhino/jstype/JSType; color type? )com/google/javascript/jscomp/colors/Color member current assignTarget c checkForNewObjects parent newNode nameNode nodeTypeMayHaveSideEffects
SourceFile AstAnalyzer.java NestMembers InnerClasses PropertyAccessKind ! L G ? ? F G ? ? Y G ? ? ? G ? ? ? G ? ?
? ? _ *? *+? ?
? *? ? ? L M N O? ?? ? ? 8 ? ; *+? ? ? W? ?? ?? ? ? ? 8 ? ; *+? ? ? _? ?? ?? ? ? % 8 ? 3 ?+? ? +? #?
+? &? ? +? )+? -? ?+? 0? +? 3? ?+? 9M,? =? ,? @N? D-? H? ???,? N?
,? Q?y+? T? ? W,? @? H? ?+? Z? ,? 9? ]? ?,? 9? =??,? `??,? 9? @c? e??,? @N6-? j? ??? ? xr
?? ? ? ? ?D ?d D ?R T ?X d ?? ? ?? ? -?? -?? 7 -נ U .~? ? .? ? .?? ? 2?n 4 5ݽ ? 5ސ ? 5? ? 64? ???? (??q F?? t?? dDŽA ??$ ???? ?%?c %? $z?? t?=? ?-n? e??6??-p? e??6??-r? e??6??-t? e??6??-v? e??6??-x? e??6??-z? e??6??-|? e??6??-~? e?w6?p-?? e?g 6?`-?? e?W
6?P-?? e?G6?@-?? e?76?0-?? e?'
6? -?? e?6?-?? e?6? -?? e? ?6? ?-?? e? ?6? ?-?? e? ?6? ?-?? e? ?6? ?-?? e? ?6? ?-?? e? ?6? ?-?? e? ?6? ?-?? e? ?6? ?-?? e? w6? p-?? e? g6? `-?? e? W6? P-?? e? G6? @-?? e? 76? 0-?? e? '6? -?? e? 6? -?? e? 6? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??+? T? ? ?*? ? ?? y,? 9? ?? ? ?,? @? H? ?*,? 9? ?? U,? @N,? ?:? E? ?? ? ?-? H? 3?? ?? )?-? e? ? ?? ?? ? ?? ?-? H? ?? ? ? ) k l k n % o ' r 5 s 7 v <