com.google.javascript.jscomp.CheckClosureImports.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
java/lang/Object ()V
0com/google/javascript/jscomp/CheckClosureImports compiler /Lcom/google/javascript/jscomp/AbstractCompiler; 8com/google/javascript/jscomp/CheckClosureImports$Checker
?(Lcom/google/javascript/jscomp/CheckClosureImports;Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/modules/ModuleMetadataMap;)V checker :Lcom/google/javascript/jscomp/CheckClosureImports$Checker; java/util/LinkedHashSet
namespacesSeen Ljava/util/Set;
! " -com/google/javascript/jscomp/AbstractCompiler
getChunkGraph -()Lcom/google/javascript/jscomp/JSChunkGraph; $ % &
chunkGraph +Lcom/google/javascript/jscomp/JSChunkGraph;
( ) * + , *com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V . / 0 1 2
java/util/Set contains (Ljava/lang/Object;)Z 4 5 6 LATE_PROVIDE_ERROR -Lcom/google/javascript/jscomp/DiagnosticType; 8 java/lang/String
( : ; < report e(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V
> ? @ A B Ecom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata rootNode $()Lcom/google/javascript/rhino/Node;
D E F G H com/google/javascript/rhino/Node
isFromExterns ()Z
J K L M N %com/google/javascript/jscomp/NodeUtil
getInputId I(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/InputId;
P Q R getInput S(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput; T Cannot find CompilerInput for %s
V W X Y Z $com/google/common/base/Preconditions checkNotNull J(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object; \ *com/google/javascript/jscomp/CompilerInput
[ ^ _ ` getChunk (()Lcom/google/javascript/jscomp/JSChunk;
( ^
c d e f g )com/google/javascript/jscomp/JSChunkGraph dependsOn O(Lcom/google/javascript/jscomp/JSChunk;Lcom/google/javascript/jscomp/JSChunk;)Z i j 6 CROSS_CHUNK_REQUIRE_ERROR
l m n o p $com/google/javascript/jscomp/JSChunk getName ()Ljava/lang/String;
r s t u v $com/google/javascript/jscomp/JSError make ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
x ; y )(Lcom/google/javascript/jscomp/JSError;)V { (JSC_INVALID_CLOSURE_IMPORT_DESTRUCTURING } 2Destructuring {0} must be a simple object pattern.
? ? ? ? +com/google/javascript/jscomp/DiagnosticType error S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; ? ? 6 $INVALID_CLOSURE_IMPORT_DESTRUCTURING ? &JSC_ONE_CLOSURE_IMPORT_PER_DECLARATION ? 8There may only be one {0} per var/let/const declaration. ? ? 6 "ONE_CLOSURE_IMPORT_PER_DECLARATION ? JSC_INVALID_CLOSURE_IMPORT_CALL ? '{0} parameter must be a string literal. ? ? 6 INVALID_CLOSURE_IMPORT_CALL ? JSC_LATE_PROVIDE_ERROR ? *Required namespace "{0}" not provided yet. ? JSC_LET_CLOSURE_IMPORT ? IModule imports must be constant. Please use ''const'' instead of ''let''.
? ? ? disabled ? ? 6 LET_CLOSURE_IMPORT ? #JSC_NO_CLOSURE_IMPORT_DESTRUCTURING ? *Cannot destructure the return value of {0} ? ? 6 NO_CLOSURE_IMPORT_DESTRUCTURING ? 4JSC_LHS_OF_CLOUSRE_IMPORT_MUST_BE_CONST_IN_ES_MODULE ? SThe left side of a {0} must use ''const'' (not ''let'' or ''var'') in an ES module. ? ? 6 0LHS_OF_CLOSURE_IMPORT_MUST_BE_CONST_IN_ES_MODULE ? JSC_XMODULE_REQUIRE_ERROR ? snamespace "{0}" is required in chunk {2} but provided in chunk {1}. Is chunk {2} missing a dependency on chunk {1}?
? ? ? warning ? goog
? ? ? ? ? com/google/javascript/rhino/IR name 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node; ? require
? ? ? ? getprop X(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node; ? ? ? GOOG_REQUIRE "Lcom/google/javascript/rhino/Node; ? module ? get
? ? ? ? k(Lcom/google/javascript/rhino/Node;Ljava/lang/String;[Ljava/lang/String;)Lcom/google/javascript/rhino/Node; ? ? ? GOOG_MODULE_GET ? forwardDeclare ? ? ? GOOG_FORWARD_DECLARE ? requireType ? ? ? GOOG_REQUIRE_TYPE ? requireDynamic ? ? ? GOOG_REQUIRE_DYNAMIC ? )com/google/javascript/jscomp/CompilerPass Signature #Ljava/util/Set; j(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/modules/ModuleMetadataMap;)V Code LineNumberTable LocalVariableTable this 2Lcom/google/javascript/jscomp/CheckClosureImports; moduleMetadataMap 8Lcom/google/javascript/jscomp/modules/ModuleMetadataMap; MethodParameters process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V externs root verifyRequireOrder ?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata;)V namespace Ljava/lang/String; call t ,Lcom/google/javascript/jscomp/NodeTraversal; requiredModule GLcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata; requiredInputId %Lcom/google/javascript/rhino/InputId;
requiredInput ,Lcom/google/javascript/jscomp/CompilerInput;
requiredChunk &Lcom/google/javascript/jscomp/JSChunk; currentChunk
StackMapTable #com/google/javascript/rhino/InputId
SourceFile CheckClosureImports.java NestMembers >com/google/javascript/jscomp/CheckClosureImports$ClosureImport @com/google/javascript/jscomp/CheckClosureImports$ClosureImport$4 @com/google/javascript/jscomp/CheckClosureImports$ClosureImport$3 @com/google/javascript/jscomp/CheckClosureImports$ClosureImport$2 @com/google/javascript/jscomp/CheckClosureImports$ClosureImport$1 InnerClasses Checker 3com/google/javascript/jscomp/NodeTraversal$Callback Callback 6com/google/javascript/jscomp/modules/ModuleMetadataMap ModuleMetadata
ClosureImport 0 ? ? 6 ? 6 ? 6 5 6 ? 6 ? 6 ? 6 j 6 ? ? ? ? ? ? ? ? ? ? ? ? % &