All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.javascript.jscomp.JSChunkGraph.class Maven / Gradle / Ivy

Go to download

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!
????7S
java/util/ArraysasList%([Ljava/lang/Object;)Ljava/util/List;
	
)com/google/javascript/jscomp/JSChunkGraph(Ljava/util/List;)V
java/lang/Object()V7com/google/javascript/jscomp/base/LinkedIdentityHashMap
	
dependencyMap9Lcom/google/javascript/jscomp/base/LinkedIdentityHashMap;java/util/ListisEmpty()Z
 !"#$$com/google/common/base/Preconditions
checkState(Z)V
&'(
makeWeakChunk"(Ljava/util/List;)Ljava/util/List;*+,size()I.$com/google/javascript/jscomp/JSChunk	012chunks'[Lcom/google/javascript/jscomp/JSChunk;456get(I)Ljava/lang/Object;
-89,getIndex;Chunk index already set: %s
 =#>((ZLjava/lang/String;Ljava/lang/Object;)V
-@ABsetIndex(I)V
DEFinitChunksByDepth()Ljava/util/List;	HIJ
chunksByDepthLjava/util/List;
LMNinitTransitiveDepsBitSets()[Ljava/util/BitSet;	PQRselfPlusTransitiveDeps[Ljava/util/BitSet;
TUVinitSubtreeSize()[I	XYZsubtreeSize[I\$weak$
^_`getChunkByName:(Ljava/lang/String;)Lcom/google/javascript/jscomp/JSChunk;
bcdgetAllInputs()Ljava/lang/Iterable;
fghmoveMarkedWeakSources=(Lcom/google/javascript/jscomp/JSChunk;Ljava/lang/Iterable;)Vjjava/util/ArrayList
i
-mn,getDepthpChunk depth already set: %s
-rstgetDependencies+()Lcom/google/common/collect/ImmutableList;
vwxyz'com/google/common/collect/ImmutableListiterator2()Lcom/google/common/collect/UnmodifiableIterator;|}~java/util/IteratorhasNext|???next()Ljava/lang/Object;?Bcom/google/javascript/jscomp/JSChunkGraph$ChunkDependenceException?.Chunks not in dependency order: %s preceded %s
-???getName()Ljava/lang/String;
?????5com/google/javascript/jscomp/base/format/SimpleFormatformat9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
???a(Ljava/lang/String;Lcom/google/javascript/jscomp/JSChunk;Lcom/google/javascript/jscomp/JSChunk;)V
?????java/lang/Mathmax(II)I
-??BsetDepth???add(Ljava/lang/Object;)Z?y?()Ljava/util/Iterator;
?????java/lang/Stringequals?java/util/LinkedHashSet
???(Ljava/util/Collection;)V?????
java/util/Setremove
-???getAllDependencies()Ljava/util/Set;????containsAll(Ljava/util/Collection;)Z?HA weak chunk already exists but it does not depend on every other chunk.
 ?#?(ZLjava/lang/Object;)V?*?.The weak chunk cannot have extra dependencies.
-??t	getInputs?*com/google/javascript/jscomp/CompilerInput
????
getSourceFile+()Lcom/google/javascript/jscomp/SourceFile;
????'com/google/javascript/jscomp/SourceFileisWeak
?????makeConcatWithConstants8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;?java/lang/StringBuilder?3A weak chunk exists but some sources are misplaced.
???(Ljava/lang/String;)V?1
Found these strong sources in the weak chunk:
  
????append-(Ljava/lang/String;)Ljava/lang/StringBuilder;?
  
?????com/google/common/base/Joineron3(Ljava/lang/String;)Lcom/google/common/base/Joiner;
????join((Ljava/lang/Iterable;)Ljava/lang/String;?-
Found these weak sources in other chunks:
  ?java/lang/IllegalStateException
????toString
??
-?
-???
addDependency)(Lcom/google/javascript/jscomp/JSChunk;)V
i??java/util/BitSet
?B
?Bset
?or(Ljava/util/BitSet;)V
?
previousSetBit(I)Iapply#()Lcom/google/common/base/Function;
#com/google/common/collect/Iterables	transformK(Ljava/lang/Iterable;Lcom/google/common/base/Function;)Ljava/lang/Iterable;
concat*(Ljava/lang/Iterable;)Ljava/lang/Iterable;
-,
getInputCountjava/util/LinkedHashMap
"#$%&
java/util/Mapput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;(java/lang/Iterable
*+,getOnlyElement((Ljava/lang/Iterable;)Ljava/lang/Object;.com/google/gson/JsonArray
-
12dgetAllChunks'?5com/google/gson/JsonObject
48name:com/google/gson/JsonPrimitive
9?
4=?>2(Ljava/lang/String;Lcom/google/gson/JsonElement;)V@dependencies
-B?C (Lcom/google/gson/JsonElement;)VEtransitive-dependencies
GHIgetTransitiveDepsDeepestFirst8(Lcom/google/javascript/jscomp/JSChunk;)Ljava/util/List;Kinputs
?M5N(I)Z
?
?QR(IIZ)V
?TU
nextSetBit
?WX?min
?Z[and]!No common dependency found for %s
?_`andNot
bcd	dependsOnO(Lcom/google/javascript/jscomp/JSChunk;Lcom/google/javascript/jscomp/JSChunk;)Z
fghgetDeepestCommonDependencyt(Lcom/google/javascript/jscomp/JSChunk;Lcom/google/javascript/jscomp/JSChunk;)Lcom/google/javascript/jscomp/JSChunk;j?kjava/util/Collection
mnh#getDeepestCommonDependencyInclusive	pqrst@com/google/javascript/jscomp/JSChunkGraph$InverseDepthComparatorINSTANCEBLcom/google/javascript/jscomp/JSChunkGraph$InverseDepthComparator;
vwxgetTransitiveDeps7(Lcom/google/javascript/jscomp/JSChunk;)Ljava/util/Set;
pz{|
sortedCopy&(Ljava/lang/Iterable;)Ljava/util/List;~()Ljava/util/function/Function;
???computeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
 ???checkNotNull&(Ljava/lang/Object;)Ljava/lang/Object;
v???copyOf?(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList;
????getChunk(()Lcom/google/javascript/jscomp/JSChunk;
-???/(Lcom/google/javascript/jscomp/CompilerInput;)V
-????4com/google/javascript/jscomp/deps/SortedDependencies
?	
???createEntryPointInputs?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/DependencyOptions;Ljava/lang/Iterable;Lcom/google/javascript/jscomp/deps/SortedDependencies;)Ljava/util/Set;
????getKnownProvides1()Lcom/google/common/collect/ImmutableCollection;
?w?-com/google/common/collect/ImmutableCollection~
?
?5???
????getPath=()Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;
?????9com/google/javascript/jscomp/deps/ModuleLoader$ModulePathtoModuleName~
???tgetDynamicRequires
???containsKey????addAll
???tgetRequireDynamicImports
????.com/google/javascript/jscomp/DependencyOptions
shouldSort
????getStrongDependenciesOf<(Ljava/util/List;Z)Lcom/google/common/collect/ImmutableList;
?????,com/google/common/collect/LinkedListMultimapcreate0()Lcom/google/common/collect/LinkedListMultimap;?????%?&com/google/common/collect/ListMultimap'(Ljava/lang/Object;Ljava/lang/Object;)Z
-??	removeAll
?
???shouldPrune??5?$(Ljava/lang/Object;)Ljava/util/List;
???getDepthFirstDependenciesOf\(Lcom/google/javascript/jscomp/CompilerInput;Ljava/util/Set;Ljava/util/Map;)Ljava/util/List;?????contains	???*WEAK_FILE_REACHABLE_FROM_ENTRY_POINT_ERROR-Lcom/google/javascript/jscomp/DiagnosticType;
?????$com/google/javascript/jscomp/JSErrormakeh(Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
?????-com/google/javascript/jscomp/AbstractCompilerreport)(Lcom/google/javascript/jscomp/JSError;)V
????setChunk?
????getSortedWeakDependenciesOf;(Ljava/util/List;)Lcom/google/common/collect/ImmutableList;	??7com/google/javascript/rhino/StaticSourceFile$SourceKindWEAK9Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;
?setKind<(Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;)V
??
-	
	getByName@(Ljava/lang/String;)Lcom/google/javascript/jscomp/CompilerInput;
v
builder3()Lcom/google/common/collect/ImmutableList$Builder;
?/com/google/common/collect/ImmutableList$BuilderG(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList$Builder;
tbuild
?tgetRequiredSymbols"?"?
 getChunksByName()Ljava/util/Map;"goog
?$%&maybeGetInputProvidingF(Ljava/lang/String;)Lcom/google/javascript/jscomp/deps/DependencyInfo;
?()shouldDropMoochers
?+,tgetInputsWithoutProvides	./?IMPLICIT_WEAK_ENTRY_POINT_ERROR
?12tgetEntryPoints4-com/google/javascript/jscomp/ModuleIdentifier
367?getClosureNamespace
39:?
getModuleName
3?
?=>&getInputProviding@?com/google/javascript/jscomp/JSChunkGraph$MissingChunkException
??
?CD?overrideModuleFLcom/google/javascript/jscomp/deps/SortedDependencies$MissingProvideException
EHI*(Ljava/lang/String;Ljava/lang/Exception;)V	KL?EXPLICIT_WEAK_ENTRY_POINT_ERROR
N?O-(Ljava/util/Collection;Ljava/lang/Iterable;)Z
QRS?T6com/google/javascript/jscomp/graph/LinkedDirectedGraph:()Lcom/google/javascript/jscomp/graph/LinkedDirectedGraph;
QVWX
createNode^(Ljava/lang/Object;)Lcom/google/javascript/jscomp/graph/LinkedDirectedGraph$LinkedDiGraphNode;Z->
Q\]^connect9(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
?`ab	compareTo(Ljava/lang/String;)Id.JSC_WEAK_FILE_REACHABLE_FROM_ENTRY_POINT_ERRORfAFile strongly reachable from an entry point must not be weak: {0}
hijkl+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;n#JSC_EXPLICIT_WEAK_ENTRY_POINT_ERRORp0Explicit entry point input must not be weak: {0}r#JSC_IMPLICIT_WEAK_ENTRY_POINT_ERRORt2Implicit entry point input should not be weak: {0}
hvwlwarningyjava/io/Serializable	SignatureJLjava/util/List;>;?Lcom/google/javascript/jscomp/base/LinkedIdentityHashMap;>;*([Lcom/google/javascript/jscomp/JSChunk;)VCodeLineNumberTableLocalVariableTablethis+Lcom/google/javascript/jscomp/JSChunkGraph;chunksInDepOrderMethodParameterschunk&Lcom/google/javascript/jscomp/JSChunk;
chunkIndexILocalVariableTypeTable8Ljava/util/List;
StackMapTable;(Ljava/util/List;)VdepDepthdepdepthtmpChunksByDepthL()Ljava/util/List;>;allOtherChunksLjava/util/Set;input,Lcom/google/javascript/jscomp/CompilerInput;isWeakChunkZsbLjava/lang/StringBuilder;misplacedWeakFilesmisplacedStrongFiles	weakChunkhasWeakChunk7Ljava/util/Set;$Ljava/util/List;r(Ljava/util/List;)Ljava/util/List;Ljava/util/BitSet;arrayR
requiredIndexdependentIndexZD()Ljava/lang/Iterable;count2>()Ljava/lang/Iterable;mLjava/lang/String;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;resultLjava/util/Map;ILjava/util/Map;K()Ljava/util/Map;
getChunkCountgetRootChunktoJson()Lcom/google/gson/JsonArray;nodeLcom/google/gson/JsonObject;depsLcom/google/gson/JsonArray;transitiveDepsRuntimeInvisibleAnnotations/Lcom/google/common/annotations/GwtIncompatible;valuecom.google.gsonsrcgetSmallestCoveringSubtree`(Lcom/google/javascript/jscomp/JSChunk;Ljava/util/BitSet;)Lcom/google/javascript/jscomp/JSChunk;candidatePlusTransitiveDepscandidateIndex
parentTreedependentChunksminDependentChunkIndex
candidatesparentTreeIndexbestCandidateIndexi
chunksAtDepthm1m2m1Depthm2Depth>(Ljava/util/Collection;)Lcom/google/javascript/jscomp/JSChunk;Ljava/util/Collection;iterLjava/util/Iterator;>Ljava/util/Collection;;f(Ljava/util/Collection;)Lcom/google/javascript/jscomp/JSChunk;`(Lcom/google/javascript/jscomp/JSChunk;)Ljava/util/List;1Lcom/google/common/annotations/VisibleForTesting;_(Lcom/google/javascript/jscomp/JSChunk;)Ljava/util/Set;
existingChunkLjava/lang/Iterable;	allInputs)Lcom/google/common/collect/ImmutableList;BLjava/lang/Iterable;WLcom/google/common/collect/ImmutableList;k(Lcom/google/javascript/jscomp/JSChunk;Ljava/lang/Iterable;)VmanageDependencies?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/DependencyOptions;)Lcom/google/common/collect/ImmutableList;provide	chunkNamerequire
entryPointorderedInputinputsNotYetReachedtransitiveClosureoldChunk
weakInputscompiler/Lcom/google/javascript/jscomp/AbstractCompiler;dependencyOptions0Lcom/google/javascript/jscomp/DependencyOptions;originalInputssorter6Lcom/google/javascript/jscomp/deps/SortedDependencies;entryPointInputsinputsByProvideLjava/util/LinkedHashMap;
absoluteOrderentryPointInputsPerChunk(Lcom/google/common/collect/ListMultimap;
orderedInputs
reachedInputs1Lcom/google/common/collect/ImmutableList$Builder;=Ljava/util/Set;>Ljava/util/List;dLcom/google/javascript/jscomp/deps/SortedDependencies;jLjava/util/LinkedHashMap;>;|Lcom/google/common/collect/ListMultimap;_Lcom/google/common/collect/ImmutableList$Builder;
Exceptions?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/DependencyOptions;)Lcom/google/common/collect/ImmutableList;importedNamespace	rootInputunreachedInputs`Ljava/util/Map;>;	(Lcom/google/javascript/jscomp/CompilerInput;Ljava/util/Set;Ljava/util/Map;>;)Ljava/util/List;entryPointInputeNLcom/google/javascript/jscomp/deps/SortedDependencies$MissingProvideException;/Lcom/google/javascript/jscomp/ModuleIdentifier;baseJschunksByNameD(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/DependencyOptions;Ljava/lang/Iterable;Lcom/google/javascript/jscomp/deps/SortedDependencies;)Ljava/util/Set;toGraphvizGraphgraphViz8Lcom/google/javascript/jscomp/graph/LinkedDirectedGraph;rLcom/google/javascript/jscomp/graph/LinkedDirectedGraph;t()Lcom/google/javascript/jscomp/graph/LinkedDirectedGraph;depthCompareO(Lcom/google/javascript/jscomp/JSChunk;Lcom/google/javascript/jscomp/JSChunk;)Id1d2lambda$manageDependencies$1#(Ljava/lang/String;)Ljava/util/Set;klambda$manageDependencies$0
SourceFileJSChunkGraph.javaNestMembersBootstrapMethods$
%&'?($java/lang/invoke/StringConcatFactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;* (in chunk ),
-./01"java/lang/invoke/LambdaMetafactorymetafactory?(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;??5Q(Lcom/google/javascript/jscomp/JSChunk;)Lcom/google/common/collect/ImmutableList;?x9
:=
>InnerClassesChunkDependenceExceptionInverseDepthComparatorC.com/google/javascript/jscomp/deps/ModuleLoader
ModulePathF,com/google/javascript/rhino/StaticSourceFile
SourceKindBuilderMissingChunkExceptionMissingProvideExceptionLHcom/google/javascript/jscomp/graph/LinkedDirectedGraph$LinkedDiGraphNodeLinkedDiGraphNodeO%java/lang/invoke/MethodHandles$LookupQjava/lang/invoke/MethodHandlesLookup1x??L?/?12QRYZIJz{z|}~A	*+???
lm?	??	?2??~P?*?
*?Y??+????*+?%L*+?)?-?/=*?/??3+?3?-N-?7??:-?<-??*?/-S????**?C?G**?K?O**?S?W*[?]*?a?e?Bpgq r&s3w>xIy\za{hwn?v?~??????*I??59???????J????? ?@??-@???z?EF~?ŻiY?kL=*?/???*?/2N-?l??o-?<6-?q?u:?{?L???-:?l6?&??Y??Y-??SY??S??-???`??6???-??+?)?+?iY?k??W+?3?-??W???J+?N????-?0?O?V?[?h?t?~????????????????HV3??O:?????0???
????????J???{?&?
?-@?|?D-?
?z?'(~?
?=+??N-?{?f-???-:??[???K=??Y+??:??W???????????????¸???????iY?kN?iY?k:+??:?{?????-:??[??6?Ķu:?{?^????:	?!	?ɶ͚	?ɶҹ?W?,?'	?ɶ͙-	?ɶ???????W?????o??-??W??Yٷ?:??޶??????W-??????-???W??Y??????E?-Y[??N+??:?{????-:-?????iY+??L+-??W+??-???*?,?6?@?B?N?Q?S?l?o?r?u?y????????????????
?? ?#?&?9?D?N?W?c?l?u?????????????????????
6<??U???L??	?o???{??DI????J??J????8???????J????*6<????????????Z?	|?_-?@???|?+-|?8??(???)???-|????z?MN~
h*?/???L=*?/??U*?/2N??Y`?:+S?-?q?u:?{????-:+?72???ބ???+?.?	???'?,?2?Q?]?`?f??>Q??E??'9Q?[??h??	_?R????/-?|?$?UV~??*?/??
L=*?/??-*?O2N6?+\.`O-d?	6??????+?&	???"*7?=?4??@?
3?????7YZ??
?????cd~=*?/??
??????z?,~?)<*?/M,?>6?,2:?`6?,2:??+?????????#$#%&#,(? ??.??.8??????8?? ~?5?Y? L*?/M,?>6?,2:+???!W????+?-./-.31? ??5??-???-????"??z??,~0*?/??6?????~>*?G?3?'?)?-?;?????~Q
$?-Y?/L*?0?3M,?{?
,???-N?4Y?6:7?9Y-???;???Y*?/??:*?/??P,?S6?#?V>*?O2?Y,`?S6????O??\,?<+?766?	6?@*?O2:?L??^*?W.*?W.?6d?	6???*?/2?Vuz{#|/}6~;?B?N[?o?u?y??????????????????f
6%???&???B??????????????#???uV??yR???	@?)??$@?3?
?	??gh~=	m+?l>,?l6?Vd6?T*?G?3?:?)d6?.?3?-:*+?a?*,?a??????ӄ?????.????*?:?H?\?_?e?k??\	H??50??*;?JV??m??m??m??h??b???*;?????)???	????nh~{",+?*,+?a?+?*+,?a?,?*+,?e??????? "??"??"???
?	??n?~?.+?iM,???-N,?{?*-,???-?lN???-?????,??*.??.1?'?????.1?'????|-?1z?HI~@?o*+?u?y?????????z???wx~E*?+?}?????????????z?
gh~T*??W+??M,?uN-?{?>-????:?ɶ͙%??:*?????
??*??????2??
?#?.?5?;?>?C?J?P?S??45??#-??T??TK?
J???TK?
J????v|?.?-???	?Kz???~	M*?a??N??Y-??:*+,*?a??:?Y? :-?u:?{?}????:????:		?{?1	????:

????W
??????W???????:		????W	??????W??-?u:?{?Q????:???u:		?{?.	????:

???
???j??W??Χ??-?u:?{?Q????:???u:		?{?.	????:

???
???j??W??Χ??-,????:??:??:		?{?+	????:

??:??W
??W???*?0?3:		?{?	???-:

?ӧ??iY?k:	??Y??:
*?/:?66

?=
2:,????,?י??iY?k:??Y-??:????:?{?$????:*?ݹ?W?????:?{?(????:
???
	??W??ԧ??,????:??:?{?r????:,?י3?ɶ͙(???+????Y?ɶ?S?????:?
?????*?l??????
???,???,?י
???:	*[?]:??W,?יX	??:?u:

?{?;
????:??????ɲ??????????	-?e	??:?{?2????:

??:?
???

????ʸ:*?0?3:

?{?
???-:?ĶW??????`	 )Eer???????? ?!#$'-(M)W*i,l-o0s1{4?5?6?7?8?9?<?=?>?B?C?EJ K)M3NYObPeOkQnS?T?U?W?X?[?]?\?_?`?a?b?ce
dcghi)k/l<n?EEpUq]rauivoxvyz?}?~???????????????	????9?D?G??j$e??
???	Ek?????
????M??
-?????????
???
Y?????3s??)??J"???`?????J-???)??I?????? ??
9??M??M??M??E??;?? -??)$??{????????`?J	?W??
i???5????
3s??)???????I??E??;?? -??)$?{???????`??	?W??
5??<-?/??v??|??|?7?+?|??|1???|??|1???v?|?1?
|????v??v????>??v??v???-?|?*?|+????|?L??-????$-v|?!?@??|5??|?#E??	??z??~y	??iY?k:,+????+??u:?{?c????:-??I-?????:?{?-????:,???*,-?ݹ?W??ϧ??+??W?:?	???5?@?h?s?z?}??????????Hh??5Q???????????	??J? ????	??????|?2?|0???
?z	??~1s??Y??:*?:,?יV!?#??:?
??W,?'?W?*?u:?{?C????:		?ɶ͙+?-??Y	?ɶ?S???
	??W???,?0?u:?{?????3:	:
	?5	?8???)	?5?#??:

?N	?;????*??+???_???*/??/??#????@?	??
~2??Y?ְ??
~2??Y?ְ??~U%ce?g??mo?g?Jqs?u?-??@DEIJ$I !??p"0#)+234+267+28;+2<;?J	?@pA?BD?EG@vH?I	E?J	KQM	NPR




© 2015 - 2024 Weber Informatics LLC | Privacy Policy