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

com.google.javascript.jscomp.GenerateExports.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/LinkedHashSet
	
,com/google/javascript/jscomp/GenerateExportsexportedVariablesLjava/util/Set;
$com/google/common/base/PreconditionscheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;	allowNonGlobalExportsZ	 !exportSymbolFunctionLjava/lang/String;	#$!exportPropertyFunction&0com/google/javascript/jscomp/FindExportableNodes
%()3(Lcom/google/javascript/jscomp/AbstractCompiler;Z)V
+,-./*com/google/javascript/jscomp/NodeTraversaltraverse?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
%123
getExports()Ljava/util/LinkedHashMap;
%563getEs6ClassExports
%89:getLocalExports()Ljava/util/LinkedHashSet;<=>?@
java/util/Setiterator()Ljava/util/Iterator;BCDEFjava/util/IteratorhasNext()ZBHIJnext()Ljava/lang/Object;Ljava/lang/String
NOP	addExtern(Ljava/lang/String;)VRSTUF
java/util/MapisEmpty
WXYvalidateExportMethodsIncludedC(Ljava/util/Map;Ljava/util/Map;Lcom/google/javascript/rhino/Node;)ZR[\]entrySet()Ljava/util/Set;_java/util/Map$Entry^abJgetKeyd com/google/javascript/rhino/Node^fgJgetValue
ijkaddExportForEs6Method7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V
mnoaddExportMethodF(Ljava/util/Map;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)VRqrsvalues()Ljava/util/Collection;uvwxyjava/util/Collectionstream()Ljava/util/stream/Stream;{|}~java/util/stream/Stream	findFirst()Ljava/util/Optional;
????Jjava/util/OptionalgetR??]keySet<v	???MISSING_EXPORT_CONVENTION-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;
?????-com/google/javascript/jscomp/AbstractCompilerreport)(Lcom/google/javascript/jscomp/JSError;)V
c???	getParent$()Lcom/google/javascript/rhino/Node;
???includesExportMethods%(Lcom/google/javascript/rhino/Node;)Z	???MISSING_GOOG_FOR_EXPORT
???declareExportMethodsInExterns%(Lcom/google/javascript/rhino/Node;)V?2com/google/javascript/jscomp/SyntacticScopeCreator
???2(Lcom/google/javascript/jscomp/AbstractCompiler;)V
????createScopel(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Scope;)Lcom/google/javascript/jscomp/Scope;
?????%com/google/javascript/jscomp/NodeUtilgetRootOfQualifiedName&(Ljava/lang/String;)Ljava/lang/String;
?????"com/google/javascript/jscomp/ScopehasSlot(Ljava/lang/String;)Z
K???equals(Ljava/lang/Object;)Z
???declareSyntheticExternsVar7(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V
????getSynthesizedExternsInput.()Lcom/google/javascript/jscomp/CompilerInput;
?????*com/google/javascript/jscomp/CompilerInput
getAstRootS(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/rhino/Node;
?????com/google/javascript/rhino/IRname6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
????varF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
c???
srcrefTree
????
getSourceFile+()Lcom/google/javascript/jscomp/SourceFile;
c???setStaticSourceFileR(Lcom/google/javascript/rhino/StaticSourceFile;)Lcom/google/javascript/rhino/Node;
c???addChildToBack
????reportChangeToEnclosingScope?Object.prototype
????newQNamee(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
????getTypeRegistry5()Lcom/google/javascript/rhino/jstype/JSTypeRegistry;	?????/com/google/javascript/rhino/jstype/JSTypeNativeOBJECT_FUNCTION_TYPE1Lcom/google/javascript/rhino/jstype/JSTypeNative;
?????1com/google/javascript/rhino/jstype/JSTypeRegistry
getNativeType^(Lcom/google/javascript/rhino/jstype/JSTypeNative;)Lcom/google/javascript/rhino/jstype/JSType;
c?
getFirstChild
c	setJSTypeO(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/Node;
?	
getpropX(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
?
?
exprResult
?getSynthesizedExternsRoot
cPsetOriginalName
KindexOf(I)I<?add
K	substring(II)Ljava/lang/String;
c !FisMemberFunctionDef
#$%
checkArgument(ZLjava/lang/Object;)V
KS
c()*	getString()Ljava/lang/String;,-.makeConcatWithConstants8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
012addExportPropertyCall[(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Ljava/lang/String;Ljava/lang/String;)V
c45F	isGetProp
c78*getQualifiedName:	prototypeR<=?containsKey
?@?addExportSymbolCall
?B?C?(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
?EF?string
?HIJcalli(Lcom/google/javascript/rhino/Node;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
cLM?srcrefTreeIfMissing
OPQaddStatementG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
STPrecordExportSymbol
?VWXgetCodingConvention1()Lcom/google/javascript/jscomp/CodingConvention;
?Z[?isStatementBlock
c]^?getNext
?`a?
isExprCallcdefg-com/google/javascript/jscomp/CodingConventiongetClassesDefinedByCallh(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/CodingConvention$SubclassRelationship;
cij?insertAfterlJSC_MISSING_EXPORT_CONVENTIONnk@export cannot be used without defining a exportProperty and exportSymbol function in the coding convention
pqrst+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;v$JSC_MISSING_EXPORT_SYMBOL_DEFINITIONx[@export cannot be used without including closure/base.js or other definition of {0} and {1}z)com/google/javascript/jscomp/CompilerPassPROTOTYPE_PROPERTY
ConstantValueRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;	Signature#Ljava/util/Set;RuntimeInvisibleAnnotations1Lcom/google/common/annotations/VisibleForTesting;W(Lcom/google/javascript/jscomp/AbstractCompiler;ZLjava/lang/String;Ljava/lang/String;)VCodeLineNumberTableLocalVariableTablethis.Lcom/google/javascript/jscomp/GenerateExports;MethodParametersgetExportedVariableNames%()Ljava/util/Set;processexportentryLjava/util/Map$Entry;context"Lcom/google/javascript/rhino/Node;externsrootfindExportableNodes2Lcom/google/javascript/jscomp/FindExportableNodes;exportsLjava/util/Map;
es6ExportslocalExportsLocalVariableTypeTableKLjava/util/Map$Entry;KLjava/util/Map$Entry;ELjava/util/Map;ELjava/util/Map;
StackMapTable
errorLocation?(Ljava/util/Map;Ljava/util/Map;Lcom/google/javascript/rhino/Node;)ZglobalScope$Lcom/google/javascript/jscomp/Scope;exportPropertyRootexportSymbolRootsrcrefsyntheticInput,Lcom/google/javascript/jscomp/CompilerInput;syntheticVarRootvarDeclarationobjectPrototypeobjCtor+Lcom/google/javascript/rhino/jstype/JSType;propstmtqnamedotImemberFunction	ownerName
fullExportnode	ownerNodemethodOwnerNameisEs5StylePrototypeAssignmentpropertyNamechilduseExportSymbol|(Ljava/util/Map;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V
expressionstmt
convention/Lcom/google/javascript/jscomp/CodingConvention;nexprRoot
SourceFileGenerateExports.javaBootstrapMethods?
???-?$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;?.InnerClasses?3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackEntry?Bcom/google/javascript/jscomp/CodingConvention$SubclassRelationshipSubclassRelationship?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup!y{!|9 !}~$!}~??????????**?*?Y?	?
+?W*+?*?*-?*?"??"K-LNOP#Q)R?4*??*** !*$!? $}~~?]?/*?
??U?????Q?Y??%Y*?*??'N*?,-?*-?0:-?4:-?7:?;:?A??G?K:*?M????Q?
?Q?*,?V???Z?;:?A?*?G?^:*?`?c?e?K?h????Z?;:?A?4?G?^:?`?K:	?e?c:
*	
?l??ȱ?RZ\]^%_+aJbPcSegfsgtk?l?m?o?p?q?r?s?t?zJ?!?????!	?
??
?"?????????????????%???+???4????"?????%???+????8?4cc%RR<B??
B?0?
B?:?	??XY?O?+?Q?+?p?t?z???c:?,?????z???c:*??
*?"?*????K?????*-?????,*????KY*?SY*?"S????*?????6
?	?$?<?J?]?_?j????????????>!??????????????<Y??????????$?c
3?
????????9??Y*???+??M*?"??N*???:,-???,?????????"??49??9??(?? ?!"?!??7?KK@??????.*?"??M*???N,-???*,+???*,+??*-+????????!?'?-??*.??.??&?!?!??!KK??????@*???N-*???:+?ϸ?,??:*??Ŷܶ?W??*????????/?6????>@??@?!@??8??.??!???	??OP??N*???M*??????N,?-?W,+??:*???W+?*???*????&	?
??!?+?5?;?D?M??4N??N?!
D??6??+#????TP??++.?=?*?
+?W?*?
+??W??????*?? +??+?!$??????jk??/+?+?",?&??,?",+?'?+N*,+-+?'?/?????#?.??*/??/??/?!#?!?@?	??no??
?:6:-?:???3?7-?:?:		?6:	?3?	?'9???6?':6?	6??+?;?6?*,-?>?
*-,?/??R???	???"?)?0?F?I?P?S?X?^?n?qv??p".??)'??	????????!?????!??	??!{??S7??????/?I
RKcKKccc??

	?
????12??Y+?W*?*?",*?"?A?cY*?+,*?"?ASY?DSY*?-,*?"?AS?G:?,?K:*,?N??*
%-=A
FQX?HY??Y?!Y??Y?!Y?!FI?Q???????@???@*+?R*?*?,+?A?cY+?DSY*?+,+?AS?GN-?,?K:*,?N??&	 "$'&(*#.,8.?/?4@??@?!@??.I?8???	??PQ?\*??UN+::???Y?
??:????\:? ?_?-??b?
:???,?h*?,???:24567$=+>2?;@FAJEMGSH[I?H+I?\??\??\??T??Q??M????ccc(?	????9*???*??ɰ?M?????Akm?o??uw?o????/0676??????"?+?	^R?	?c?	???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy