
com.google.javascript.jscomp.deps.DepsGenerator.class Maven / Gradle / Ivy
The newest version!
???? 3,
?) |* |+ |, |- |. |/
|0 |12
)3
4
5
6
789:
|;<=
|>9?
|@A
)B
C
|DE
F GH
IJ
KLMNONP ?Q9RS
')
|TUMVW +X
,KYZY[Y\Y]
|^9_
|`
|a bc +d |e
fg<h bi |j |k |l |m |n +opM9q
|rs
Ft
Fu
|vw
|x
Jd
Jy
FzY{
||YM +}~
S
S??
Vt
V??
Y)
???
\)
Y?
??
???L]
J?
V???
f?
e?
J?
|? ???
l?
???:
|??
???
??
,)
J?Y?
J?Y?
??
|??
?d
7???
????
??????????? InclusionStrategy InnerClasses logger Ljava/util/logging/Logger; srcs Ljava/util/Collection; Signature ALjava/util/Collection; deps closurePathAbs Ljava/lang/String;
mergeStrategy CLcom/google/javascript/jscomp/deps/DepsGenerator$InclusionStrategy; loader 0Lcom/google/javascript/jscomp/deps/ModuleLoader; errorManager +Lcom/google/javascript/jscomp/ErrorManager; SAME_FILE_WARNING -Lcom/google/javascript/jscomp/DiagnosticType; NEVER_PROVIDED_ERROR DUPE_PROVIDES_WARNING MULTIPLE_PROVIDES_ERROR DUPE_REQUIRE_WARNING NO_DEPS_WARNING ?(Ljava/util/Collection;Ljava/util/Collection;Lcom/google/javascript/jscomp/deps/DepsGenerator$InclusionStrategy;Ljava/lang/String;Lcom/google/javascript/jscomp/ErrorManager;Lcom/google/javascript/jscomp/deps/ModuleLoader;)V Code LineNumberTable LocalVariableTable this 1Lcom/google/javascript/jscomp/deps/DepsGenerator; LocalVariableTypeTable5(Ljava/util/Collection;Ljava/util/Collection;Lcom/google/javascript/jscomp/deps/DepsGenerator$InclusionStrategy;Ljava/lang/String;Lcom/google/javascript/jscomp/ErrorManager;Lcom/google/javascript/jscomp/deps/ModuleLoader;)V computeDependencyCalls ()Ljava/lang/String; depsFiles Ljava/util/Map; jsFiles output Ljava/io/ByteArrayOutputStream; ULjava/util/Map;
StackMapTable?
Exceptions? cleanUpDuplicatedFiles !(Ljava/util/Map;Ljava/util/Map;)V path
depsPathsCopy Ljava/util/Set; #Ljava/util/Set;?? ?(Ljava/util/Map;Ljava/util/Map;)V validateDependencies +(Ljava/lang/Iterable;Ljava/lang/Iterable;)V namespace provider 2Lcom/google/javascript/jscomp/deps/DependencyInfo; i I l requires Ljava/util/List; depInfo preparsedFileDepedencies Ljava/lang/Iterable; parsedFileDependencies providesMap $Ljava/util/List; HLjava/lang/Iterable;??V?E ?(Ljava/lang/Iterable;Ljava/lang/Iterable;)V reportSameFile G(Ljava/lang/String;Lcom/google/javascript/jscomp/deps/DependencyInfo;)V reportUndefinedNamespace reportDuplicateProvide y(Ljava/lang/String;Lcom/google/javascript/jscomp/deps/DependencyInfo;Lcom/google/javascript/jscomp/deps/DependencyInfo;)V firstDep secondDep reportDuplicateRequire reportNoDepsInDepsFile (Ljava/lang/String;)V filePath addToProvideMap &(Ljava/lang/Iterable;Ljava/util/Map;)V prevValue provide depInfos ?(Ljava/lang/Iterable;Ljava/util/Map;)V createDepsFileParser 4()Lcom/google/javascript/jscomp/deps/DepsFileParser;
depsParser 2Lcom/google/javascript/jscomp/deps/DepsFileParser; shouldSkipDepsFile ,(Lcom/google/javascript/jscomp/SourceFile;)Z file )Lcom/google/javascript/jscomp/SourceFile; parseDepsFiles ()Ljava/util/Map; info srcInfos src DLjava/util/List;sw W()Ljava/util/Map; parseSources (Ljava/util/Set;)Ljava/util/Map; closureRelativePath preparsedFiles parsedFiles jsParser 0Lcom/google/javascript/jscomp/deps/JsFileParser; compiler 'Lcom/google/javascript/jscomp/Compiler;?? z(Ljava/util/Set;)Ljava/util/Map; writeDepsContent 6(Ljava/util/Map;Ljava/util/Map;Ljava/io/PrintStream;)V depsPath
infosIndex $Lcom/google/common/collect/Multimap; out Ljava/io/PrintStream; jLcom/google/common/collect/Multimap;? ?(Ljava/util/Map;Ljava/util/Map;Ljava/io/PrintStream;)V formatPathToDepsFile &(Ljava/lang/String;)Ljava/lang/String;
writeDepInfos .(Ljava/io/PrintStream;Ljava/util/Collection;)V JLjava/util/Collection; b(Ljava/io/PrintStream;Ljava/util/Collection;)V createSourceFilesFromPaths ((Ljava/util/Collection;)Ljava/util/List; paths files *Ljava/util/Collection; ;Ljava/util/List; g(Ljava/util/Collection;)Ljava/util/List; createSourceFilesFromZipPaths zipSourceFiles %([Ljava/lang/String;)Ljava/util/List; [Ljava/lang/String; P([Ljava/lang/String;)Ljava/util/List; ()V
SourceFile DepsGenerator.java ?& ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? java/lang/StringBuilder preparsedFiles: ????? ??? ???? ? ???? ? ??? ? ? java/io/ByteArrayOutputStream java/io/PrintStream ??
java/lang/String????? ?? java/util/HashSet ??????????? ??? java/util/HashMap ? ?? 0com/google/javascript/jscomp/deps/DependencyInfo java/util/ArrayList??????????? ? ??? ? ? ? ????? ? ? ???????? ? ? ? ? ? ? ? ? ? ?????? ? ? 0com/google/javascript/jscomp/deps/DepsFileParser ???? ? ? 'com/google/javascript/jscomp/SourceFile ? ??????? ? ?? ? java/io/File ? ??? .com/google/javascript/jscomp/deps/JsFileParser? %com/google/javascript/jscomp/Compiler ,com/google/javascript/jscomp/CompilerOptions Closure-relative path:
? 5com/google/javascript/jscomp/LazyParsedDependencyInfo "com/google/javascript/jscomp/JsAst ?
?& ? 1com/google/javascript/jscomp/deps/DepsGenerator$1 ??
// Included from: ??? !"#$ /com/google/javascript/jscomp/deps/DepsGenerator%&' DEPS_SAME_FILE ?Namespace "{0}" is both required and provided in the same file.()* DEPS_NEVER_PROVIDED /Namespace "{0}" is required but never provided.+* DEPS_DUPE_PROVIDES %Multiple calls to goog.provide("{0}") 5Namespace "{0}" is already provided in other file {1} DEPS_DUPE_REQUIRES *Namespace "{0}" is required multiple times DEPS_NO_DEPS No dependencies found in file java/lang/Object Acom/google/javascript/jscomp/deps/DepsGenerator$InclusionStrategy
java/util/Map java/io/IOException
java/util/Set java/util/Iterator java/lang/Iterable java/util/List "com/google/common/collect/Multimap append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString java/util/logging/Logger fine keySet ()Ljava/util/Set; )com/google/javascript/jscomp/ErrorManager
getErrorCount ()I values ()Ljava/util/Collection; (Ljava/io/OutputStream;)V toByteArray ()[B !java/nio/charset/StandardCharsets UTF_8 Ljava/nio/charset/Charset; ([BLjava/nio/charset/Charset;)V (Ljava/util/Collection;)V iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; WHEN_IN_SRCS remove &(Ljava/lang/Object;)Ljava/lang/Object; getRequires size get (I)Ljava/lang/Object; subList (II)Ljava/util/List; contains (Ljava/lang/Object;)Z 'com/google/javascript/jscomp/CheckLevel WARNING )Lcom/google/javascript/jscomp/CheckLevel; getName $com/google/javascript/jscomp/JSError make |(Ljava/lang/String;IILcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError; report R(Lcom/google/javascript/jscomp/CheckLevel;Lcom/google/javascript/jscomp/JSError;)V ERROR getProvides java/util/Collection put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .(Lcom/google/javascript/jscomp/ErrorManager;)V setShortcutMode (Z)V
getCodeReader ()Ljava/io/Reader; parseFileReader 4(Ljava/lang/String;Ljava/io/Reader;)Ljava/util/List; isEmpty getPathRelativeToClosureBase exists setModuleLoader b(Lcom/google/javascript/jscomp/deps/ModuleLoader;)Lcom/google/javascript/jscomp/deps/JsFileParser; 'com/google/common/collect/ImmutableList of +()Lcom/google/common/collect/ImmutableList; init Q(Ljava/util/List;Ljava/util/List;Lcom/google/javascript/jscomp/CompilerOptions;)V *com/google/javascript/jscomp/deps/PathUtil makeAbsolute makeRelative 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; getCode parseFile j(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/deps/DependencyInfo; ,(Lcom/google/javascript/jscomp/SourceFile;)V ?(Lcom/google/javascript/jscomp/deps/DependencyInfo;Lcom/google/javascript/jscomp/JsAst;Lcom/google/javascript/jscomp/AbstractCompiler;)V clearCachedSource ALWAYS 4(Lcom/google/javascript/jscomp/deps/DepsGenerator;)V #com/google/common/collect/Multimaps index h(Ljava/lang/Iterable;Lcom/google/common/base/Function;)Lcom/google/common/collect/ImmutableListMultimap; println *(Ljava/lang/Object;)Ljava/util/Collection; 5com/google/javascript/jscomp/deps/DependencyInfo$Util Util writeAddDependency K(Ljava/lang/Appendable;Lcom/google/javascript/jscomp/deps/DependencyInfo;)V fromFile =(Ljava/lang/String;)Lcom/google/javascript/jscomp/SourceFile; add fromZipFile >(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/util/List; addAll (Ljava/util/Collection;)Z java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; java/lang/Class getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger; +com/google/javascript/jscomp/DiagnosticType warning S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; error ! | ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? &*? *+? *,? *-? *? *? *? ? ? " j k l m n o p % q ? H &