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

com.google.javascript.jscomp.ModuleImportResolver.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()V		
1com/google/javascript/jscomp/ModuleImportResolver	moduleMap0Lcom/google/javascript/jscomp/modules/ModuleMap;	nodeToScopeMapperLjava/util/function/Function;	registry3Lcom/google/javascript/rhino/jstype/JSTypeRegistry;
 com/google/javascript/rhino/NodeisCall()Z
hasTwoChildren
 !getSecondChild$()Lcom/google/javascript/rhino/Node;
#$isStringLit
&'!
getFirstChild
)*	isGetProp
,-isName
/01	getString()Ljava/lang/String;3goog
56789java/lang/Stringequals(Ljava/lang/Object;)Z	;<=GOOG_DEPENDENCY_CALLS(Lcom/google/common/collect/ImmutableSet;
?@AB9&com/google/common/collect/ImmutableSetcontains	DEFGOOG_MODULE_GET+Lcom/google/javascript/rhino/QualifiedName;
HIJKL)com/google/javascript/rhino/QualifiedNamematches%(Lcom/google/javascript/rhino/Node;)Z
NOP getScopedNameForClosureNamespace=(Ljava/lang/String;)Lcom/google/javascript/jscomp/ScopedName;
RSTUV.com/google/javascript/jscomp/modules/ModuleMapgetClosureModuleA(Ljava/lang/String;)Lcom/google/javascript/jscomp/modules/Module;	XYZ[\3com/google/javascript/jscomp/ModuleImportResolver$1L$SwitchMap$com$google$javascript$jscomp$modules$ModuleMetadataMap$ModuleType[I
^_`ab+com/google/javascript/jscomp/modules/ModulemetadataI()Lcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata;
defghEcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata
moduleTypeE()Lcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleType;
jklmnAcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleTypeordinal()I
dpq!rootNode
stisScript
vw!getGrandparent
yz{|}'com/google/javascript/jscomp/ScopedNameof_(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ScopedName;
??getGoogModuleScopeRootQ(Lcom/google/javascript/jscomp/modules/Module;)Lcom/google/javascript/rhino/Node;?exports?+com/google/javascript/jscomp/modules/Export?	*exports*?java/lang/IllegalStateException?0Type checking CommonJs modules not yet supported
???(Ljava/lang/String;)V?"Cannot import a name from a SCRIPT?java/lang/AssertionError
?
d??isGoogModule
?????$com/google/common/base/Preconditions
checkArgument(ZLjava/lang/Object;)V
??hasOneChild
??!getOnlyChild
??isModuleBody
?????%com/google/javascript/jscomp/NodeUtilgetFunctionBodyF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
d??isEs6Module
????'com/google/javascript/jscomp/TypedScope
isModuleScope
?????&com/google/common/collect/ImmutableMapbuilder2()Lcom/google/common/collect/ImmutableMap$Builder;
^???
boundNames*()Lcom/google/common/collect/ImmutableMap;
????entrySet*()Lcom/google/common/collect/ImmutableSet;
????iterator2()Lcom/google/common/collect/UnmodifiableIterator;????java/util/IteratorhasNext????next()Ljava/lang/Object;?java/util/Map$Entry????getValue?,com/google/javascript/jscomp/modules/Binding????getKey
???isCreatedByEsImport
???getScopedNameFromEsBindingY(Lcom/google/javascript/jscomp/modules/Binding;)Lcom/google/javascript/jscomp/ScopedName;
y??!getScopeRoot?????java/util/function/Functionapply&(Ljava/lang/Object;)Ljava/lang/Object;
???!
sourceNode
????
checkState
?????.com/google/common/collect/ImmutableMap$BuilderputV(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
y??1getName
????getVar;(Ljava/lang/String;)Lcom/google/javascript/jscomp/TypedVar;
???%com/google/javascript/jscomp/TypedVargetType-()Lcom/google/javascript/rhino/jstype/JSType;
?isTypeInferred
?declare?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/jstype/JSType;Lcom/google/javascript/jscomp/CompilerInput;Z)Lcom/google/javascript/jscomp/TypedVar;
?
isModuleNamespace

getTypedefTypeProp
?!getNameNode
setTypedefTypeProp.(Lcom/google/javascript/rhino/jstype/JSType;)V
1com/google/javascript/rhino/jstype/JSTypeRegistrydeclareTypei(Lcom/google/javascript/rhino/StaticScope;Ljava/lang/String;Lcom/google/javascript/rhino/jstype/JSType;)Z
??buildOrThrow
^ !?	namespace
#$%&'-com/google/javascript/rhino/jstype/ObjectTypeisPropertyTypeDeclared(Ljava/lang/String;)Z
?)*!getRootNode	,-./0/com/google/javascript/rhino/jstype/JSTypeNativeUNKNOWN_TYPE1Lcom/google/javascript/rhino/jstype/JSTypeNative;
234
getNativeType^(Lcom/google/javascript/rhino/jstype/JSTypeNative;)Lcom/google/javascript/rhino/jstype/JSType;
#678defineInferredPropertyb(Ljava/lang/String;Lcom/google/javascript/rhino/jstype/JSType;Lcom/google/javascript/rhino/Node;)Z
:;<updateAstForExport{(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/jstype/JSType;Lcom/google/javascript/rhino/jstype/JSType;)V
?>?@getSlot>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;	,BC0NO_TYPE
#EF8defineDeclaredProperty
HIJ	setJSTypeO(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/Node;
LM!	getParent
OPisExportSpec
RS!getNext
?UV1	boundName
?_
?YZ[originatingExport/()Lcom/google/javascript/jscomp/modules/Export;
?]^bmoduleMetadata
?`a1closureNamespace
?cd1
exportNamefghmakeConcatWithConstants8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;j.Typechecking CommonJS modules is not supported
lmLisGoogModuleBody
opq
getInputId'()Lcom/google/javascript/rhino/InputId;stuvw2com/google/javascript/jscomp/CompilerInputProvidergetInputS(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput;
?yz?checkNotNull|*com/google/javascript/jscomp/CompilerInput
{~?getPath=()Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;
R???	getModulej(Lcom/google/javascript/jscomp/deps/ModuleLoader$ModulePath;)Lcom/google/javascript/jscomp/modules/Module;?:Typechecking of non-goog- and non-es-modules not supported	???GOOG_MODULE'Lcom/google/javascript/rhino/Node$Prop;
???getBooleanProp*(Lcom/google/javascript/rhino/Node$Prop;)Z
??isBlock
??
isFunction
???LisBundledGoogModuleCall?require?requireType?forwardDeclare?requireDynamic
??|?r(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;?goog.module.get
H?|??(Ljava/lang/String;)Lcom/google/javascript/rhino/QualifiedName;	SignaturejLjava/util/function/Function;GOOGLjava/lang/String;
ConstantValue;?(Lcom/google/javascript/jscomp/modules/ModuleMap;Ljava/util/function/Function;Lcom/google/javascript/rhino/jstype/JSTypeRegistry;)VCodeLineNumberTableLocalVariableTablethis3Lcom/google/javascript/jscomp/ModuleImportResolver;LocalVariableTypeTableMethodParameters?(Lcom/google/javascript/jscomp/modules/ModuleMap;Ljava/util/function/Function;Lcom/google/javascript/rhino/jstype/JSTypeRegistry;)VisGoogModuleDependencyCallvalue"Lcom/google/javascript/rhino/Node;calleeowner
StackMapTablegetClosureNamespaceTypeFromCallM(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ScopedName;googRequiremoduleIdRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;provide	scopeRoot
moduleBodymodule-Lcom/google/javascript/jscomp/modules/Module;functionLiteral
scriptNodedeclareEsModuleImports?(Lcom/google/javascript/jscomp/modules/Module;Lcom/google/javascript/jscomp/TypedScope;Lcom/google/javascript/jscomp/CompilerInput;)Lcom/google/common/collect/ImmutableMap;typedefType+Lcom/google/javascript/rhino/jstype/JSType;binding.Lcom/google/javascript/jscomp/modules/Binding;	localNameexport)Lcom/google/javascript/jscomp/ScopedName;modScope)Lcom/google/javascript/jscomp/TypedScope;originalVar'Lcom/google/javascript/jscomp/TypedVar;
importTypeLjava/util/Map$Entry;scopemoduleInput,Lcom/google/javascript/jscomp/CompilerInput;missingNames0Lcom/google/common/collect/ImmutableMap$Builder;WLjava/util/Map$Entry;}Lcom/google/common/collect/ImmutableMap$Builder;?(Lcom/google/javascript/jscomp/modules/Module;Lcom/google/javascript/jscomp/TypedScope;Lcom/google/javascript/jscomp/CompilerInput;)Lcom/google/common/collect/ImmutableMap;updateEsModuleNamespaceType?(Lcom/google/javascript/rhino/jstype/ObjectType;Lcom/google/javascript/jscomp/modules/Module;Lcom/google/javascript/jscomp/TypedScope;)V	exportKeybindingSourceNode
originalScopeoriginalName
exportType/Lcom/google/javascript/rhino/jstype/ObjectType;?)com/google/javascript/rhino/jstype/JSTypeclosureModuleObjectnameoriginalMetadataGLcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata;getModuleFromScopeRoot?(Lcom/google/javascript/jscomp/modules/ModuleMap;Lcom/google/javascript/jscomp/CompilerInputProvider;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/modules/Module;googModuleCallinput
inputProvider4Lcom/google/javascript/jscomp/CompilerInputProvider;
SourceFileModuleImportResolver.javaNestMembersBootstrapMethods?
???g?$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;.InnerClasses6com/google/javascript/jscomp/modules/ModuleMetadataMapModuleMetadata
ModuleTypeBuilder	
java/util/MapEntry9com/google/javascript/jscomp/deps/ModuleLoader$ModulePath.com/google/javascript/jscomp/deps/ModuleLoader
ModulePath%com/google/javascript/rhino/Node$PropProp%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup0?????2<=??EF??~*?*+?*,?
*-???89	:;<?*?????
???L??a*?*??*??
*??"??*?%L+?(??+?%M,?+?,?.2?4??:+?.?>?
?C+?G????:GHIJKM#N*O,Q1R9SHTUU`R? a??#>??10????
?$	@?????j*???+??.M*,?M??ce	gh? ???????	????OP?g?*?+?QM,???W,?]?c?i.??'EE]q{,?]?oN-?-?r?+-?u?x??*,?~:?
??x??,?]?o?%:??x???Y??????Y??????Y????>u	v
wyD|L}W~`?b?i?z??????????>L??i???????????	????#
?^4???@y?		????????F+?]??+?]??+?]?oM,?r?,???,?????,???,??
,?N-?????*
????%?.?3?:???D??*???F??F??0???	?3????????s+?]??+??,??,????:+??????:????????:????:???5:?ٚ???*??:	*?
	?????:

?(??.?4?????	??W???
	????:??:,??-??W?	?4???)??:

???
?*?,
?W??"???n????:?F?R?Z?]?e?x?}???????????????????????????????
???
F???R???e???	x???
?T???M??:?V?????????????:?V?????<?$???8??5?Dy??_^?{????
?????????
,?]??,??-??-??,?????:????????:???5:+?"????????:??:*??:		??-?(?-?*?
	?????:

?*+*??+?1?5W**??+?1?9??k
	???=??:??:?*??A?1:??+?5W?+?DW*???9????? ???5?A?J?M?Y?`?htx??????
???????????zA???Y???`???h???	????
?I???B??5?V???!??????5?V??E	???-?5?*?yP??-??&??
?#^??
!??;<??+,?GW+-?+?K?N?+?Q,?GW??#$%')?*??????????
????	??????+?	???+?TM+?	?
+?W?
+?X?\N?W-?c?i.??VVV&??-?o:??r????,?????x?*+?_?M:?+?_?x?+?	????+?X?b?e??x?,?x???Yi?????Y????V/123'4X6^9u:?>???@?C?E?F?H?I?J?H?N?P?R?>^*???2???????????'????PC5?5Fd?1d?@R5??5d5??y	?
?????[,?k?,?%N-?%??.:*?Q?,???6,?KN+-?n?r?x?{:*?}??:?]????????6
XYZ[\&]+^=_HaJbSaVdYf?R??!?+.??=??H??[[??[???9?
????
mL??5*???*?K?????*???*?K???*?u???????jklm$n2m3p?5???@????<???????:????C??345???X??BXd	j@??	?
	
@




© 2015 - 2024 Weber Informatics LLC | Privacy Policy