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

com.google.javascript.jscomp.GatherModuleMetadata$Finder.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?1com/google/javascript/jscomp/GatherModuleMetadata	8com/google/javascript/jscomp/GatherModuleMetadata$Finderthis$03Lcom/google/javascript/jscomp/GatherModuleMetadata;


java/lang/Object()Vjava/util/LinkedHashSet
	toggleModuleNamesLjava/util/Set;	
toggleModules	3com/google/javascript/jscomp/GatherModuleMetadata$1,$SwitchMap$com$google$javascript$rhino$Token[I
 !"#$ com/google/javascript/rhino/NodegetToken%()Lcom/google/javascript/rhino/Token;
&'()*!com/google/javascript/rhino/Tokenordinal()I
,-./0*com/google/javascript/jscomp/NodeTraversalgetInput.()Lcom/google/javascript/jscomp/CompilerInput;
23456*com/google/javascript/jscomp/CompilerInputgetPath=()Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;
89:enterModule?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;)V
<=>visitImportOrExportQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
 @ABisCall()Z	DEFGOOG_LOADMODULE+Lcom/google/javascript/rhino/QualifiedName;
 HIJ
getFirstChild$()Lcom/google/javascript/rhino/Node;
LMNOP)com/google/javascript/rhino/QualifiedNamematches%(Lcom/google/javascript/rhino/Node;)Z	RSTloadModuleCall"Lcom/google/javascript/rhino/Node;	VWX
currentModuleILcom/google/javascript/jscomp/GatherModuleMetadata$ModuleMetadataBuilder;	Z[\]^Gcom/google/javascript/jscomp/GatherModuleMetadata$ModuleMetadataBuilder
hasModuleBodyZ
`abvisitDynamicImport%(Lcom/google/javascript/rhino/Node;)V
defgh$com/google/common/base/PreconditionscheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;	jklmnAcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleType
ES6_MODULECLcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleType;
Zpqr
moduleType?(Lcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleType;Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
 tuBisImport
 wxBhasTwoChildren
 z{JgetLastChild
 }~BisStringLit	Z???metadataBuilderOLcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata$Builder;
?????Mcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata$Builderes6ImportSpecifiersBuilder7()Lcom/google/common/collect/ImmutableMultiset$Builder;
 ???	getString()Ljava/lang/String;
?????3com/google/common/collect/ImmutableMultiset$BuilderaddI(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMultiset$Builder;
Z?
??(Lcom/google/javascript/jscomp/GatherModuleMetadata;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;)V	??XparentModule	???INVALID_NESTED_LOAD_MODULE-Lcom/google/javascript/jscomp/DiagnosticType;?java/lang/String
,???reporte(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V
Z???buildI()Lcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata;
????6Ecom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadatapath	???
modulesByPathLjava/util/Map;
?????9com/google/javascript/jscomp/deps/ModuleLoader$ModulePathtoString?????
java/util/Mapput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
????googNamespaces/()Lcom/google/common/collect/ImmutableMultiset;
?????+com/google/common/collect/ImmutableMultisetiterator2()Lcom/google/common/collect/UnmodifiableIterator;????Bjava/util/IteratorhasNext????next()Ljava/lang/Object;	???modulesByGoogNamespace
????nestedModulesBuilder3()Lcom/google/common/collect/ImmutableList$Builder;
?????/com/google/common/collect/ImmutableList$BuilderE(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder;	??^processCommonJsModules
Z??BisScript	???moduleResolutionMode?Lcom/google/javascript/jscomp/deps/ModuleLoader$ResolutionMode;
?????3com/google/javascript/jscomp/ProcessCommonJSModulesisCommonJsExport?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/deps/ModuleLoader$ResolutionMode;)Z	j??n	COMMON_JS
??leaveModule
??>	visitName
??>
visitGoogCall
????J com/google/javascript/jscomp/VargetNameNode
 ??BisImportStar?goog
?equals(Ljava/lang/Object;)Z
 J	getParent
 	BisEmpty/goog.js
?
endsWith(Ljava/lang/String;)Z
java/util/Setcontains
,getScope&()Lcom/google/javascript/jscomp/Scope;
"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;
  !B	isGetProp
#$%	addTogglec(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V
'()*P%com/google/javascript/jscomp/NodeUtilisNameDeclaration	,-?INVALID_TOGGLE_USAGE/?toggle modules may not be used other than looking up properties
123isFromGoogImport%(Lcom/google/javascript/jscomp/Var;)Z
?567usesClosureR(Z)Lcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata$Builder;
 9:BhasChildren
 <=BisQualifiedName
 ?@BisName
?BCBisLocal
?EF.()Lcom/google/javascript/jscomp/AbstractScope;
HIB
isModuleScope
'KLMgetEnclosingScriptF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;	OPTGOOG_PROVIDE
 RSPmatchesQualifiedName	jUPn
WXYaddNamespace?(Lcom/google/javascript/jscomp/GatherModuleMetadata$ModuleMetadataBuilder;Lcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleType;Ljava/lang/String;Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V	[\]^?1com/google/javascript/jscomp/ClosureRewriteModuleINVALID_PROVIDE_NAMESPACE	`aTGOOG_MODULE	jcan	[ef?INVALID_MODULE_ID_ARG	hiTGOOG_MODULE_GETk
$2etogglesmJgoog.module.get of toggles module must immediately look up a single toggle	opT"GOOG_MODULE_DECLARELEGACYNAMESPACE
ZrsbrecordDeclareLegacyNamespace	uvTGOOG_DECLARE_MODULE_ID	xyTGOOG_MODULE_DECLARNAMESPACE	Z{|TdeclaredModuleId	~?!MULTIPLE_DECLARE_MODULE_NAMESPACE
Z??brecordDeclareModuleId	???INVALID_DECLARE_MODULE_ID_CALL	??TGOOG_REQUIRE
????%stronglyRequiredGoogNamespacesBuilder
 ??BisDestructuringLhs
 ???children()Ljava/lang/Iterable;?????java/lang/Iterable()Ljava/util/Iterator;
 ??BisStringKey?%must be destructured with string keys??
??q?E()Lcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleType;?import must be assigned	?????3com/google/javascript/jscomp/ClosurePrimitiveErrorsINVALID_REQUIRE_NAMESPACE	??TGOOG_REQUIRE_TYPE
????#weaklyRequiredGoogNamespacesBuilder	???INVALID_REQUIRE_TYPE	??TGOOG_MAYBE_REQUIRE
????"maybeRequiredGoogNamespacesBuilder	???INVALID_MAYBE_REQUIRE	??TGOOG_SET_TEST_ONLY
 ??BhasOneChild
???7
isTestOnly	???INVALID_SET_TEST_ONLY	??TGOOG_REQUIRE_DYNAMIC
????(dynamicallyRequiredGoogNamespacesBuilder	???INVALID_REQUIRE_DYNAMIC?TOGGLE_
???
startsWith
???*length
????	substring(I)Ljava/lang/String;
????readTogglesBuilder?*all toggle names must start with `TOGGLE_`
j	j??nLEGACY_GOOG_MODULE	???compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
?????-com/google/javascript/jscomp/AbstractCompiler
getOptions0()Lcom/google/javascript/jscomp/CompilerOptions;
?????,com/google/javascript/jscomp/CompilerOptions
getLanguageIn=()Lcom/google/javascript/jscomp/CompilerOptions$LanguageMode;
?????9com/google/javascript/jscomp/CompilerOptions$LanguageModetoFeatureSet:()Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;
'???isValidQualifiedNameM(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;Ljava/lang/String;)Z	?INVALID_NAMESPACE_OR_MODULE_ID
$com/google/javascript/jscomp/JSErrormake?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
?	?
)(Lcom/google/javascript/jscomp/JSError;)V

isValidModuleId	Z?.Lcom/google/common/collect/LinkedHashMultiset;
,com/google/common/collect/LinkedHashMultiset
,?
getSourceName?hget
??
?JrootNode
  ?getSourceFileName
?	#$L$SwitchMap$com$google$javascript$jscomp$modules$ModuleMetadataMap$ModuleType
j'	?'(?DUPLICATE_NAMESPACE_AND_MODULE	?*+?DUPLICATE_MODULE	?-.?DUPLICATE_NAMESPACE0java/lang/IllegalStateException234makeConcatWithConstantsW(Lcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleType;)Ljava/lang/String;
/6
7(Ljava/lang/String;)V93com/google/javascript/jscomp/NodeTraversal$Callback	Signature#Ljava/util/Set;3Ljava/util/Set;6(Lcom/google/javascript/jscomp/GatherModuleMetadata;)VCodeLineNumberTableLocalVariableTablethis:Lcom/google/javascript/jscomp/GatherModuleMetadata$Finder;MethodParametersshouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Zt,Lcom/google/javascript/jscomp/NodeTraversal;nparent
StackMapTableimportOrExport
dynamicImport;Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;	newModuleRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;	namespaceLjava/lang/String;moduleGLcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata;visits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V"Lcom/google/javascript/jscomp/Var;nameNodenameVarnamerootkey
callParentlhsgetprop	firstProp
toggleNameexistingModule
diagnosticexistingTypeexistingFileSourceg+com/google/javascript/jscomp/DiagnosticType
SourceFileGatherModuleMetadata.javaNestHostBootstrapMethodsm
nop3q$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;sUnexpected module type: InnerClassesFinderw.com/google/javascript/jscomp/deps/ModuleLoader
ModulePathModuleMetadataBuilder{6com/google/javascript/jscomp/modules/ModuleMetadataMap
ModuleTypeModuleMetadataBuilder?'com/google/common/collect/ImmutableList?=com/google/javascript/jscomp/deps/ModuleLoader$ResolutionModeResolutionModeLanguageModeCallback?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup0
8:;:<
=>R *+?*?	*?Y??*?Y?????	??@ ABCDE>
??,??%.?z%55>dr*+,+?+?1?7?H*+,?;??,???8?C,?G?K?+*?,?Q*+,?7?*??U?Y?*,?_???6
?0?=?@?F?I?]?e?o?z?}??@*?AB?FG?HT?ITJ0%
C
FHI=>>?K*??U?cW*??U?i+,?o,?s?,?v?%,?y?|?*??U???,?y????W??"
"2<@J@ KABKFGKKTJ2C	FKab>p#+?G?|?*??U???+?G????W??
"@#AB#LTJ"CL9:>?G?ZY*?,-??:*??U?'*????+,??????*?*??U??*??U?? !"##/%='F(@4GABGFGGHTG?M8NXJ	?/Z
C
FH?OP?>?*??U?cW*??U??L+???*???+????+??W+????M,???,????N*???-+??W???*????*??????+??W*?*????U*?????2+,-.20M1\2_3i4{6?7?8@ MQR?AB|STJ?2????$UV>0?*??ڙ9*??U?/*??U?ݙ"+,*????*??U??+,?o??,??%.?T!1(*???/*+,??&*??Q,?*??*??Q?*+,????><!?0@?A@ElGpHsJyK|M?N?O?Q?S?W@*?AB?FG?HT?ITJ
?@+C
FHI23>?B+??M,?:,???3,?????',??G??,??y??
?????Z]
^_`*aA]@ BABB?W=XTJ
?@ @C??>>Z?,??N*?-??T+?-???:*???9,?:??*+,???"??&?+,?+??Y.S???-???+?????:?
*?0??*??U??4W??Befgh-i3j;kIlQmctlumx{y?z?}?~@H30ITDYW?AB?FG?HT?ZR{[WJ?I?? ?	??C	FH?>>]?,?8?,?G??
,?G?;??,?GN,?G:??
?G:????>???????+?????:??A??D??G????D??G?
*?0??????J,?J?*??U??4W-?N?Q?_*??U?T+,?o,?v?+,?y?|?!,?y??:**??U?T+,?V??+,?Z????*??U??4W?x-?_?Q?_*??U?b+,?o,?v?+,?y?|?!,?y??:**??U?b+,?V?0+,?d????*??U??4W?-?g?Q?U,?v?,?y?|?,?y??j???,?:??+,?+??YlS???*+???"??-?n?Q?*??U,?q??-?t?Q?
-?w?Q?e*??U?z?+,?}????,?v?6,?y?|?,*??U,??,?y??:**??U?b+,?V?7+,???????(-???Q?,?v??,?y?|??,?y??:*??U?????Wj???,?:?G:???S????:		???:	??? :

???*+,
???"?+,?+??Y?S????§`?>?3??:	+?	???:
*?
??W*?	??W?(*??U????T?+,?+??Y?S???!+,???????-???Q?>,?v?(,?y?|?*??U???,?y????W??+,????????-???Q?>,?v?(,?y?|?*??U???,?y????W??+,????????-???Q?<,???,?v?,?y?|?*??U???W?T+,???????E-?ǶQ?;,?v?(,?y?|?*??U???,?y????W?+,?????????e?????!?'?/?9?N?O?]?x?y??????????????????????
??)?8?I?R?d?g?s????????????????????????????
??&?7?B?K?]?`?o?y????????????????????????%?3???K?a?s?v??????????????????
1CR\mw{??@??QRRQR?'ITKQR?(\T
%&ZR	3YW
??]T??^T??QR?AB?FG?HT!t_T'n`T]8[WJr)?
  ?)??G?G*?  ?9?b
,   ??  ??+ ??7?$55!5C	FH$%>??-жҙ%-жն?:*??U?????W?+,?+??Y?S????
 )!,">$@4aR?AB?FG?HT?ZRJ,C
FHZXY>?	p,?T??
,???4*??????-???*???????Y-S??,?b??
,???$-??*???????Y-S??::+?-??+???:?:?+*???-???:??:??:*??U?-?!W???"?%.?}%%%Q}},?T??	?&??):??Y-SYS???,?T??	?,??&:??Y-SYS????/Y?1?5????"0123%2+4E7S8Y:`;z?}@?A?B?C?E?F?G?H?K?L?MSTUV3W4\>]D^I__``foh@p?bTc?Ic?pABpSXpqnpQRpFGpHT}?dn??eRJ 0 ?#j?'?ABfBfCSqQFHhijklrtj
u?vxZyjz|@?z}	??~	??~	?~?v?@???@8,?	???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy