com.google.javascript.jscomp.AstFactory.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!
???? 7O
java/lang/Object ()V
'com/google/javascript/jscomp/AstFactory lifeCycleStage >Lcom/google/javascript/jscomp/AbstractCompiler$LifeCycleStage; registry 3Lcom/google/javascript/rhino/jstype/JSTypeRegistry;
colorRegistry 3Lcom/google/javascript/jscomp/colors/ColorRegistry; /com/google/javascript/rhino/jstype/JSTypeNative UNKNOWN_TYPE 1Lcom/google/javascript/rhino/jstype/JSTypeNative;
getNativeType ^(Lcom/google/javascript/rhino/jstype/JSTypeNative;)Lcom/google/javascript/rhino/jstype/JSType; ! " unknownType +Lcom/google/javascript/rhino/jstype/JSType; $ % & ' ( 0com/google/javascript/jscomp/AstFactory$TypeMode JSTYPE 2Lcom/google/javascript/jscomp/AstFactory$TypeMode; * + ( typeMode $ - . ( NONE $ 0 1 ( COLOR
3 4 A(Lcom/google/javascript/jscomp/AbstractCompiler$LifeCycleStage;)V
6 7 t(Lcom/google/javascript/jscomp/AbstractCompiler$LifeCycleStage;Lcom/google/javascript/rhino/jstype/JSTypeRegistry;)V
9 : t(Lcom/google/javascript/jscomp/AbstractCompiler$LifeCycleStage;Lcom/google/javascript/jscomp/colors/ColorRegistry;)V
$ < = > equals (Ljava/lang/Object;)Z
@ A B isAddingColors ()Z D method not supported for colors
F G H I J $com/google/common/base/Preconditions
checkState (ZLjava/lang/Object;)V
L M N O P com/google/javascript/rhino/IR
exprResult F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
R S T U P com/google/javascript/rhino/Node srcref
L W X Y empty $()Lcom/google/javascript/rhino/Node;
L [ \ ] block G([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
L _ ` a ifNode h(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
L c ` d ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
L f g h forNode ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
L j k Y breakNode
L m n a label
L p q a catchNode
L s t a
tryFinally
R v w B isBlock
F y I z (Z)V
R | } B isCatch
L ? d tryCatchFinally
L ? ? P throwNode
L ? ? P
returnNode
L ? ? P yieldNode
? ? ? setJSTypeOrColor S(Lcom/google/javascript/jscomp/AstFactory$Type;Lcom/google/javascript/rhino/Node;)V
L ? ? P await
L ? ? ? string 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node; ? ? STRING_TYPE ? ? ? ? ? 2com/google/javascript/jscomp/colors/StandardColors STRING +Lcom/google/javascript/jscomp/colors/Color;
? ? ? type ?(Lcom/google/javascript/rhino/jstype/JSTypeNative;Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/jscomp/AstFactory$Type;
L ? ? ? number %(D)Lcom/google/javascript/rhino/Node; ? ? NUMBER_TYPE ? ? ? ? NUMBER
L ? ? Y trueNode
L ? ? Y falseNode ? ? BOOLEAN_TYPE ? ? ? ? BOOLEAN
L ? ? Y nullNode ? ? NULL_TYPE ? ? ? ? NULL_OR_VOID
L ? ? P voidNode ? ? VOID_TYPE
? ? ? createNumber
? ? P
createVoid
L ? ? P not
L ? ? Y thisNode
L ? ? Y superNode
R ? ? B isClass
? ? ? getTypeOfThisForEs6Class R(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/AstFactory$Type;
R ? ? Y getParent
R ? ? B isClassMembers
F ? ? z
checkArgument
R ? ? B isMemberFunctionDef
R ? ? B isMemberFieldDef
R ? ? B isComputedFieldDef
R ? ? Y getGrandparent
R ? ? B isStaticMember
? ? ?
? ? P createThisForEs6Class
? ? assertNotAddingColors
? ? B
isAddingTypes
getFunctionType U(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/jstype/FunctionType;
/com/google/javascript/rhino/jstype/FunctionType
getTypeOfThis -()Lcom/google/javascript/rhino/jstype/JSType;
F
checkNotNull 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; )com/google/javascript/rhino/jstype/JSType
F ? J )com/google/javascript/jscomp/AstFactory$1 ;$SwitchMap$com$google$javascript$jscomp$AstFactory$TypeMode [I
$ ordinal ()I
getTypeOfThisForFunctionNode O(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/jstype/JSType;
! ?" [(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/jscomp/AstFactory$Type;
R$%& getColor -()Lcom/google/javascript/jscomp/colors/Color;
()* getInstanceOfColor X(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/jscomp/colors/Color;
, ?- [(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/jscomp/AstFactory$Type;
/01 noTypeInformation 0()Lcom/google/javascript/jscomp/AstFactory$Type;3 java/lang/AssertionError
2
R67 B
isFunction9 not a function or class: %s
F; I< ((ZLjava/lang/String;Ljava/lang/Object;)V
R>? getJSTypeBeforeCast
ABC assertFunctionType 3()Lcom/google/javascript/rhino/jstype/FunctionType;
REF getJSTypeRequired
HIJ
createName d(Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node; LM ,$SwitchMap$com$google$javascript$rhino$Token
OP !com/google/javascript/rhino/Token
RST createSingleLetNameDeclaration X(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
VWT createSingleVarNameDeclaration
YZT createSingleConstNameDeclaration\ 'java/lang/UnsupportedOperationException ^_` makeConcatWithConstants 7(Lcom/google/javascript/rhino/Token;)Ljava/lang/String;
[b c (Ljava/lang/String;)V
Lef P let
Lhf a
Ljk P var
Lmk a
Rop getJSType
r ?s ?(Lcom/google/javascript/rhino/jstype/JSType;Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/jscomp/AstFactory$Type;
uvJ createConstantName
Lxy a constNode
R{| B isObjectPattern~ not an object pattern: %s? arguments
L?? ? name ?? ARGUMENTS_TYPE
? ? 1com/google/javascript/rhino/jstype/JSTypeRegistry
R??? setJSType O(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/Node; ???? ARGUMENTS_ID -Lcom/google/javascript/jscomp/colors/ColorId;
????? 1com/google/javascript/jscomp/colors/ColorRegistry get Z(Lcom/google/javascript/jscomp/colors/ColorId;)Lcom/google/javascript/jscomp/colors/Color;
R??? setColor O(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/rhino/Node;
?? Y createArgumentsReference
???? B