com.google.javascript.jscomp.ConvertChunksToESModules$FindCrossChunkReferences.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 ? Ncom/google/javascript/jscomp/ConvertChunksToESModules$FindCrossChunkReferences this$0 7Lcom/google/javascript/jscomp/ConvertChunksToESModules;
Ccom/google/javascript/jscomp/NodeTraversal$AbstractPreOrderCallback ()V
com/google/javascript/rhino/Node isScript ()Z
visitScript Q(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
isCall
5com/google/javascript/jscomp/ConvertChunksToESModules visitCallAndTraverse Q(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Z
! " isName $ % & ' ( @com/google/javascript/jscomp/ConvertChunksToESModules$ImportType STATIC BLcom/google/javascript/jscomp/ConvertChunksToESModules$ImportType;
* + , visitName ?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/ConvertChunksToESModules$ImportType;)Z
. / 0 1 2 $com/google/common/base/Preconditions
checkState (Z)V
4 5 6 7 8 *com/google/javascript/jscomp/NodeTraversal getChunk (()Lcom/google/javascript/jscomp/JSChunk;
: ; < = > $com/google/javascript/jscomp/JSChunk getDependencies +()Lcom/google/common/collect/ImmutableList; @ A B crossChunkExports Ljava/util/Map; D java/util/LinkedHashSet
C G H I J K
java/util/Map putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
M N O P 'com/google/common/collect/ImmutableList isEmpty R S B crossChunkImports U V W apply ()Ljava/util/function/Function; G Y Z [ computeIfAbsent C(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
M ] ^ _ iterator 2()Lcom/google/common/collect/UnmodifiableIterator; a b c d java/util/Iterator hasNext a f g h next ()Ljava/lang/Object; U k java/util/LinkedHashMap
j :(Lcom/google/javascript/jscomp/ConvertChunksToESModules;)V Code LineNumberTable LocalVariableTable this PLcom/google/javascript/jscomp/ConvertChunksToESModules$FindCrossChunkReferences; MethodParameters shouldTraverse s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z t ,Lcom/google/javascript/jscomp/NodeTraversal; n "Lcom/google/javascript/rhino/Node; parent
StackMapTable
dependency &Lcom/google/javascript/jscomp/JSChunk; namesToImportByModule script chunk chunkDependencies )Lcom/google/common/collect/ImmutableList; LocalVariableTypeTable ZLjava/util/Map;>; QLcom/google/common/collect/ImmutableList; lambda$visitScript$1 7(Lcom/google/javascript/jscomp/JSChunk;)Ljava/util/Set; k lambda$visitScript$0 7(Lcom/google/javascript/jscomp/JSChunk;)Ljava/util/Map;
SourceFile ConvertChunksToESModules.java NestHost BootstrapMethods ?
? ? ? ? ? "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? &(Ljava/lang/Object;)Ljava/lang/Object; ?
? ? ? ? ?
? ? ? ? InnerClasses FindCrossChunkReferences AbstractPreOrderCallback
ImportType ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup m n 4
*+? *? ? o O p
q r s t u n ? 8,?
? *+,? ?,? ?
*? +,? ?,? ? *? +,? #? )W?? o &