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

com.google.javascript.jscomp.ProcessCommonJSModules.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?
Ccom/google/javascript/jscomp/NodeTraversal$AbstractPreOrderCallback()V		
3com/google/javascript/jscomp/ProcessCommonJSModulescompiler/Lcom/google/javascript/jscomp/AbstractCompiler;
*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/rhino/NodeisRoot()Z
isScript
 !-com/google/javascript/jscomp/AbstractCompiler
getOptions0()Lcom/google/javascript/jscomp/CompilerOptions;
#$%&',com/google/javascript/jscomp/CompilerOptionsgetModuleResolutionModeA()Lcom/google/javascript/jscomp/deps/ModuleLoader$ResolutionMode;	)*+,-=com/google/javascript/jscomp/deps/ModuleLoader$ResolutionModeWEBPACK?Lcom/google/javascript/jscomp/deps/ModuleLoader$ResolutionMode;
/01removeWebpackModuleShim%(Lcom/google/javascript/rhino/Node;)V3Icom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports
2568(Lcom/google/javascript/jscomp/ProcessCommonJSModules;)V
89:getModuleLoader2()Lcom/google/javascript/jscomp/deps/ModuleLoader;
<=>?@.com/google/javascript/jscomp/deps/ModuleLoadergetErrorHandler-()Lcom/google/javascript/jscomp/ErrorHandler;
<BCDsetErrorHandler.(Lcom/google/javascript/jscomp/ErrorHandler;)V
FGH
getInputId'()Lcom/google/javascript/rhino/InputId;
JKLgetInputS(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput;
NOPQR*com/google/javascript/jscomp/CompilerInputgetJsModuleType9()Lcom/google/javascript/jscomp/CompilerInput$ModuleType;	TUVWX5com/google/javascript/jscomp/CompilerInput$ModuleTypeIMPORTED_SCRIPT7Lcom/google/javascript/jscomp/CompilerInput$ModuleType;
2Z[isCommonJsModule
]^_`a'com/google/common/collect/ImmutableListbuilder3()Lcom/google/common/collect/ImmutableList$Builder;	2cdeumdPatternsLjava/util/List;ghijjava/util/ListisEmpty
2lmreplaceUmdPatterns
opqremoveIIFEWrapper%(Lcom/google/javascript/rhino/Node;)Z
2stinitializeModule
2vwxgetModuleExports()Ljava/util/List;
z{|}~/com/google/common/collect/ImmutableList$BuilderaddAllG(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList$Builder;
2??x
getExports
2??reportModuleErrors?Acom/google/javascript/jscomp/ProcessCommonJSModules$RewriteModule
z???build+()Lcom/google/common/collect/ImmutableList;
???i(Lcom/google/javascript/jscomp/ProcessCommonJSModules;ZLcom/google/common/collect/ImmutableCollection;Z)V
N???getPath=()Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;
???
getModuleNameO(Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;)Ljava/lang/String;
?????9com/google/javascript/jscomp/deps/ModuleLoader$ModulePathtoModuleName()Ljava/lang/String;
??isCall
?????$com/google/common/base/Preconditions
checkArgument(Z)V
???
getFirstChild$()Lcom/google/javascript/rhino/Node;?__webpack_require__.t
???matchesQualifiedName(Ljava/lang/String;)Z
???getBasePropertyImport&(Ljava/lang/String;)Ljava/lang/String;
???getModuleTypeByNameK(Ljava/lang/String;)Lcom/google/javascript/jscomp/CompilerInput$ModuleType;	T??XCOMMONJS???makeConcatWithConstants
???isCommonJsImportd(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/deps/ModuleLoader$ResolutionMode;)Z
??hasTwoChildren?__webpack_require__
???getSecondChild
??isNumber
??isStringLit?require
???hasXChildren(I)Z?__webpack_require__.bind
??isNull
???getLastChild
???getCommonJsImportPathu(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/deps/ModuleLoader$ResolutionMode;)Ljava/lang/String;
???
getChildCount()I
???getChildAtIndex%(I)Lcom/google/javascript/rhino/Node;
???	getDouble()D
?????java/lang/StringvalueOf(I)Ljava/lang/String;
???	getString
???6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
???getImportedModuleNamet(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Ljava/lang/String;
?K?.()Lcom/google/javascript/jscomp/CompilerInput;
?getSourceFileName
?	getLineno
?	getCharno
?
resolveJsModulec(Ljava/lang/String;Ljava/lang/String;II)Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;
-com/google/javascript/jscomp/ModuleIdentifierforFileC(Ljava/lang/String;)Lcom/google/javascript/jscomp/ModuleIdentifier;
??module.exports
	isGetElemmoduleexports
? !equals(Ljava/lang/Object;)Z
#$%getScope&()Lcom/google/javascript/jscomp/Scope;
'()*+"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;- com/google/javascript/jscomp/Var
,/0isExtern
23isName
,56isGlobal
89:isCommonJsExport?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/deps/ModuleLoader$ResolutionMode;)Z
<=
isFunction
?@qisWebpackRequireEnsureCallback
BC?	getParent
EFhasChildren
HI	isGetProp
KL?getFirstFirstChildN__webpack_require__.ePthen	RSTPROMISE_ALL+Lcom/google/javascript/rhino/QualifiedName;
VWXYq)com/google/javascript/rhino/QualifiedNamematches
[\?getNext
^_
isArrayLit
ab	hasParent
deisQualifiedName
?gh?
checkState
h
klisExprResult
noisNotqcall
stisThis
vwxyq%com/google/javascript/jscomp/NodeUtil'doesFunctionReferenceOwnArgumentsObject?|3com/google/javascript/jscomp/FunctionToBlockMutator
~?getUniqueNameIdSupplier()Ljava/util/function/Supplier;
{??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;
???removeChildren
??1addChildrenToFront
??1reportNestedScopesDeleted
??1reportChangeToEnclosingScope
v???getFunctionParametersF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;	???	FREE_CALL'Lcom/google/javascript/rhino/Node$Prop;
???getBooleanProp*(Lcom/google/javascript/rhino/Node$Prop;)Z
??q
???matchesName
????toString?/buildin/module.js
????contains(Ljava/lang/CharSequence;)Z
???detach
??1reportChangeToChangeScope?5com/google/javascript/jscomp/ProcessCommonJSModules$1
?5
v???
visitPreOrderT(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeUtil$Visitor;)V?5com/google/javascript/jscomp/ProcessCommonJSModules$2
?5g???iterator()Ljava/util/Iterator;????java/util/IteratorhasNext????next()Ljava/lang/Object;?>com/google/javascript/jscomp/ProcessCommonJSModules$UmdPattern	????ifRoot"Lcom/google/javascript/rhino/Node;?)JSC_COMMONJS_UNKNOWN_REQUIRE_ENSURE_ERROR?%Unrecognized require.ensure call: {0}
?????+com/google/javascript/jscomp/DiagnosticTypewarningS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;	???UNKNOWN_REQUIRE_ENSURE-Lcom/google/javascript/jscomp/DiagnosticType;?*JSC_COMMONJS_SUSPICIOUS_EXPORTS_ASSIGNMENT?\Suspicious re-assignment of "exports" variable. Did you actually intend to export something?	???SUSPICIOUS_EXPORTS_ASSIGNMENT?Promise.all
V???of?(Ljava/lang/String;)Lcom/google/javascript/rhino/QualifiedName;?
define.amd	??T
DEFINE_AMD?
window.define	??T
WINDOW_DEFINE?window.define.amd	??TWINDOW_DEFINE_AMD?require.ensure	??TREQUIRE_ENSUREgoog.provide	TGOOG_PROVIDEgoog.module		TGOOG_MODULE	TMODULE_EXPORTS)com/google/javascript/jscomp/CompilerPassEXPORTSLjava/lang/String;
ConstantValueMODULEREQUIREWEBPACK_REQUIREWEBPACK_REQUIRE_NAMESPACEEXPORT_PROPERTY_NAMEdefault2(Lcom/google/javascript/jscomp/AbstractCompiler;)VCodeLineNumberTableLocalVariableTablethis5Lcom/google/javascript/jscomp/ProcessCommonJSModules;MethodParametersprocessG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)VexternsrootshouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)ZneedsRetraverseZfinderKLcom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports;moduleLoaderErrorHandler+Lcom/google/javascript/jscomp/ErrorHandler;
moduleTypeforceModuleDetectiondefaultExportIsConst1Lcom/google/common/collect/ImmutableList$Builder;t,Lcom/google/javascript/jscomp/NodeTraversal;nparentLocalVariableTypeTablesLcom/google/common/collect/ImmutableList$Builder;
StackMapTable8)com/google/javascript/jscomp/ErrorHandler@(Lcom/google/javascript/jscomp/CompilerInput;)Ljava/lang/String;input,Lcom/google/javascript/jscomp/CompilerInput;
modulePath;Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;H(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
moduleNamerequireCallresolutionModepathArgumentb(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
importPathv"Lcom/google/javascript/jscomp/Var;exportQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)ZisCommonJsDynamicImportCallback	arrayItemallElementsAreDynamicImportsfnc
callParentcallParentTargetgetBaseQualifiedNameNode	refParentci	iifeLabelmutator5Lcom/google/javascript/jscomp/FunctionToBlockMutator;block
callTargetparamsmoduleParamparamparamNumberI
isFreeCallarg
argCallTargetreportNestedScopesChangedfindUmdPatternt(Ljava/util/List;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ProcessCommonJSModules$UmdPattern;umd@Lcom/google/javascript/jscomp/ProcessCommonJSModules$UmdPattern;RLjava/util/List;	Signature?(Ljava/util/List;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ProcessCommonJSModules$UmdPattern;
SourceFileProcessCommonJSModules.javaNestMembersn5com/google/javascript/jscomp/ProcessCommonJSModules$3pUcom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports$UmdTestInforKcom/google/javascript/jscomp/ProcessCommonJSModules$FindImportsAndExports$1t>com/google/javascript/jscomp/ProcessCommonJSModules$ExportInfoBootstrapMethodsw
xyz?{$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;}	.default
_iifeWrapperInnerClassesAbstractPreOrderCallback?3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackResolutionModeFindImportsAndExports
ModuleTypeBuilder
RewriteModule
ModulePath?%com/google/javascript/rhino/Node$PropProp?-com/google/javascript/jscomp/NodeUtil$VisitorVisitor
UmdPattern
ExportInfoUmdTestInfo?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup1
???????ST?T?T?T?TT	TTF
*?*+??HI	J

 !Y*?,*?
*?+*?
?N	OP "?#?	"#$%B*,???,??*???"?(?*,?.?2Y*?4:*??7?;:*??7?A*?,?
*?,?E?I?M:?S??66?Y6	?\:
	??k?b?f?A6?k?6*,?n?6?#?2Y*?4:*??7?A*?,?
?r6
?u?yW
??yW??*??7?A*?,??Y*	???
?????
??"TU	VW X%[/\;]G^Q`abpcsezfg?h?i?j?k?o?p?s?t?u?v?z?|?}?????%?(?z?;&'/?();?*+a?,Xp?-'s?.'z?['	?/
**01*2?*3?4?5
6?
	?G27T@?27Tz?
?$?$27Tz?27Tz?27Tz?
023	?9^*??L+??+?????	??:;<=6??:>?	??/*????:=:?@?+,????*???"?(?,??????+?*+??????#?%? ++A+B?6%	AB??u*?+??M,?,???+?+????	??? A	,X6?TA?qC+*???"????B?B	??!?*???W*???P+?(?1*??Ķ??*??????*?ƶɚ
*?ƶ̙?*??϶??Q*?ƶ̙G?*???>*?љ6+?(?/*??ն??#*?ƶי*?ڶɚ
*?ڶ̙??F???"?.?8?A?C?P?Y?[?d?r?~????????B??C-6-?	BC??C+*???"?ݰ?B?B	???9+?(?-*???*??*??M,?ə,?鎸??,??*?ƶ?"?????#?,?1? D?9B?9C-6C??	BC?EJ*+,*,?????? 01B?	0B???,+????-,?,?,??	:?-?
????????	???&?4,,01,2?,F<=6?&?
02F	9:&?+???1+??H+?????;+?ƶ̙1+?ƶ???!*?"?&?,N-?
-?.???3+?1?,+???*?"+??&?,N-?
-?4???6
)8F	Q
Sj
y??4F
GHy
GH?01?I??C-68?,??-,?
0IC9JV+,*???"?7? 01I?	0I	K?n*?
+?(??*?;?*?>???&'
)*-2?C-6	2C
@q??*?;??*?A??*?AL+????+?D?+???G?
+?J????+?J??M,M???+????O????Q,?U?R,?Z?K,?Z?]?A>,?Z??:?/????????M????>?Z:?????r=>?BCDG&H0I9J;LCNNO]P_QjRqSzT|U?V?X?Y?Z?[?]?W?_?a4?1L?|<M'?N??O?CwP?6 
?
?#?%"??NQ?v+M,?`?,?A?c?,?AM???,????? 2?R?6	?2pq?
0+??f+??M,?,?i?,?ZM???,?,?j?
,?Z??,?,?D?,???m?,??M,??N-?
-????-???;?,?J:?O-???G?C-?J?;?9-????p??)-?J:-???-?ƶr?-????????u??*?+?E?I:??:?????z:?{Y*?*??}??:-??:	+??W+	????*??*?+????%?????1?3?H?M?R?]?_?i?r?}???????????????????????????????????? ?&?.?zoN?? N?00#?$2?R?q??rN??[S;?T<=?AT-UVW?	6-
???G??	?N?#01iO+??f+??M,?,?i?,?ZM???,?,?j?
,?Z??,??N-?
-????-??:?;??:??::??:6	?-?	?1?????
:?
?Z:?????-????6
-
?	?	`??:????:???????x*???o?Z???a*??:
*?+?E?I??
????	:????????!??W??W*???*?????0?????1?2?7?B?C?I?Q?R?V?]?`?g?j?o?r???????	?
??????????
!"!0"6#<$E%N(??VF
2<=OO#?C2?7q?IX?V?N?]?Y?`?Z?g?[?j?\]	??^'
??_???`?6?????
$	???
?_???+#?1E
+??Y*?????
??

2?2a1E
+??Y*?????
??

2?2
bc?)*??M,???,????N-??+?-???????"?$?'? 
de)de)2?4)df6???	d2gh>?i?a?Ӹճ???ճ???Q????????????????????
?267:;0!**+3,<-E.N/W0jkl	m?2oqs???uv|v~???	??	)<?@2?TN?@z]????<???@??v?	???ms?o2?q???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy