com.google.javascript.jscomp.RewriteDynamicImports$AliasInjectingTraversal.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 Jcom/google/javascript/jscomp/RewriteDynamicImports$AliasInjectingTraversal this$0 4Lcom/google/javascript/jscomp/RewriteDynamicImports;
Ccom/google/javascript/jscomp/NodeTraversal$AbstractPreOrderCallback ()V
2com/google/javascript/jscomp/RewriteDynamicImports aliasIsValid ()Z
$com/google/common/base/Preconditions
checkState (Z)V alias Ljava/lang/String;
! " %com/google/javascript/jscomp/NodeUtil isValidSimpleName (Ljava/lang/String;)Z
$ % & ' ( *com/google/javascript/jscomp/NodeTraversal getScope &()Lcom/google/javascript/jscomp/Scope;
* + , - . "com/google/javascript/jscomp/Scope getVar >(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar; 0 1 2 compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
4 5 6 7 8 -com/google/javascript/jscomp/AbstractCompiler getTypeRegistry 5()Lcom/google/javascript/rhino/jstype/JSTypeRegistry; : ; < = > /com/google/javascript/rhino/jstype/JSTypeNative UNKNOWN_TYPE 1Lcom/google/javascript/rhino/jstype/JSTypeNative;
@ A B C D 1com/google/javascript/rhino/jstype/JSTypeRegistry
getNativeType ^(Lcom/google/javascript/rhino/jstype/JSTypeNative;)Lcom/google/javascript/rhino/jstype/JSType; : F G > PROMISE_TYPE
I J K L M )com/google/javascript/rhino/jstype/JSType toObjectType 1()Lcom/google/javascript/rhino/jstype/ObjectType;
O P Q R S 'com/google/common/collect/ImmutableList of =(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
@ U V W createTemplatizedType ?(Lcom/google/javascript/rhino/jstype/ObjectType;Lcom/google/common/collect/ImmutableList;)Lcom/google/javascript/rhino/jstype/TemplatizedType; : Y Z > STRING_TYPE
4 \ ] ^ getSynthesizedExternsInput .()Lcom/google/javascript/jscomp/CompilerInput;
` a b c d *com/google/javascript/jscomp/CompilerInput
getAstRoot S(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/rhino/Node; f import
h i j k l java/lang/String equals (Ljava/lang/Object;)Z n o p
astFactory )Lcom/google/javascript/jscomp/AstFactory; r specifier
t u v w x 'com/google/javascript/jscomp/AstFactory createParamList 7([Ljava/lang/String;)Lcom/google/javascript/rhino/Node; z com/google/javascript/rhino/Node
t | } ~ createBlock G([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
@ ? ? ? createFunctionType ?(Lcom/google/javascript/rhino/jstype/JSType;[Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/jstype/FunctionType;
t ? ? ? type [(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/jscomp/AstFactory$Type;
t ? ? ? createFunction ?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
y ? ? ?
srcrefTree F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
y ? ? ? addChildToBack %(Lcom/google/javascript/rhino/Node;)V
? ? ? getRootOfQualifiedName &(Ljava/lang/String;)Ljava/lang/String; ? com/google/javascript/jscomp/Var
t ? ? ~ createObjectLit
t ? ? ? createSingleVarNameDeclaration X(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node; ? .
? ? ? ? ? com/google/common/base/Splitter on 5(Ljava/lang/String;)Lcom/google/common/base/Splitter;
? ? ? ? split .(Ljava/lang/CharSequence;)Ljava/lang/Iterable; ? ? ? ? ? java/lang/Iterable iterator ()Ljava/util/Iterator;
y ? ? ?
getFirstChild $()Lcom/google/javascript/rhino/Node;
y ? ? ? cloneNode ? ? ? ? ? java/util/Iterator next ()Ljava/lang/Object; ? ? ? hasNext
y ? ? ? cloneTree
t ? ? ? createGetPropWithUnknownType X(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node; ?
t ? ? ? createAssign h(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
t ? ? ?
exprResult
4 ? ? ? reportChangeToChangeScope 7(Lcom/google/javascript/jscomp/RewriteDynamicImports;)V Code LineNumberTable LocalVariableTable this LLcom/google/javascript/jscomp/RewriteDynamicImports$AliasInjectingTraversal; MethodParameters shouldTraverse s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z aliasNode "Lcom/google/javascript/rhino/Node;
assignedValue expr
aliasRootName aliasVar "Lcom/google/javascript/jscomp/Var;
aliasRootNode aliasNameParts Ljava/util/Iterator; qName t ,Lcom/google/javascript/jscomp/NodeTraversal; n parent registry 3Lcom/google/javascript/rhino/jstype/JSTypeRegistry; unknownType +Lcom/google/javascript/rhino/jstype/JSType; promiseType promiseTemplatizedType 4Lcom/google/javascript/rhino/jstype/TemplatizedType;
stringType externsRoot LocalVariableTypeTable (Ljava/util/Iterator;
StackMapTable ? 2com/google/javascript/rhino/jstype/TemplatizedType
SourceFile RewriteDynamicImports.java NestHost InnerClasses AliasInjectingTraversal AbstractPreOrderCallback ,com/google/javascript/jscomp/AstFactory$Type Type ? ? 4
*+? *? ? ? ? ?
? ? ? ? ? ? 6
"*? ?
? *? ? ? ? +? #*? ? ? )? ?*? ? /? 3:? 9? ?:? E? ?:? H? N? T:? X? ?:*? ? /? [*? ? /? _: *? ? e? g? *? ? ? ? \*? ? m*? ? *? ? m? hYqS? s*? ? m? y? {? IYS? ? ?? ?:
? ?W
? ??'*? ? ? ?:
+? #
? )? ?:? ?*? ? m
*? ? m? y? ?? ?: ? ?W ? ??? ?*? ? ? ?? ? :
? ?? ?:
? ? W
? ? ? ?*? ? m? ?
? ? ? h? ?:
? ? ? H*? ? m?*? ? m? hYqS? s*? ? m? y? {? IYS? ? ?? ?:? *? ? m? y? ?:*? ? m*? ? m? ˶ ?: ? ?W ? ???S*? ? / ? ?? ? ? - ?
? (? *? 6? @? J? N? [? e? {? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
???%?-?5?<?R?\?d?n??????????????????
??? ? ? ? ? ? ?
? ? ? ? ) ? ? ? ? ? ?
? ? - ? ? ? R ? ? ?
\ ? ? ? " ? ? " ? ? " ? ? " ? ? 6? ? ? @? ? ? J? ? ? [? ? ? e? ? ? {? ? ? ? R ? ? ?
? n *? l
$ y y @ I I ? I y ? X? h ?? R y ? y? s? y? +
$ y y @ I I ? I y ?
? ? ? ? ? ? ? ? $ t
© 2015 - 2024 Weber Informatics LLC | Privacy Policy