com.google.javascript.jscomp.ClosureRewriteClass.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~
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback ()V
0com/google/javascript/jscomp/ClosureRewriteClass compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
*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 isCall ()Z
isGoogDefineClass %(Lcom/google/javascript/rhino/Node;)Z
validateUsage ! " # GOOG_CLASS_TARGET_INVALID -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;
- . / 0 1 -com/google/javascript/jscomp/AbstractCompiler report )(Lcom/google/javascript/jscomp/JSError;)V
3 4 5 maybeRewriteClassDefinition Q(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
7 8 9 getParent $()Lcom/google/javascript/rhino/Node; ; < = > ? 2com/google/javascript/jscomp/ClosureRewriteClass$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
A B C getToken %()Lcom/google/javascript/rhino/Token;
E F G H I !com/google/javascript/rhino/Token ordinal ()I
K L 9 getLastChild
N O isExprResult
Q R isContainedInGoogDefineClass
T U isObjectLit
W X isStringKey
Z [ \ ] %com/google/javascript/jscomp/NodeUtil isNameDeclaration
_ ` 9
getFirstChild
b 4 c ?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
Z e f isExprAssign
h i isQualifiedName
k l m extractClassDefinition ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ClosureRewriteClass$ClassDefinition;
o p 9 detach
r s t rewriteGoogDefineClass ?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/ClosureRewriteClass$ClassDefinition;)V
Z v w x getBestJSDocInfo K(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
Z z { | getArgumentForCallOrNew G(Lcom/google/javascript/rhino/Node;I)Lcom/google/javascript/rhino/Node;
~ isNull ? ? ? GOOG_MODULE_GET +Lcom/google/javascript/rhino/QualifiedName;
Z ? ? ? isCallTo P(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/QualifiedName;)Z ? ? # GOOG_CLASS_SUPER_CLASS_NOT_VALID
Z ? ? isNullOrUndefined ? Object
? ? ? matchesName (Ljava/lang/String;)Z
? ? ? validateObjLit G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
? ? I
getChildCount ? ? # GOOG_CLASS_UNEXPECTED_PARAMS ? constructor
? ? ? extractProperty X(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
? ? ? ? %com/google/javascript/rhino/JSDocInfo isInterface ? ? # #GOOG_CLASS_CONSTRUCTOR_ON_INTERFACE ? ? # GOOG_CLASS_CONSTRUCTOR_MISSING
? ?
isFunction ? ? # GOOG_CLASS_CONSTRUCTOR_NOT_VALID ?
? ? ? ? ? com/google/javascript/rhino/IR name 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
? ? ? srcref F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
? ? ? ? paramList G([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
? ? ? 9 block
? ? ? ? function ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
- ? ? ? reportChangeToChangeScope %(Lcom/google/javascript/rhino/Node;)V ? statics ? ? # GOOG_CLASS_STATICS_NOT_VALID
? ? ? ? objectlit
? ? ? maybeDetach ? @com/google/javascript/jscomp/ClosureRewriteClass$ClassDefinition ? Acom/google/javascript/jscomp/ClosureRewriteClass$MemberDefinition
? ? ? n(Lcom/google/javascript/rhino/JSDocInfo;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
? ? ? objectLitToList 4(Lcom/google/javascript/rhino/Node;)Ljava/util/List;
? ? ? ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/JSDocInfo;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/ClosureRewriteClass$MemberDefinition;Ljava/util/List;Ljava/util/List;Lcom/google/javascript/rhino/Node;)V
? ? hasParent
? ? ? reportErrorOnContext
? ? isMemberFunctionDef
? ? isComputedProp ? ? # 0GOOG_CLASS_ES6_COMPUTED_PROP_NAMES_NOT_SUPPORTED
? ? isArrowFunction ? ? # +GOOG_CLASS_ES6_ARROW_FUNCTION_NOT_SUPPORTED
? isQuotedStringKey
9 getNext
$com/google/common/base/Preconditions
checkState (Z)V # GOOG_CLASS_DESCRIPTOR_NOT_VALID
getString ()Ljava/lang/String;
$ equals (Ljava/lang/Object;)Z java/util/ArrayList
9 getFirstFirstChild
9 cloneNode
! setString (Ljava/lang/String;)V
#$ 9 removeFirstChild&'() java/util/List add
+, detachChildren ?. ?/ CLcom/google/javascript/jscomp/ClosureRewriteClass$MemberDefinition; ?123 value "Lcom/google/javascript/rhino/Node;
567 setJSDocInfo K(Lcom/google/javascript/rhino/JSDocInfo;)Lcom/google/javascript/rhino/Node; ?9 ?3
;<