com.google.javascript.jscomp.GlobalNamespace.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?
,com/google/javascript/jscomp/GlobalNamespace ?(Lcom/google/javascript/jscomp/diagnostic/LogFile;Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
java/lang/Object ()V
com/google/javascript/rhino/Node
com/google/javascript/rhino/IR root G([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
globalRoot "Lcom/google/javascript/rhino/Node; java/util/LinkedHashMap
spreadSiblingCache Ljava/util/LinkedHashMap; ! " generated Z $ java/util/ArrayList
# ' ( ) globalNames Ljava/util/List; + , - nameMap Ljava/util/Map;
/ 0 1 2 3 (com/google/common/collect/HashBasedTable create ,()Lcom/google/common/collect/HashBasedTable; 5 6 7 nameMapByModule !Lcom/google/common/collect/Table; 9 : ; test ()Ljava/util/function/Predicate; = > ? shouldTraverseScript Ljava/util/function/Predicate; A B C decisionsLog 1Lcom/google/javascript/jscomp/diagnostic/LogFile; E F G compiler /Lcom/google/javascript/jscomp/AbstractCompiler; I J externsRoot L
N O P Q R -com/google/javascript/jscomp/AbstractCompiler
getOptions 0()Lcom/google/javascript/jscomp/CompilerOptions;
T U V W X ,com/google/javascript/jscomp/CompilerOptions #getAssumeStaticInheritanceIsNotUsed ()Z Z [ " enableImplicitlyAliasedValues
] ^ _ getParent $()Lcom/google/javascript/rhino/Node;
a b c
getTopVarName &(Ljava/lang/String;)Ljava/lang/String;
e f g h i "com/google/javascript/jscomp/Scope getVar >(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar; k com/google/javascript/jscomp/Var m n o p q
java/util/Map get &(Ljava/lang/Object;)Ljava/lang/Object; s 1com/google/javascript/jscomp/GlobalNamespace$Name u v w x y 5com/google/javascript/jscomp/GlobalNamespace$NameProp IS_PROVIDED 7Lcom/google/javascript/jscomp/GlobalNamespace$NameProp;
r { | } getBooleanProperty :(Lcom/google/javascript/jscomp/GlobalNamespace$NameProp;)Z
j ? X isLocal
j ? ? _ getScopeRoot
? ? ?
getOwnSlot G(Ljava/lang/String;)Lcom/google/javascript/jscomp/GlobalNamespace$Name;
? ? ensureGenerated
r ? ? ? getRefs ()Ljava/util/Collection;
? ? ? ? ? java/util/Collections unmodifiableCollection .(Ljava/util/Collection;)Ljava/util/Collection;
? ? ? getNameIndex ()Ljava/util/Map; m ? ? ? values
? ? process ? Acom/google/javascript/jscomp/GlobalNamespace$BuildGlobalNamespace
? ? ? 1(Lcom/google/javascript/jscomp/GlobalNamespace;)V ? ? ? ? ?
java/util/Set iterator ()Ljava/util/Iterator; ? ? ? ? X java/util/Iterator hasNext ? ? ? ? next ()Ljava/lang/Object; ? 6com/google/javascript/jscomp/GlobalNamespace$AstChange ? ? ? node
? ? X isQualifiedName
? ? ? ? ? %com/google/javascript/jscomp/NodeUtil mayBeObjectLitKey %(Lcom/google/javascript/rhino/Node;)Z ? ? ? ? scope $Lcom/google/javascript/jscomp/Scope;
? ? ? scanFromNode ?(Lcom/google/javascript/jscomp/GlobalNamespace$BuildGlobalNamespace;Lcom/google/javascript/jscomp/Scope;Lcom/google/javascript/rhino/Node;)V
? ? X isName
? ? X isGetProp
? ? _ getPrevious
? ? X isObjectPattern
? ? _
getFirstChild
? ? X isStringKey
? ? _ getNext
? ? ? ? collect I(Lcom/google/javascript/jscomp/Scope;Lcom/google/javascript/rhino/Node;)V
? ? ? ? ? *com/google/javascript/jscomp/NodeTraversal builder 6()Lcom/google/javascript/jscomp/NodeTraversal$Builder;
? ? ? ? ? 2com/google/javascript/jscomp/NodeTraversal$Builder setCompiler e(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
? ? ? ? setCallback k(Lcom/google/javascript/jscomp/NodeTraversal$Callback;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
? ? X hasExternsRoot
? ? ? ?
traverseRoots G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
? ? ? ? traverse %(Lcom/google/javascript/rhino/Node;)V
? ? java/lang/String indexOf (I)I
? substring (II)Ljava/lang/String;
q $com/google/common/base/Preconditions checkNotNull
p com/google/common/collect/Table 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
X isObjectLit
checkState (ZLjava/lang/Object;)V
n java/lang/Boolean
X booleanValue
_ getLastChild
"# X isSpread
%&' valueOf (Z)Ljava/lang/Boolean;
)* put ,-./0 7com/google/javascript/jscomp/GlobalNamespace$SourceKind CODE 9Lcom/google/javascript/jscomp/GlobalNamespace$SourceKind;
r2 3 ?(Lcom/google/javascript/jscomp/GlobalNamespace;Ljava/lang/String;Lcom/google/javascript/jscomp/GlobalNamespace$Name;Lcom/google/javascript/jscomp/GlobalNamespace$SourceKind;)V
56 _ getGrandparent
89 X isExprResult
;<