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

com.google.javascript.jscomp.ClosureCheckModule.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
Acom/google/javascript/jscomp/NodeTraversal$AbstractModuleCallbackj(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/modules/ModuleMetadataMap;)V		
/com/google/javascript/jscomp/ClosureCheckModulecurrentModuleInfo?@ com/google/javascript/rhino/Node	getParent$()Lcom/google/javascript/rhino/Node;	BCDGOOG_MODULE+Lcom/google/javascript/rhino/QualifiedName;
FGHIJ%com/google/javascript/jscomp/NodeUtilisCallToP(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/QualifiedName;)Z	LMNGOOG_MODULE_IN_NON_MODULE-Lcom/google/javascript/jscomp/DiagnosticType;
PQRreporte(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V
FTUV&isGoogModuleDeclareLegacyNamespaceCall%(Lcom/google/javascript/rhino/Node;)Z	XYN&DECLARE_LEGACY_NAMESPACE_IN_NON_MODULE	[\DGOOG_PROVIDE	^_NUSE_OF_GOOG_PROVIDE
<abcgetJSDocInfo)()Lcom/google/javascript/rhino/JSDocInfo;
efg
checkJSDocV(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/JSDocInfo;)V	ijklm1com/google/javascript/jscomp/ClosureCheckModule$2,$SwitchMap$com$google$javascript$rhino$Token[I
<opqgetToken%()Lcom/google/javascript/rhino/Token;
stuvw!com/google/javascript/rhino/Tokenordinal()I
<yz@
getFirstChild
|}~V)com/google/javascript/rhino/QualifiedNamematches	,???nameLjava/lang/String;
???extractFirstArgumentName6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
6???equals(Ljava/lang/Object;)Z	??NMULTIPLE_MODULES_IN_FILE
??VisFirstExpressionInGoogModule	??NGOOG_MODULE_MISPLACED	??DGOOG_REQUIRE	??DGOOG_REQUIRE_TYPE	??DGOOG_FORWARD_DECLARE
???checkRequireCalls(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V	??DGOOG_MODULE_GET
??inModuleHoistScope	????N3com/google/javascript/jscomp/ClosurePrimitiveErrorsMODULE_USES_GOOG_MODULE_GET	??D$GOOG_MODULE_DECLARE_LEGACY_NAMESPACE
???checkLegacyNamespaceCall
??VisExportLhs
???checkModuleExport
F??VisStatement
<??isClass
F???getEnclosingClassF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;	s???	OBJECTLIT#Lcom/google/javascript/rhino/Token;
F???getEnclosingTypei(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Token;)Lcom/google/javascript/rhino/Node;
F???getBestJSDocInfoK(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
????%com/google/javascript/rhino/JSDocInfoisExport	??NAT_EXPORT_IN_GOOG_MODULE	??NGOOG_MODULE_REFERENCES_THIS	??NGOOG_MODULE_USES_THROW
<???matchesQualifiedName(Ljava/lang/String;)Z
<??	isGetProp	??NREFERENCE_TO_MODULE_GLOBAL_NAME
<??isQualifiedName
<???getQualifiedName()Ljava/lang/String;
<???	getString
???checkImproperReferenceToImportu(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Ljava/lang/String;Ljava/lang/String;)Z
<??isName
<??hasChildren
<??@getOnlyChild
??getTypeNodes()Ljava/util/Collection;java/util/Collectioniterator()Ljava/util/Iterator;	
java/util/IteratorhasNext	next()Ljava/lang/Object;
checkTypeExpressionQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V1com/google/javascript/jscomp/ClosureCheckModule$1
`(Lcom/google/javascript/jscomp/ClosureCheckModule;Lcom/google/javascript/jscomp/NodeTraversal;)V
F
visitPreOrderT(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeUtil$Visitor;)V
 !" com/google/javascript/jscomp/VarisLocal	,$%&importsByLongRequiredNameLjava/util/Map;()*+,
java/util/Mapget&(Ljava/lang/Object;)Ljava/lang/Object;..
6012contains(Ljava/lang/CharSequence;)Z
456getScope&()Lcom/google/javascript/jscomp/Scope;
89:;<"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;
>?@
isLocalVar%(Lcom/google/javascript/jscomp/Var;)Z	BCN;REFERENCE_TO_SHORT_IMPORT_BY_LONG_NAME_INCLUDING_SHORT_NAME
EFGHI$com/google/javascript/jscomp/JSErrormake?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
KLMQN-com/google/javascript/jscomp/AbstractCompiler)(Lcom/google/javascript/jscomp/JSError;)V
<PQisDestructuringLhs
<STisObjectPattern
V!W(ZLjava/lang/Object;)V
<YZhasOneChild\]^makeConcatWithConstants8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
<`a@getNext
<cdisExprResult
FfgVisGoogForwardDeclareCall	ijN(REFERENCE_TO_FULLY_QUALIFIED_IMPORT_NAMElexports
<no?matchesName
<qrisAssign
tu"
checkArgument	,wx&exportNodesByName
<z{w	getLineno	}~NEXPORT_REPEATED_ERROR
6???valueOf(I)Ljava/lang/String;(???put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
??
inModuleScope	??NEXPORT_NOT_AT_MODULE_SCOPE	??NEXPORT_NOT_A_STATEMENT
F??VisPrototypeProperty
F???getEnclosingScript
F??VisLegacyGoogModuleFile	??N#AT_EXPORT_IN_NON_LEGACY_GOOG_MODULE
<??@getSecondChild
<??isStringLit
<??isCall
<??@getLastChild(???putIfAbsent
???checkShortGoogRequireCall	s???DESTRUCTURING_LHS
s?	s???NAME
<??@getGrandparent	??NREQUIRE_NOT_AT_TOP_LEVEL
<??isLet	??NLET_GOOG_REQUIRE	??NONE_REQUIRE_PER_DECLARATION
??VisValidDestructuringImport	??NINVALID_DESTRUCTURING_REQUIRE	???N%INVALID_DESTRUCTURING_FORWARD_DECLARE
???checkShortNamec(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V???accept|(Lcom/google/javascript/jscomp/ClosureCheckModule;Lcom/google/javascript/jscomp/NodeTraversal;)Ljava/util/function/Consumer;
F???visitLhsNodesInNodeB(Lcom/google/javascript/rhino/Node;Ljava/util/function/Consumer;)V
6???lastIndexOf(I)I
6???	substring
6)
6???charAt(I)C
?????com/google/common/base/AsciiisUpperCase(C)Z
????toLowerCase(C)C
????toUpperCase?]?'(CLjava/lang/String;)Ljava/lang/String;	??N"INCORRECT_SHORTNAME_CAPITALIZATION
<??isStringKey
<??w
getChildCount	?NLEGACY_NAMESPACE_ARGUMENT	N!LEGACY_NAMESPACE_NOT_AT_TOP_LEVEL
<@getPrevious
F	VisGoogModuleCall	N&LEGACY_NAMESPACE_NOT_AFTER_GOOG_MODULE
<isModuleBody
FVisBundledGoogModuleScopeRoot	,shortImportNamesLjava/util/Set;?
java/util/Setadd	NDUPLICATE_NAME_SHORT_REQUIRE JSC_AT_EXPORT_IN_GOOG_MODULE"d@export has no effect on top-level names in a goog.module. Consider using goog.exportSymbol instead.
$%&'(+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;*'JSC_AT_EXPORT_IN_NON_LEGACY_GOOG_MODULE,b@export is not allowed here in a non-legacy goog.module. Consider using goog.exportSymbol instead..JSC_GOOG_MODULE_IN_NON_MODULE0;goog.module() call must be the first statement in a module.2JSC_GOOG_MODULE_MISPLACED49goog.module() call must be the first statement in a file.6*JSC_DECLARE_LEGACY_NAMESPACE_IN_NON_MODULE8Ggoog.module.declareLegacyNamespace may only be called in a goog.module.:JSC_GOOG_MODULE_REFERENCES_THIS<2The body of a goog.module cannot reference 'this'.>JSC_GOOG_MODULE_USES_THROW@-The body of a goog.module cannot use 'throw'.B JSC_DUPLICATE_NAME_SHORT_REQUIREDDFound multiple goog.require statements importing identifier ''{0}''.F!JSC_INVALID_DESTRUCTURING_REQUIREH;Destructuring goog.require must be a simple object pattern.JJSC_AWAIT_GOOG_REQUIRE_CALLSLOgoog.require(Type) and goog.forwardDeclare can not be in an 'await' expression.	NONAWAIT_GOOG_REQUIRE_CALLSQJSC_LET_GOOG_REQUIRESIModule imports must be constant. Please use ''const'' instead of ''let''.
$UV(disabledXJSC_MULTIPLE_MODULES_IN_FILEZ?There should only be a single goog.module() statement per file.\JSC_ONE_REQUIRE_PER_DECLARATION^CThere may only be one goog.require() per var/let/const declaration.`&JSC_INCORRECT_SHORTNAME_CAPITALIZATIONbDThe capitalization of short name {0} is incorrect; it should be {1}.dJSC_EXPORT_NOT_AT_MODULE_SCOPEf,Exports must be at the top-level of a modulehJSC_EXPORT_NOT_A_STATEMENTjExports should be a statement.lJSC_EXPORT_REPEATED_ERRORnDName cannot be exported multiple times. Previous export on line {0}.p#JSC_REFERENCE_TO_MODULE_GLOBAL_NAMErUReferences to the global name of a module are not allowed. Perhaps you meant exports?t,JSC_REFERENCE_TO_FULLY_QUALIFIED_IMPORT_NAMEv?Reference to fully qualified import name ''{0}''. Imports in goog.module should use the return value of goog.require / goog.forwardDeclare instead.x?JSC_REFERENCE_TO_SHORT_IMPORT_BY_LONG_NAME_INCLUDING_SHORT_NAMEz\Reference to fully qualified import name ''{0}''. Please use the short name ''{1}'' instead.|JSC_USE_OF_GOOG_PROVIDE~3goog.provide is deprecated in favor of goog.module.?JSC_REQUIRE_NOT_AT_TOP_LEVEL?,goog.require() must be called at file scope.?%JSC_LEGACY_NAMESPACE_NOT_AT_TOP_LEVEL?()V
SourceFileClosureCheckModule.javaNestMembersBootstrapMethods?
???]?$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;?.?
?????"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;?(Ljava/lang/Object;)V?
???%(Lcom/google/javascript/rhino/Node;)V?InnerClassesAbstractModuleCallback
ModuleInfo3com/google/javascript/jscomp/NodeTraversal$CallbackCallback6com/google/javascript/jscomp/modules/ModuleMetadataMapModuleMetadata	-com/google/javascript/jscomp/NodeUtil$VisitorVisitor%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup1?!?N?NMN?NYN?N?NN?NON?N?N?N?N?N?N~N?NjNCN_N?NNNNCD\D?D?D?D?D?D???R*+,?*??????? ?????	????L
*?
,*???
?	?? 
??
??
???	??????A+???*????+?#?'???*?,Y+?#.?0?6?8???????)?@?? A??A??A???	
@@?	?????H*???
??? ???????	?????_	`,?;:*??I,?A?E?+,?K?6?O?/,?S?+,?W?6?O?,?Z?E?+,?]?6?O?,?`:?
*+?d?h,?n?r.??<???F\rr,?x:?A?{?:*???,?????+,???6?O?????}+,???6?O?n???{????{????{?*+,???B???{?+???+,???6?O?!???{?+,???,?x???*+,????,?????+????,???
,????,?ø???,??:??ϙ+,???6?O??+????+,???6?O??+????+,???6?O??,*????ݙ,??k+,???6?O?\??T,??M,:*+???;???;????!?????????:????????:??
??&?-?<?F?R?S?Y?^?e?????????????? 2ALV
`kru}???? ?"?%?&?*?+?0?1?478:=!>8:>?NAOCVD[E\H_N?f
???????D??`??`??`??`??`??Z??Y?????&<???F?0< 
 ?	(#????@?F?V?W?a?b?k?{??????????>F??k!????????????????@
?s	??
??????G?-?????,?x?{?+-???6?O-?X?+-???6?O?-?x:?O?4?Ě+-???6?O??,?x?{?(+???6?O????+,?????*??#,????W-*+???ձ?B?? ?'?3?4:BJVcs
{?
???4????????????:m??? ?!<?
???
???!}+??N,,.??`??:-???????-??????F-???-???-???6-?ݺ?:*+???6Y-SYS?O??.$%9!D"O#Y$g%|'?HY#??g??}??}??}??x??j????$66)G$?
???
?V??=*?O?s*?xL+?R??+?xM,? ,????,?x????,?_M?????2*+,-/02%3'41531;8? !??=??1?????A"B.C/E4F?GKI?*L??L??L??4????<?
???
?V?|)*?b?
*???*?;L+?
?
+?????MNPQ?)?????
?<@?????&,??N*??-??+,??6Y-S?O??%?*&??&??&??!????%6???ll!?#??)+?#??-/?#?K13?#??57?#?W9;?#??=??#??AC?#?EG?#??IK?#?MPR?T??WY?#??[]?#??_a?T??ce?#??gi?#??km?#?|oq?#??su?T?hwy?T?A{}?T?]??#?????#????#?
???#??????A????Z????????????????????????????;/056;<$@*A0D6E<IBJHMNNTPZQ`UfVlZr[x_~`?d?e?i?j?n?o?s?t?w?x?z?{?????????????????????? ?&?,?5?>?G?P?Y?b?e?k????i,??????????B	,
		iF
	





© 2015 - 2024 Weber Informatics LLC | Privacy Policy