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

com.google.javascript.jscomp.ProcessCommonJSModules$FindImportsAndExports.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?3com/google/javascript/jscomp/ProcessCommonJSModules	Icom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExportsthis$05Lcom/google/javascript/jscomp/ProcessCommonJSModules;


java/lang/Object()V	hasGoogProvideOrModuleZ	script"Lcom/google/javascript/rhino/Node;java/util/ArrayList
	umdPatternsLjava/util/List;	 
moduleExports	"#exports	%&errors()*+,java/util/ListisEmpty()Z(./0add(Ljava/lang/Object;)Z
23456'com/google/common/collect/ImmutableListcopyOfA(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
89:;, com/google/javascript/rhino/NodeisScript
=>?@A$com/google/common/base/Preconditions
checkState(Z)V
CDEFG%com/google/javascript/jscomp/NodeUtilisControlStructure%(Lcom/google/javascript/rhino/Node;)Z
CIJGisStatementBlock
8LM,isExprResult
8OPQgetFirstFirstChild$()Lcom/google/javascript/rhino/Node;	STUGOOG_PROVIDE+Lcom/google/javascript/rhino/QualifiedName;
WXYZG)com/google/javascript/rhino/QualifiedNamematches	\]UGOOG_MODULE
8_`,isCall	bcUREQUIRE_ENSURE
8efQ
getFirstChild
hijvisitRequireEnsureCallQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Vlmodule.exports
8nopmatchesQualifiedName(Ljava/lang/String;)Z
8rs,	isGetElemumodule
8wxQgetSecondChild
8z{,isStringLit
8}~	getString()Ljava/lang/String;#
????0java/lang/Stringequals
???isCommonJsExportQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Z?>com/google/javascript/jscomp/ProcessCommonJSModules$ExportInfo
?????*com/google/javascript/jscomp/NodeTraversalgetScope&()Lcom/google/javascript/jscomp/Scope;
??
?I(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Scope;)V
???getOutermostUmdTest{(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports$UmdTestInfo;
??G
isInIfTest	????Ucom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports$UmdTestInfoenclosingIf
???findUmdPatternt(Ljava/util/List;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ProcessCommonJSModules$UmdPattern;?>com/google/javascript/jscomp/ProcessCommonJSModules$UmdPattern	???activeBranch
??
?G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V	??U
DEFINE_AMD	??UWINDOW_DEFINE_AMD
8???getChildAtIndex%(I)Lcom/google/javascript/rhino/Node;
8??,isName
?????"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;? com/google/javascript/jscomp/Var
???,isGlobal
???getBaseQualifiedNameNodeF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
C??GisLValue
8??QgetGrandparent
8??QgetNext
8??,	isGetProp
8??,isAssign
???QgetNameNode	???SUSPICIOUS_EXPORTS_ASSIGNMENT-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;
8??,isThis
8??Q	getParent
???,
inGlobalScope
??GisCommonJsImport
???visitRequireCalls(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
C??GisExpressionResultUsed
????getInput.()Lcom/google/javascript/jscomp/CompilerInput;
???*com/google/javascript/jscomp/CompilerInputgetPath=()Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;
getCommonJsImportPath6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
8getSourceFileName
8
	getLineno()I
8	getCharno
9com/google/javascript/jscomp/deps/ModuleLoader$ModulePathresolveJsModulec(Ljava/lang/String;Ljava/lang/String;II)Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;
8Qdetach	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
 !"-com/google/javascript/jscomp/AbstractCompilerreportChangeToEnclosingScope%(Lcom/google/javascript/rhino/Node;)V
8$%&hasXChildren(I)Z	()?UNKNOWN_REQUIRE_ENSURE+?Expected the function to have 2 arguments but instead found {0}
8-.
getChildCount012makeConcatWithConstants(I)Ljava/lang/String;
456report)(Lcom/google/javascript/jscomp/JSError;)V
889,
isArrayLit;?The first argument must be an array literal of string literals.
8=>,
isFunction
8@A,hasOneChildCrequireEOThe second argument must be a function whose first argument is named "require".
8GHQremoveChildren	8JKL	FREE_CALL'Lcom/google/javascript/rhino/Node$Prop;
8NOPputBooleanProp+(Lcom/google/javascript/rhino/Node$Prop;Z)V
8RS"addChildToFront
?UVreportCodeChange(XYZiterator()Ljava/util/Iterator;\]^_,java/util/IteratorhasNext\abcnext()Ljava/lang/Object;
8efg
getInputId'()Lcom/google/javascript/rhino/InputId;
i?jS(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput;
lmn
getModuleName@(Lcom/google/javascript/jscomp/CompilerInput;)Ljava/lang/String;	?pqnode
Cst?getEnclosingScript
8vwQgetPrevious(yz0remove
8|}"replaceWithdefault
?????com/google/javascript/rhino/IRgetpropX(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
8???srcref(???	removeAll(Ljava/util/Collection;)Z(??clear?java/util/LinkedHashMap
?
8??QremoveFirstChild	????scope$Lcom/google/javascript/jscomp/Scope;
????put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
????keySet()Ljava/util/Set;?X?
java/util/Set(???indexOf(Ljava/lang/Object;)I(?z?(I)Ljava/lang/Object;
????get&(Ljava/lang/Object;)Ljava/lang/Object;(?/?(ILjava/lang/Object;)V
C???getRValueOfLValue
8??,isObjectLit
8??,isStringKey
8??,isQuotedStringKey
8??,isMemberFunctionDef
????name6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
????	objectlitG([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
????varh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;	8??L
MODULE_EXPORT
8??makeNonIndexable
?????%com/google/javascript/rhino/JSDocInfobuilder1()Lcom/google/javascript/rhino/JSDocInfo$Builder;
?????-com/google/javascript/rhino/JSDocInfo$BuilderparseDocumentation
???,recordConstancy
????build)()Lcom/google/javascript/rhino/JSDocInfo;
8???setJSDocInfoK(Lcom/google/javascript/rhino/JSDocInfo;)Lcom/google/javascript/rhino/Node;
????	stringKey
8???
srcrefTree
C??G
isTopLevel
8??,isIf
8??,isHook
8??,	hasParent
8??,isBlock
?
?(Lcom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)VKcom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports$1

^(Lcom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports;Ljava/util/List;)V
C	

visitPreOrderT(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeUtil$Visitor;)V
8
,isTrue	?ifRoot
"reportNestedScopesDeleted	??
C?getEnclosingChangeScopeRoot
toModuleName
getUniqueNameIdSupplier()Ljava/util/function/Supplier; !"?cjava/util/function/Supplier$1%8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;'3com/google/javascript/jscomp/FunctionToBlockMutator
&)
*O(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/util/function/Supplier;)V
&,-.mutateWithoutRenaming?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Ljava/lang/String;ZZ)Lcom/google/javascript/rhino/Node;
801,hasTwoChildren
834,isVar$
878getQualifiedName
C:;<newName?(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
?>??
8@A,hasChildren
8CDQ	cloneNode
8FG"addChildToBack
8IJ,isNot
8LM?addChildrenAfter
OP"reportNestedScopesChangedR3com/google/javascript/jscomp/NodeTraversal$CallbackT)com/google/javascript/jscomp/ErrorHandlerRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;	SignatureRLjava/util/List;RLjava/util/List;8Ljava/util/List;8(Lcom/google/javascript/jscomp/ProcessCommonJSModules;)VCodeLineNumberTableLocalVariableTablethisKLcom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports;MethodParametersisCommonJsModule
StackMapTableR(Lcom/google/javascript/jscomp/CheckLevel;Lcom/google/javascript/jscomp/JSError;)VignoredLevel)Lcom/google/javascript/jscomp/CheckLevel;error&Lcom/google/javascript/jscomp/JSError;getModuleExports()Ljava/util/List;T()Ljava/util/List;
getExportsshouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
nodeTraversal,Lcom/google/javascript/jscomp/NodeTraversal;nparentvisitmaybeGetPropexistingPattern@Lcom/google/javascript/jscomp/ProcessCommonJSModules$UmdPattern;umdTestAncestorWLcom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports$UmdTestInfo;	qNameRootv"Lcom/google/javascript/jscomp/Var;tgrandparentdepcalldependenciescallbackreportModuleErrorsinitializeModulemoduleExport@Lcom/google/javascript/jscomp/ProcessCommonJSModules$ExportInfo;
changeRootassignprop	qNameBaseexport	newExportoldIndexI	oldExportkeyrValuebasedefaultPropci,Lcom/google/javascript/jscomp/CompilerInput;
modulePath;Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;
moduleNameLjava/lang/String;exportsToRemoveexportsToReplaceLjava/util/LinkedHashMap;directAssignments
initModule/Lcom/google/javascript/rhino/JSDocInfo$Builder;LocalVariableTypeTable?Ljava/util/LinkedHashMap;umdTestInfoumdTests4Ljava/util/List;replaceUmdPatterns	inlinedFnexprassignedNamecallRootParentenclosingFnCallfnenclosingScriptfactoryLabelmutator5Lcom/google/javascript/jscomp/FunctionToBlockMutator;
newStatementscallRootnewNodeblock
umdPatternchangeScopeneedsRetraverse
SourceFileProcessCommonJSModules.javaNestHostBootstrapMethods?
???1?$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;??
_factory?_iifeInnerClassesFindImportsAndExports
ExportInfoUmdTestInfo
UmdPattern?.com/google/javascript/jscomp/deps/ModuleLoader
ModulePath?%com/google/javascript/rhino/Node$PropPropBuilder?-com/google/javascript/jscomp/NodeUtil$VisitorVisitorCallback?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup 
QSUVWX WY#WY&WZ
[\?@*+?*?	*?*?*?Y??*?Y??*?Y??!*?Y??$?]6	78>?)@4A^@_`@a?b,\[%*?!?'?*??'?*????];^%_`c
@5d\N*?$,?-W?]
EF^ _`efgha	egij\2*??1?]I^_`Wklj\2*?!?1?]M^_`Wkmn\},?7?*????<*,??]RSTV^*_`opqrc@a
oqrs?\??-?-?B?
-?H?0,?K?),?N:??R?V??[?V?*?,?^??a,?d?V?	*+,?g,k?m?/,?q??,?dt?m??,?v?y?y,?v?|????j*?+,????*???Y,+?????-W*-??:?9*,???1*?????:?*???Y???????-W?a??,?V?
??,?V?M*-??:?A*,???9*?????:?&?????*???Y?????-W,???8?,?|???,+???????:??™*?,??:????m???ə?,?̶K?R,???K,?϶ҙ,??k?m?,?϶ՙ+,?϶dk?m?*?!??Y,+?????-W??*?????????ضd,?t*?$?????߹-W?[*?!??Y,+?????-W*-??:?9*,???1*?????:?*???Y???????-W?1,??*,??ҙ +??*?!??Y,+?????-W*?,??
*+,-??]?;\]^_`a)b:c?iSjYmcnjovp?q?r?s?x?y?z?{?|????	???+?<?S?f?t?????????????????????????????	??4?J?Q?^?l?q???????????^?
 t? uv?;wx+(uvCwxl uvQ;wx?ytz{?_`?|p?q?rc,?'8?4?c?I?-??G8?W-a
|qr??\?O,???J-?K?C-??H?9+????*?,?,?,?	,?
?W-??:-?W*????]:?????$?(?,?0?3?7?=?B?N?^4=}O_`O|pOCOrc?Na
|Crij\,?#?+*??,?'??Y*SY,?,?/S?߶3?,?vN-?7?*??-?'??Y:S?߶3?-?d:?2?y? *???'??Y:S?߶3???:???-??:?^4~_`|p5???y?c0?'8?8)?	?:8a	|?\},*?$?WL+?[?+?`??M*??,?3???](+^gh,_`c?
\? ?,\??*??*??d?hL+??M,??+?kN?Y?:*?!?W:?[???`??:?o?r??-W???*??o??:?o??o??ՙ?o?̶K??o?u???o?????o?϶ҙ??o??k?m?x*??W:?[?1?`??:		?o?o?Ϧ*?	?xW?????o?̶?:?o?̶W?-W*??????o?϶ՙ??o?϶dk?m???o??:?o????{?-W*??????o??q???o?϶y???o?϶|~???v?o?̶ՙh?o??u?Z?o??uk?m?G?o??:??:	?o??:
?o?
??|?????{*??	????*?!??W????Y??:*??W:?[???`??:?o?r??-W?_?o?q?T?o?v?:??Y?o???|??????:	?o	?o?{*??	?o?	??W??v*???W????:?[?@?`??:*???6*???W*??????????6*??W:?[???`??:?o?r????*??o??:		?o?j?o??ՙ\?o??:

?
???	???
???7
?d:?+?????????	??
??:??֧?]-???8?Ƹ?:?d???M?d?ѸԶ?:??W???W?*?!?'?g*??'?[~??:		???M	?8?ƶQ?N	?Q*?!?'?*??'??Զ?:??W	???W*?*????Q*??*???*?!?'?*??'???]?h'()*-"/+0L1W2a3d5r6?7?8?9?:?>???@?A?B	CEGH(I2J>NTQWR\SbTlU|V?W?X?[?\?]?^?_?`?a?bcde)d,g8i;kGlNmWnxo?p?q?r?s?u?v?w?x?z?{?|}*~6K?N?Q?r?}????????????????????????????&?.?4???\?d?m?y???????????????^???	"?l&??:r3}	)?
r??L????D??&??	xt??*!??.???-??O?
?q?	r???dP?	?_`??????"???+??W???Q?????.????+??YW???c?????(\?-??r8\4?1?S????&?\?-??[??\?F?
\?#??<88?8
?	??(?\??Y8??>8?;@??\??+?+??
+?NCOFQHRJSfUxV?W?X?h?i?j?k?l?m?n?o?p?q?r?stu$v,w0z5{A|F~KX?^?a?f?k?u???????????????????????????????????????%?.?:?C?F?P?\?h?k?^?k?;????????0?
[?T?	M?
71??>*??f??
????????s?D$rK???? H?v???m_`k?c??\?-??;88"?-8\?88?8?B888?"???8\?888888??&8888???8?8\?888888??&8?8?A?!8\????????????Z??????????8?@???	?C?	Q??	???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy