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

com.google.javascript.jscomp.RewriteGoogJsImports.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!
????7?
java/lang/Object()Vjava/util/LinkedHashMap
	
1com/google/javascript/jscomp/RewriteGoogJsImportsmoduleReplacementsLjava/util/Map;
$com/google/common/base/PreconditionscheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;	mode8Lcom/google/javascript/jscomp/RewriteGoogJsImports$Mode;	 !	moduleMap0Lcom/google/javascript/jscomp/modules/ModuleMap;
#$%&'&com/google/common/collect/ImmutableMapbuilder2()Lcom/google/common/collect/ImmutableMap$Builder;
)*+,-.com/google/javascript/jscomp/modules/ModuleMapgetModulesByPath*()Lcom/google/common/collect/ImmutableMap;
#/01entrySet*()Lcom/google/common/collect/ImmutableSet;
34567&com/google/common/collect/ImmutableSetiterator2()Lcom/google/common/collect/UnmodifiableIterator;9:;<=java/util/IteratorhasNext()Z9?@Anext()Ljava/lang/Object;Cjava/util/Map$EntryBEFAgetValueH+com/google/javascript/jscomp/modules/ModuleJKLMN
java/util/MapgetOrDefault8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;BPQAgetKeySjava/lang/String
UVWXY.com/google/common/collect/ImmutableMap$BuilderputV(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
)[\-getModulesByClosureNamespace
U^_-buildOrThrow
)abS(Lcom/google/common/collect/ImmutableMap;Lcom/google/common/collect/ImmutableMap;)V
defgh-com/google/javascript/jscomp/AbstractCompilersetModuleMap3(Lcom/google/javascript/jscomp/modules/ModuleMap;)VJjkclear
mnopq com/google/javascript/rhino/NodegetFirstFirstChild$()Lcom/google/javascript/rhino/Node;
mst=isImport
mvwqgetLastChild
myz{	getString()Ljava/lang/String;}/goog.js
R??endsWith(Ljava/lang/String;)Z
m??q
getFirstChild
m??=isEmpty
m??qgetSecondChild
m??=isImportStar?goog
R???equals(Ljava/lang/Object;)Z
m??{getSourceFileName
m???	getLineno()I
m???	getCharno	??? GOOG_JS_IMPORT_MUST_BE_GOOG_STAR-Lcom/google/javascript/jscomp/DiagnosticType;
?????$com/google/javascript/jscomp/JSErrormake|(Ljava/lang/String;IILcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
d???report)(Lcom/google/javascript/jscomp/JSError;)V
m??qgetNext?2com/google/javascript/jscomp/SyntacticScopeCreator
???2(Lcom/google/javascript/jscomp/AbstractCompiler;)V
?????"com/google/javascript/jscomp/ScopecreateGlobalScopeH(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/Scope;
????createScopel(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Scope;)Lcom/google/javascript/jscomp/Scope;
????getVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;? com/google/javascript/jscomp/Var
???qgetNameNode	???!CANNOT_HAVE_MODULE_VAR_NAMED_GOOG
?????.com/google/javascript/jscomp/Es6RewriteModulesisEs6ModuleRoot%(Lcom/google/javascript/rhino/Node;)Z
???findGoogImportNodeF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;??com/google/javascript/jscomp/RewriteGoogJsImports$FindReexports
???(Z)V
?????*com/google/javascript/jscomp/NodeTraversaltraverse?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
m???
getInputId'()Lcom/google/javascript/rhino/InputId;
d???getInputS(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput;
?????*com/google/javascript/jscomp/CompilerInputgetPath=()Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;
)???	getModulej(Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;)Lcom/google/javascript/jscomp/modules/Module;	????6com/google/javascript/jscomp/RewriteGoogJsImports$ModeLINT_AND_REWRITE?Ccom/google/javascript/jscomp/RewriteGoogJsImports$ReferenceReplacer	???
googModule-Lcom/google/javascript/jscomp/modules/Module;
????(Lcom/google/javascript/jscomp/RewriteGoogJsImports;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/modules/Module;Z)V
?getProvides+()Lcom/google/common/collect/ImmutableList;
?'com/google/common/collect/ImmutableListcontains		./goog.js

9com/google/javascript/jscomp/deps/ModuleLoader$ModulePathresolveModuleAsPathO(Ljava/lang/String;)Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;
equalsIgnoreLeadingSlash>(Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;)Z	?CANNOT_NAME_FILE_GOOG
?findGoogJsScriptNodeapply_(Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;)Lcom/google/common/base/Predicate;
G -
boundNames
#"#$values1()Lcom/google/common/collect/ImmutableCollection;
&'()*-com/google/common/collect/ImmutableCollectionstream()Ljava/util/stream/Stream;,-./0java/util/stream/StreamallMatch!(Ljava/util/function/Predicate;)Z2$goog.js should never import anything
456
checkState(ZLjava/lang/Object;)V
G89-	namespace;default
#=>?containsKey@+goog.js should never have a default export.B*goog.js should never export from anything.	?DE	LINT_ONLY
G5?
IJKrewriteImports%(Lcom/google/javascript/rhino/Node;)V
MN
changeModules
PQRST,com/google/javascript/jscomp/modules/BindingoriginatingExport/()Lcom/google/javascript/jscomp/modules/Export;
VWXY?+com/google/javascript/jscomp/modules/Export
modulePath[$JSC_GOOG_JS_IMPORT_MUST_BE_GOOG_STAR]?Closure''s goog.js file must be imported as `import * as goog`.
_`abc+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;eJSC_GOOG_JS_REEXPORTEDgDo not re-export from goog.js.	ij?GOOG_JS_REEXPORTEDlJSC_CANNOT_NAME_FILE_GOOGn>Do not name files goog.js, it is reserved for Closure Library.p%JSC_CANNOT_HAVE_MODULE_VAR_NAMED_GOOGraModule scoped variables named ''goog'' must come from importing Closure Library''s goog.js file..t)com/google/javascript/jscomp/CompilerPassEXPECTED_BASE_PROVIDELjava/lang/String;
ConstantValueRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;	SignaturekLjava/util/Map;?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/RewriteGoogJsImports$Mode;Lcom/google/javascript/jscomp/modules/ModuleMap;)VCodeLineNumberTableLocalVariableTablethis3Lcom/google/javascript/jscomp/RewriteGoogJsImports;MethodParameters	newModulemLjava/util/Map$Entry;resolvedModules0Lcom/google/common/collect/ImmutableMap$Builder;closureModulesLocalVariableTypeTableVLjava/util/Map$Entry;qLcom/google/common/collect/ImmutableMap$Builder;
StackMapTablechild"Lcom/google/javascript/rhino/Node;
scriptRootvalidZgoogImportNodemoduleScope$Lcom/google/javascript/jscomp/Scope;googVar"Lcom/google/javascript/jscomp/Var;moduleprovides)Lcom/google/common/collect/ImmutableList;scriptgoogScriptNoderootexpectedGoogPath;Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;=Lcom/google/common/collect/ImmutableList;processG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
googJsPath
isFromGoog"Lcom/google/common/base/Predicate;externsgoogJsScriptNodeRLcom/google/common/base/Predicate;? com/google/common/base/Predicatelambda$process$0l(Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;Lcom/google/javascript/jscomp/modules/Binding;)Zb.Lcom/google/javascript/jscomp/modules/Binding;
SourceFileRewriteGoogJsImports.javaNestMembers?3com/google/javascript/jscomp/RewriteGoogJsImports$1BootstrapMethods?
?????"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;??
????1(Lcom/google/javascript/jscomp/modules/Binding;)ZInnerClassesModeBuilderEntry
FindReexports?3com/google/javascript/jscomp/NodeTraversal$CallbackCallback?.com/google/javascript/jscomp/deps/ModuleLoader
ModulePathReferenceReplacer?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup!s
??j????uvw? !??xyz{|}?$*?*?Y?	?
-?W*+?*,?*-??~igjklm#n*$??$$$ !?
 N}?Ҹ"L?"M*??(?.?2N-?8?A-?>?B:*?
?D?D?G?I?G:+?O?R?TW???*??Z?.?2N-?8?A-?>?B:*?
?D?D?G?I?G:,?O?R?TW???*??)Y+?],?]?`?c*?
?i?~>qrt*uIvZw]yz?{?|?~??~????HI??*0?????0????????????**0??0??????????UU9?F?
9?F??}??=N+?l:?r?r?`?u?x|?~?P?????$????????x????	N?$=*?+?????????R??????:?????-?-???Y*???+??+????:?????:?0???(*?+???Ķ??Ķ????R?????~~'4?MS
UZ
_dnqt~??????? ?!?#?$?%?"?!?)H
t???????????????@???4????
mm?H ?	?U????xyJK}[h+?ʙc*+??M*?+??Y,???ָ?*?*?+?߶???N-?W,?&*?????Y*+,-*??????:?~"-.
/%0;1@3N6g>*
Z??;,??h??h?????mmdm?mmdm?AmmGNNmmG?mmGNNmmG????}??M+??N-?=*?-?߶??:???*?-?߶???
M?-??N???,?]N+??:?N*??߶??,??	N?(??|?~?*?????R??????:???-??~VADEF%I*J:K=DEOIPKRVS\TbUfVlWrX[?R?_?bH"??>??QP??KX????????????"??? ?m5??mm $?	???xy??}??*??*,?N-?	*+?N*????-??*?-?߶??:**?????*???W?:*????!?%?+1?3*???7:?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy