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

com.google.javascript.jscomp.ConvertChunksToESModules.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!
????7a
java/lang/Object()Vjava/util/LinkedHashMap
	
5com/google/javascript/jscomp/ConvertChunksToESModulescrossChunkExportsLjava/util/Map;	crossChunkImportsjava/util/ArrayList
	dynamicImportCallbacksLjava/util/List;	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;Ncom/google/javascript/jscomp/ConvertChunksToESModules$FindCrossChunkReferences
!":(Lcom/google/javascript/jscomp/ConvertChunksToESModules;)V
$%&'(*com/google/javascript/jscomp/NodeTraversaltraverse?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
*+,-.-com/google/javascript/jscomp/AbstractCompiler
getChunkGraph-()Lcom/google/javascript/jscomp/JSChunkGraph;
01234)com/google/javascript/jscomp/JSChunkGraphgetAllChunks()Ljava/lang/Iterable;6789:java/lang/Iterableiterator()Ljava/util/Iterator;<=>?@java/util/IteratorhasNext()Z<BCDnext()Ljava/lang/Object;F$com/google/javascript/jscomp/JSChunkHIJKL
java/util/MapcontainsKey(Ljava/lang/Object;)Z
ENOP	getInputs+()Lcom/google/common/collect/ImmutableList;
RSTU@'com/google/common/collect/ImmutableListisEmptyWjava/util/LinkedHashSet
VHZ[\put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
^_convertChunkSourcesToModules
abaddExportStatements
deaddImportStatements
ghrewriteDynamicImportCallbacks	jklmn>com/google/javascript/jscomp/parsing/parser/FeatureSet$FeatureMODULES@Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;
pqrst%com/google/javascript/jscomp/NodeUtiladdFeatureToAllScripts?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;Lcom/google/javascript/jscomp/AbstractCompiler;)V
Rv9w2()Lcom/google/common/collect/UnmodifiableIterator;y*com/google/javascript/jscomp/CompilerInput
x{|}
getAstRootS(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/rhino/Node;
p??getFeatureSetOfScript\(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;	?????6com/google/javascript/jscomp/parsing/parser/FeatureSetES2015_MODULES8Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;
????contains;(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;)Z
?????$com/google/common/base/Preconditions
checkState(Z)V
????unionr(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;)Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;	????? com/google/javascript/rhino/NodeFEATURE_SET'Lcom/google/javascript/rhino/Node$Prop;
????putProp<(Lcom/google/javascript/rhino/Node$Prop;Ljava/lang/Object;)V	?????!com/google/javascript/rhino/TokenMODULE_BODY#Lcom/google/javascript/rhino/Token;
???&(Lcom/google/javascript/rhino/Token;)V
????srcrefF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
????removeChildren$()Lcom/google/javascript/rhino/Node;
????addChildrenToFront%(Lcom/google/javascript/rhino/Node;)V
????addChildToFront
*???reportChangeToEnclosingScope
????
getFirstChild
???@isModuleBody
????addChildrenToBack
*???reportChangeToChangeScopeH???entrySet()Ljava/util/Set;?7?
java/util/Set?java/util/Map$Entry???DgetKey
E???getFirst.()Lcom/google/javascript/jscomp/CompilerInput;	????EXPORT_SPECS???DgetValue?java/lang/String	????EXPORT_SPEC
?????com/google/javascript/rhino/IRname6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;	????IS_SHORTHAND_PROPERTY
????
putIntProp+(Lcom/google/javascript/rhino/Node$Prop;I)V
????addChildToBackH???get&(Ljava/lang/Object;)Ljava/lang/Object;
???@hasChildrenHS
????export
????
srcrefTree
EgetName()Ljava/lang/String;makeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;	?	
?IMPORT_SPECS	?
?IMPORT_SPEC	??IMPORT
getChunkName:(Lcom/google/javascript/jscomp/JSChunk;)Ljava/lang/String;
.com/google/javascript/jscomp/deps/ModuleLoaderrelativePathFrom8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;"java/lang/IllegalArgumentException	 UNABLE_TO_COMPUTE_RELATIVE_PATH-Lcom/google/javascript/jscomp/DiagnosticType;
"#$%&$com/google/javascript/jscomp/JSErrormake?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
*()*report)(Lcom/google/javascript/jscomp/JSError;)V
?,-?string
?/0?empty
234add(ILjava/lang/Object;)V
7
?78@isCall
p:;<getArgumentForCallOrNewG(Lcom/google/javascript/rhino/Node;I)Lcom/google/javascript/rhino/Node;
?>?@
isFunction
pAB?getFunctionParameters	DE $UNRECOGNIZED_DYNAMIC_IMPORT_CALLBACKG( Unable to find valid callback function.
pIJ?getFunctionBody
?LM@isName
?OP@isBlock
?RS@hasOneChild
?UV@isReturn
?XY?getFirstFirstChild[* Unable to find valid namespace reference.
*]^_createAstFactory+()Lcom/google/javascript/jscomp/AstFactory;a7bjava/util/List
def'getDynamicImportCallbackModuleNamespaceu(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;h$
jklm?'com/google/javascript/jscomp/AstFactorycreateNameWithUnknownType
?op	getString
jrstcreateGetPropWithUnknownTypeX(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
?vw?replaceWith
?yz?detach|jscomp$DynamicImportCallback
p~?isCallTo7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Z
???isDynamicImportCallback%(Lcom/google/javascript/rhino/Node;)Z	?????@com/google/javascript/jscomp/ConvertChunksToESModules$ImportTypeDYNAMICBLcom/google/javascript/jscomp/ConvertChunksToESModules$ImportType;
???	visitName?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/ConvertChunksToESModules$ImportType;)Za?3L?
???Lequals
$???getScope&()Lcom/google/javascript/jscomp/Scope;
?????"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;? com/google/javascript/jscomp/Var
???@isGlobal
????getInput
x???getChunk(()Lcom/google/javascript/jscomp/JSChunk;
$?
p???
isLhsOfAssign	?? ASSIGNMENT_TO_IMPORT
$?)?e(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V???apply()Ljava/util/function/Function;H???computeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;???	????STATIC??JSC_IMPORT_ASSIGN?7Imported symbol "{0}" in chunk "{1}" cannot be assigned
?????+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;?#JSC_UNABLE_TO_COMPUTE_RELATIVE_PATH?:Unable to compute relative import path from "{0}" to "{1}"?(JSC_UNRECOGNIZED_DYNAMIC_IMPORT_CALLBACK?=Dynamic import callback encountered wih an invalid format.{0}?)com/google/javascript/jscomp/CompilerPass	SignatureZLjava/util/Map;>;?Ljava/util/Map;>;>;4Ljava/util/List;DYNAMIC_IMPORT_CALLBACK_FNLjava/lang/String;
ConstantValue2(Lcom/google/javascript/jscomp/AbstractCompiler;)VCodeLineNumberTableLocalVariableTablethis7Lcom/google/javascript/jscomp/ConvertChunksToESModules;MethodParametersprocessG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vchunk&Lcom/google/javascript/jscomp/JSChunk;externs"Lcom/google/javascript/rhino/Node;root
StackMapTable
moduleBodyfirstInputAstRootfirstInputScriptFeaturescombinedFeatureSetastRootscriptFeaturesinput,Lcom/google/javascript/jscomp/CompilerInput;
firstInput
exportSpecexportSpecsimportsByChunkjsModuleExportsLjava/util/Map$Entry;LocalVariableTypeTable`Ljava/util/Map$Entry;>;
importSpece$Ljava/lang/IllegalArgumentException;importSpecsimportStatementexportingChunk
importPathimportStatementsLjava/util/ArrayList;importingChunkchunkImportsEntry9Ljava/util/ArrayList;?Ljava/util/Map$Entry;>;>;call
callbackFncallbackBodyRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;moduleNamespacecallbackParamListimportNamespaceParamnamespaceGetprop
innerCallbackdynamicImportCallback
astFactory)Lcom/google/javascript/jscomp/AstFactory;visitCallAndTraverseQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Zt,Lcom/google/javascript/jscomp/NodeTraversal;isValidModuleNamespaceZimportsForModuleLjava/util/Set;
namesToExportnamesToImportByModulenameNode
importTypes$Lcom/google/javascript/jscomp/Scope;v"Lcom/google/javascript/jscomp/Var;
definingChunkreferencingChunk#Ljava/util/Set;lambda$visitName$27(Lcom/google/javascript/jscomp/JSChunk;)Ljava/util/Set;klambda$visitName$17(Lcom/google/javascript/jscomp/JSChunk;)Ljava/util/Map;lambda$visitName$0
SourceFileConvertChunksToESModules.javaNestMembersBootstrapMethods7
89:;$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;=.js?
@ABCD"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;?G
H0,,K
L.//O
P+,InnerClassesFindCrossChunkReferencesT3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackFeatureX%com/google/javascript/rhino/Node$PropPropEntry
ImportType]%java/lang/invoke/MethodHandles$Lookup_java/lang/invoke/MethodHandlesLookup0??????????{?  E ??s+*?*?Y?	?
*?Y?	?*?Y??*+???dKLM%e*f?+??+?????*?,?Y*? ?#*??)?/?5N-?;?K-?A?E:*?
?G?/*??G?!?M?Q?*?
?VY?X?YW???*?]*?`*?c*?f,?i*??o??6
lq4rHsRt[unwqyuzy{}|?~??*4:????????????? <Ex<x??????@?<Ex<??b?	*?
????L+?;??+?A??M,???E??N-*??z??:?????????Y?׷?:,???̹?:?;?B?A??:??Y?߷?:??????????????*?,?????H:????
???????:??*???????N?"?/?<?Q?]???????????????????????????\	?$???0?????/???<???]????3?"???????3??"????8?EGOV`jsx???!?*???
??>Q
???"??
?0?	h??
?*??\L*??`M,?;??,?A??N-?6??*?-?c:????-?9:?@:+g?i??:??*???++g?i???n?q:?u*???-?9?x:	-	?u*?	????h??^34%5,61768;9>;E<L=Z>a?jAoCyD|B?F?G?H?I?J?K?L?\	6t?Ee?L^?ZP??)???	%????????j?*-?????	???7
?,?K??,?n:?????+??:????:???????:????:+??:		?},???+,????Y,?nSY	?S??*?
??????:

??W*?	?????H:-??? ??????:??W??r??
??? ?,?9?;?B?G?I?P?V?]?d?p?|??????????????????????
?
?C 
?$!?????"??#?
??? ?$%,?&'B???P?(?V?)?	? ?
*?C *
?$!??$??????
x?5EE?W?
"#
+,?2?VY?X????-?
./?2?Y?	????-?
0,?2?VY?X????-?1?U%?Ƹȳ??иȳ?ԸȳC??QRUVZ[$Z234?5&6<>EFI>EJM>ENIQ:RS$U	j?V@W?Y@?HZ	?[@\^`




© 2015 - 2024 Weber Informatics LLC | Privacy Policy