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

com.google.javascript.jscomp.ClosureRewriteClass.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~
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback()V		
0com/google/javascript/jscomp/ClosureRewriteClasscompiler/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/NodeisCall()Z
isGoogDefineClass%(Lcom/google/javascript/rhino/Node;)Z

validateUsage	!"#GOOG_CLASS_TARGET_INVALID-Lcom/google/javascript/jscomp/DiagnosticType;%java/lang/String
'()*+$com/google/javascript/jscomp/JSErrormake?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
-./01-com/google/javascript/jscomp/AbstractCompilerreport)(Lcom/google/javascript/jscomp/JSError;)V
345maybeRewriteClassDefinitionQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
789	getParent$()Lcom/google/javascript/rhino/Node;	;<=>?2com/google/javascript/jscomp/ClosureRewriteClass$1,$SwitchMap$com$google$javascript$rhino$Token[I
ABCgetToken%()Lcom/google/javascript/rhino/Token;
EFGHI!com/google/javascript/rhino/Tokenordinal()I
KL9getLastChild
NOisExprResult
QRisContainedInGoogDefineClass
TUisObjectLit
WXisStringKey
Z[\]%com/google/javascript/jscomp/NodeUtilisNameDeclaration
_`9
getFirstChild
b4c?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
ZefisExprAssign
hiisQualifiedName
klmextractClassDefinition?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ClosureRewriteClass$ClassDefinition;
op9detach
rstrewriteGoogDefineClass?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/ClosureRewriteClass$ClassDefinition;)V
ZvwxgetBestJSDocInfoK(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
Zz{|getArgumentForCallOrNewG(Lcom/google/javascript/rhino/Node;I)Lcom/google/javascript/rhino/Node;
~isNull	???GOOG_MODULE_GET+Lcom/google/javascript/rhino/QualifiedName;
Z???isCallToP(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/QualifiedName;)Z	??# GOOG_CLASS_SUPER_CLASS_NOT_VALID
Z??isNullOrUndefined?Object
???matchesName(Ljava/lang/String;)Z
???validateObjLitG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
??I
getChildCount	??#GOOG_CLASS_UNEXPECTED_PARAMS?constructor
???extractPropertyX(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
????%com/google/javascript/rhino/JSDocInfoisInterface	??##GOOG_CLASS_CONSTRUCTOR_ON_INTERFACE	??#GOOG_CLASS_CONSTRUCTOR_MISSING
??
isFunction	??# GOOG_CLASS_CONSTRUCTOR_NOT_VALID?
?????com/google/javascript/rhino/IRname6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
???srcrefF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
????	paramListG([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
???9block
????function?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
-???reportChangeToChangeScope%(Lcom/google/javascript/rhino/Node;)V?statics	??#GOOG_CLASS_STATICS_NOT_VALID
????	objectlit
???maybeDetach?@com/google/javascript/jscomp/ClosureRewriteClass$ClassDefinition?Acom/google/javascript/jscomp/ClosureRewriteClass$MemberDefinition
???n(Lcom/google/javascript/rhino/JSDocInfo;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
???objectLitToList4(Lcom/google/javascript/rhino/Node;)Ljava/util/List;
????(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/JSDocInfo;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/ClosureRewriteClass$MemberDefinition;Ljava/util/List;Ljava/util/List;Lcom/google/javascript/rhino/Node;)V
??	hasParent
???reportErrorOnContext
??isMemberFunctionDef
??isComputedProp	??#0GOOG_CLASS_ES6_COMPUTED_PROP_NAMES_NOT_SUPPORTED
??isArrowFunction	??#+GOOG_CLASS_ES6_ARROW_FUNCTION_NOT_SUPPORTED
?isQuotedStringKey
9getNext
	$com/google/common/base/Preconditions
checkState(Z)V	#GOOG_CLASS_DESCRIPTOR_NOT_VALID
	getString()Ljava/lang/String;
$equals(Ljava/lang/Object;)Zjava/util/ArrayList

9getFirstFirstChild
9	cloneNode
 !	setString(Ljava/lang/String;)V
#$9removeFirstChild&'()java/util/Listadd
+,detachChildren	?.?/CLcom/google/javascript/jscomp/ClosureRewriteClass$MemberDefinition;	?123value"Lcom/google/javascript/rhino/Node;
567setJSDocInfoK(Lcom/google/javascript/rhino/JSDocInfo;)Lcom/google/javascript/rhino/Node;	?9?3
;<9	cloneTree
?>?@declaration?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Token;)Lcom/google/javascript/rhino/Node;
BCisModuleBody
EFG
mergeJsDocFor?(Lcom/google/javascript/jscomp/ClosureRewriteClass$ClassDefinition;Lcom/google/javascript/rhino/Node;Z)Lcom/google/javascript/rhino/JSDocInfo;
IJ?addChildToBack
?LMNassignh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;	?PQRinfo'Lcom/google/javascript/rhino/JSDocInfo;
TU9getOnlyChild
?WX?
exprResult	?Z[3
superClass]
goog.inherits
Z_`anewQNamee(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
cd?
srcrefTree
?fghcalli(Lcom/google/javascript/rhino/Node;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
jk?fixupSrcref	?mnostaticPropsLjava/util/List;&qrsiterator()Ljava/util/Iterator;uvwxjava/util/IteratorhasNextuz{|next()Ljava/lang/Object;
~isCast	?9
????getprop	???oprops
??getQualifiedName???makeConcatWithConstants8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
???srcrefTreeIfMissing
??IgetSourceOffset
??I	getLength
???	setLength(I)V	???3
classModifier
??9getSecondChild
???builder6()Lcom/google/javascript/jscomp/NodeTraversal$Builder;
?????2com/google/javascript/jscomp/NodeTraversal$BuildersetCompilere(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;???visit?(Lcom/google/javascript/jscomp/ClosureRewriteClass;Ljava/lang/String;Lcom/google/javascript/jscomp/ClosureRewriteClass$ClassDefinition;)Lcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallbackInterface;
????setCallback?(Lcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallbackInterface;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
???
???
fixupFreeCall
??9removeChildren
???addChildrenAfterG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
??reportCodeChange	???	FREE_CALL'Lcom/google/javascript/rhino/Node$Prop;
???putBooleanProp+(Lcom/google/javascript/rhino/Node$Prop;Z)V	???GOOG_DEFINE_CLASS
????)com/google/javascript/rhino/QualifiedNamematches?,com/google/javascript/rhino/JSTypeExpression	E???BANG#Lcom/google/javascript/rhino/Token;
????string
??H(Lcom/google/javascript/rhino/Token;Lcom/google/javascript/rhino/Node;)V?
???7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V	???R	classInfo
????1()Lcom/google/javascript/rhino/JSDocInfo$Builder;
?????-com/google/javascript/rhino/JSDocInfo$BuilderparseDocumentation
????build*(Z)Lcom/google/javascript/rhino/JSDocInfo;
????copyFromX(Lcom/google/javascript/rhino/JSDocInfo;)Lcom/google/javascript/rhino/JSDocInfo$Builder;
???isExport
???removeExport?

?com/google/common/base/Joineron3(Ljava/lang/String;)Lcom/google/common/base/Joiner;
?	skipNulls!()Lcom/google/common/base/Joiner;
?	
getBlockDescriptionjava/lang/Object
?joinK(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/String;
$isEmpty
??recordBlockDescriptionjava/util/LinkedHashSet

?getSuppressions()Ljava/util/Set; !"#
java/util/SetaddAll(Ljava/util/Collection;)Z
?&'(recordSuppressions(Ljava/util/Set;)V
?*+isDeprecated
?-.recordDeprecated
?01getDeprecationReason
?34?recordDeprecationReason
?678
getVisibility4()Lcom/google/javascript/rhino/JSDocInfo$Visibility;	:;<=>0com/google/javascript/rhino/JSDocInfo$Visibility	INHERITED2Lcom/google/javascript/rhino/JSDocInfo$Visibility;
?@ABrecordVisibility5(Lcom/google/javascript/rhino/JSDocInfo$Visibility;)Z
?DE
isAbstract
?GHrecordAbstract
?JK
isConstant
?MNrecordConstancy
?PQrecordExport
?ST
isNgInject	VW#GOOG_CLASS_NG_INJECT_ON_CLASS
?YZ[recordNgInject(Z)Z
?]^makesUnrestricted
?`arecordUnrestricted
?cd
makesDicts
?fg
recordDict
?ijrecordStruct
?lmusesImplicitMatch
?oprecordImplicitMatch
?rsrecordInterface
?uvIgetExtendedInterfacesCount
?xyzgetExtendedInterfaces()Ljava/util/List;
|}~getSuperclassForR(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSTypeExpression;
?????'com/google/common/collect/ImmutableListof=(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
????recordExtendedInterface1(Lcom/google/javascript/rhino/JSTypeExpression;)Z
???recordConstructor
????getBaseType0()Lcom/google/javascript/rhino/JSTypeExpression;
????recordBaseType
???zgetImplementedInterfaces
????recordImplementedInterface
????getTemplateTypes*()Lcom/google/common/collect/ImmutableMap;
?????&com/google/common/collect/ImmutableMapentrySet*()Lcom/google/common/collect/ImmutableSet;
???r?&com/google/common/collect/ImmutableSet2()Lcom/google/common/collect/UnmodifiableIterator;?java/util/Map$Entry???|getKey???|getValue
????recordTemplateTypeNameC(Ljava/lang/String;Lcom/google/javascript/rhino/JSTypeExpression;)Z
????)()Lcom/google/javascript/rhino/JSDocInfo;
??isName
???replaceWith
-???reportChangeToEnclosingScope?JSC_GOOG_CLASS_TARGET_INVALID?(Unsupported class definition expression.
?????+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;?$JSC_GOOG_CLASS_SUPER_CLASS_NOT_VALID?6The super class must be null or a valid name reference?#JSC_GOOG_CLASS_DESCRIPTOR_NOT_VALID?.The class must be defined by an object literal?"JSC_GOOG_CLASS_CONSTRUCTOR_MISSING?>The 'constructor' property is missing for the class definition?$JSC_GOOG_CLASS_CONSTRUCTOR_NOT_VALID?7The 'constructor' expression must be a function literal?'JSC_GOOG_CLASS_CONSTRUCTOR_ON_INTERFACE?@An interface definition should not have a 'constructor' property? JSC_GOOG_CLASS_STATICS_NOT_VALID?BThe class 'statics' property must be an object or function literal? JSC_GOOG_CLASS_UNEXPECTED_PARAMS?'Too many arguments to goog.defineClass.?4JSC_GOOG_CLASS_ES6_COMPUTED_PROP_NAMES_NOT_SUPPORTED?:Computed property names not supported in goog.defineClass.?/JSC_GOOG_CLASS_ES6_ARROW_FUNCTION_NOT_SUPPORTED?jArrow functions not supported in goog.defineClass. Object literal method definition may be an alternative.?!JSC_GOOG_CLASS_NG_INJECT_ON_CLASS?B@ngInject should be declared on the constructor, not on the class.
????warning?goog.defineClass
?????(Ljava/lang/String;)Lcom/google/javascript/rhino/QualifiedName;?goog.module.get?)com/google/javascript/jscomp/CompilerPassVIRTUAL_FILELjava/lang/String;
ConstantValue2(Lcom/google/javascript/jscomp/AbstractCompiler;)VCodeLineNumberTableLocalVariableTablethis2Lcom/google/javascript/jscomp/ClosureRewriteClass;MethodParametersprocessexternsroots(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vt,Lcom/google/javascript/jscomp/NodeTraversal;nparent
StackMapTabletargetdefBLcom/google/javascript/jscomp/ClosureRewriteClass$ClassDefinition;
targetNamecallNodedescription
paramCountIstaticsPropRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;nodekeyobjlitkeyNodekeyNameresultLocalVariableTypeTableULjava/util/List;	Signaturey(Lcom/google/javascript/rhino/Node;)Ljava/util/List;declmergedClassInfoexprargListargargNameexprRootclsstmts	superName	superNodeextend.Lcom/google/javascript/rhino/JSTypeExpression;extendedInterfacesbaseTypeimplemented
interfacesentryLjava/util/Map$Entry;associatedNodeincludeConstructorExportZctorInfo
mergedInfo/Lcom/google/javascript/rhino/JSDocInfo$Builder;blockDescriptionsuppressionsLjava/util/Set;deprecationReason
visibilityclassTemplates(Lcom/google/common/collect/ImmutableMap;
ctorTemplates@Ljava/util/List;WLjava/util/Map$Entry;#Ljava/util/Set;jLcom/google/common/collect/ImmutableMap;lambda$rewriteGoogDefineClass$0?(Ljava/lang/String;Lcom/google/javascript/jscomp/ClosureRewriteClass$ClassDefinition;Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)VnewNameunused
SourceFileClosureRewriteClass.javaNestMembersBootstrapMethodsU
VWX?Y$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;[
.prototype.]
^_`ab"java/lang/invoke/LambdaMetafactorymetafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;e
fKLInnerClassesAbstractPostOrderCallbackj3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackClassDefinitionMemberDefinitionBuilderpMcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallbackInterface"AbstractPostOrderCallbackInterfaces%com/google/javascript/rhino/Node$PropProp
Visibilityw
java/util/MapEntryz%java/lang/invoke/MethodHandles$Lookup|java/lang/invoke/MethodHandlesLookup ?"#?##?#?#?#?#?#?#?#W#???????F
*?*+??bc	d

?L
*?,*?
?
h	i 

	3

3		
??/,??$,??*,??*?,? ?$?&?,*+,?2?mn(p.q*//
/3/3(
?N+?6M?:,?@?D.?<6?+,?J?,?6?M???*,?P??xy,{.}FL? NN3I3?,@R?,+?)+?6L+??+?????+?S???+?V??ܧ?"??	????'?*?,,345?A,?Y?,?^N-?^:*+,-?a?%,?d?,?^N-?^:-?J:*+,?a?*
?????%?*?0?6?@?R3	23*M3036
23AA
A3!	4c?C??=-?g?*?,? ?$?&?,*-?j:??nW-?nW*+,?q?&	???!?*?/?5?:?B?>*CC
C3C3C23! 2lm?
?+?uN,?y:??}?*?g?"?????*?,???$?&?,????
????:,?y:*,????,??d6?*?,???$?&?,????:-?$-????M*????$?&?,??*????$?&?,????*????$?&?,?3???,?????,????,????:,??W*????u::	:
и?:?F?S?*?6????:
?'???
:	?*????$?&?,?
????:
?6??W
?6??W	?	?6??W??Y+-?ػ?Y?ط?
?ظ???	?ط????????&?,?>?@?R?U?\?f?h?p?v????????????????????	?
??


"),/8=ESU\dk!x"{!~#?'?(?-?.?/?0?2?5?6?7?8?9?2z??3?3??R?[3\?3pn?K?3)?QR,??3	/??3
8?3O?,???!?-4?2??
	
??M*?*??*?nW*?=>@3??$?+?
+?S?
*,???+?^N-?j-???X-??*?+???$?&?,?-?V?!-?^???*?+???$?&?,?-?V?
-???
*,???-?N????FKLMPQ"R%T,V>X@ZQ\c^e`saxbzP?e*k3??3?3	?
$
?	???6+?V?*?+???$?&?,?+??*?+?
?$?&?,?ijn#o5q663
???#*?^M,?,?
+??,?^?,?M????w	xyw!| 3#3# ???	 
???O?Y?L*?^M,?;,N,??,??N-,?
?+??Y,?u-,?"?߹%W,?M???*?*+?2?????"?*?0?;?A?I?M?*.?3
<3O3G!o"G!#?
&??$%st???:-?-?0?4W,?Y?H-?8?:-?-?0,?@?=,??:*-,?6?A???D:?4W?H?J-?8?:-?-?0?K,??-?-?O?4:*-,?S?D:?4W?V,??:?H-?Y?A*?\?^-?Y?b?Y-?8?:SY-?Y?:S?e-?Y???V?i?H-?l?p:?t?i?y??:?0?}?
?0?4W-?8?:???
???????0?K?i?O?4?V?i?H*+?J?2???-???p:?t???y??:?0?4W*?-?8?????
???^?0?K?O?4?V:????W?0???0??`????d???H*+?J?2??u-???h-????:?^:?
:??*???*-????-???J??-???Y-?8?:S?e-???????V-?????H,?6:??:,??,?nW+???JR?????.?3?8?F?K?S?Z?]?a?o?y?~???????????????????????????????
???%?8?@?C?K?N?Q?T?W?a?d????????????????????????????????
???"?.?5;KO	VY\c
fiov~???3'&3K'R~&M3?'R?(3
W/?;X3?u/
\)3U*3N+???
?,3?-??3o3v.3k?E???????F?D?
u?*??D?
u???k
,-
k?9**?^??W*?
	3
??C*??*????*? !g3gS*?*????*?^?ͬ?()+232}~?>+?g?+??M?+?????+?J?
M??Y?Y??,?ط?+?b޷?2356!8-9=8*/?>>03!/?	?$0FG3 +???
+??
?????:+?-?O?
+?-?O?
?????:+?Y:+?-?O???	???:????	??W????????
:???W?Y?:		??W	??W	?$?
	?%?)?	?,W:
?/??/:

?2W?5:??9??5??W?C?	?FW?I?	?LW???	?OW?R?*?,?U?$?&?,?XW?\??\??_W?"?b??b??eW?	?hW???????6???k??k??nW?	?qW:
?t?
?w:
??t??*?{?:

?-
?p:?t??y??:??W???e??W???????W??*?{:

??W??:

?p:?t??y??:??W?????:
??:
????:?t?,?y??:???$???Ҷ?W???????:?t?,?y??:???$???Ҷ?W??????BPFGHK$L.M:O@SJTRUZXfYl]w^|_?]?`?a?e?f?g?h?i?m?n?q?r?s?t?x?yz}~!?)?/?7?=?E?W?^?n?w????????????????????????????"?*?-?0?6?>?L?Q?Y?a?h??????????????????????"12?Y3o
Y42
?52h*6o
?78?78  - 93 :;?R:?<R@?03Z?=>?????@A	?CB?
?%C>?s?;??DE
??FE"H?Y3G
h*6G
?7H?7H?@I	??DJ
??FJ?(I???I???E????+$?3
?$?:


 @??&?
u? ?&u? ???u?2?	u?2
-9:KL?.???(?
+??,?8?::??*??????$-HM3..+?.-.N
.3.3-O???¸ij ?̸ij??иij
?Ըij??ظij??ܸij???ij???ij???ij???ij????U???????????>-15$90=<AHETI`MfNlRrSxY?]?^PQR;??STZ\cdcgbh	ik	;?l?m
?noq	rt@??n	:?u@?vx	y{}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy