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

com.google.javascript.jscomp.ProcessClosurePrimitives.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!
????74
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback()Vjava/util/LinkedHashSet
	
5com/google/javascript/jscomp/ProcessClosurePrimitivesknownClosureSubclassesLjava/util/Set;	exportedVariables	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
-com/google/javascript/jscomp/AbstractCompilergetModuleMetadataMap:()Lcom/google/javascript/jscomp/modules/ModuleMetadataMap; Need to run GatherModuleMetadata
 !"#$$com/google/common/base/PreconditionscheckNotNull8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;&6com/google/javascript/jscomp/modules/ModuleMetadataMap
%()*getModulesByGoogNamespace*()Lcom/google/common/collect/ImmutableMap;	,-.closureModules(Lcom/google/common/collect/ImmutableMap;
01234*com/google/javascript/jscomp/NodeTraversal
traverseRoots?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/NodeTraversal$Callback;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V	6789:7com/google/javascript/jscomp/ProcessClosurePrimitives$2,$SwitchMap$com$google$javascript$rhino$Token[I
<=>?@ com/google/javascript/rhino/NodegetToken%()Lcom/google/javascript/rhino/Token;
BCDEF!com/google/javascript/rhino/Tokenordinal()I
HIJcheckGoogFunctionsQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
LMNmaybeProcessClassBaseCall%(Lcom/google/javascript/rhino/Node;)V
PQNcheckPropertyRenameCall
0STUinGlobalHoistScope()Z
<WXU
isFromExterns
Z[\]^%com/google/javascript/jscomp/NodeUtilisFunctionDeclaration%(Lcom/google/javascript/rhino/Node;)Z
Z`a^isClassDeclaration
<cde
getFirstChild$()Lcom/google/javascript/rhino/Node;
<ghi	getString()Ljava/lang/String;
klmno&com/google/common/collect/ImmutableMapget&(Ljava/lang/Object;)Ljava/lang/Object;qEcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata
pstU
isGoogProvide
<vwUisClass	yz{CLASS_NAMESPACE_ERROR-Lcom/google/javascript/jscomp/DiagnosticType;	}~{FUNCTION_NAMESPACE_ERROR?java/lang/String
????ijava/lang/ObjecttoString
?????$com/google/javascript/jscomp/JSErrormake?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
???report)(Lcom/google/javascript/jscomp/JSError;)V
<??UisAssign
<??egetFirstFirstChild
<??UisQualifiedName
<??igetQualifiedName
<???getJSDocInfo)()Lcom/google/javascript/rhino/JSDocInfo;
???checkPossibleGoogProvideInit^(Ljava/lang/String;Lcom/google/javascript/rhino/JSDocInfo;Lcom/google/javascript/rhino/Node;)V
<??UisName
?????%com/google/javascript/rhino/JSDocInfogetType0()Lcom/google/javascript/rhino/JSTypeExpression;
????e,com/google/javascript/rhino/JSTypeExpressiongetRoot	B???BANG#Lcom/google/javascript/rhino/Token;
<??UisStringLit
<??UhasChildren?Object
???equals(Ljava/lang/Object;)Z	??{WEAK_NAMESPACE_TYPE
<??U	isGetProp?goog
<??egetNext
??FhashCode?inherits?exportSymbol?
addDependency?setCssNameMapping?forwardDeclare?	weakUsage
??NprocessInheritsCall
???indexOf(I)I?????
java/util/Setadd
???	substring(II)Ljava/lang/String;
??? validateUnaliasablePrimitiveCallc(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Z
??NprocessAddDependency
<??e	getParent
???processSetCssNameMapping?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/CssRenamingMap;	??{3CLOSURE_CALL_CANNOT_BE_ALIASED_OUTSIDE_MODULE_ERROR
?? validatePrimitiveCallWithMessage?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/jscomp/DiagnosticType;)Z
NprocessForwardDeclare
NvalidateWeakUsageCall
<	F
getChildCount
<egetSecondChild	{INVALID_GOOG_WEAK_USAGE_CALLmakeConcatWithConstants(I)Ljava/lang/String;6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;	{$CLOSURE_CALL_CANNOT_BE_ALIASED_ERROR

getOptions0()Lcom/google/javascript/jscomp/CompilerOptions;
 !"U,com/google/javascript/jscomp/CompilerOptionsshouldPreserveGoogModule
0$%U
inModuleScope	'()*{3com/google/javascript/jscomp/ClosurePrimitiveErrors INVALID_CLOSURE_CALL_SCOPE_ERROR
<,-UisExprResult/0&(Ljava/lang/String;)Ljava/lang/String;2base
<45UisUnscopedQualifiedName
789getEnclosingDeclNameNodeF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;?;<?contains> Could not find enclosing method.
@ABreportBadBaseMethodUseI(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Ljava/lang/String;)V
DE^baseUsedInClass
ZGH9getEnclosingClassJ;base method is not allowed in ES6 class. Use super instead.
ZLMgetBestLValueNameO.prototype.
Q<R(Ljava/lang/CharSequence;)Z
TUVrewriteBaseCallInConstructork(Ljava/lang/String;Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
XYVrewriteBaseCallInMethod/
\]9findGoogInheritsCall
<_`UisThisbFirst argument must be 'this'.dconstructorf&Second argument must be 'constructor'.//
ZjklnewQName?(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
<noNreplaceWith
<qredetach
tuNreportChangeToEnclosingScopewx8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
z{BreportPossibleBadBaseMethodUse
<}~matchesQualifiedName(Ljava/lang/String;)Z?#Second argument must name a method./
??endsWith/	w
<??UisEmpty
Z??^isExprAssign
Z??^
isExprCall	???
GOOG_INHERITS+Lcom/google/javascript/rhino/QualifiedName;
????^)com/google/javascript/rhino/QualifiedNamematches
<??egetLastChild
<???hasXChildren(I)Z
Z??9getEnclosingFunction
Z??9getNameNode
<??UisClassMembers	??{BASE_CLASS_ERROR	??{POSSIBLE_BASE_CLASS_ERROR
???verifySetCssNameMappingv(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z?java/util/LinkedHashMap
?
<??UisStringKey	??{/NON_STRING_PASSED_TO_SET_CSS_NAME_MAPPING_ERROR????$
java/util/Mapput?BY_PART
?????1com/google/javascript/jscomp/CssRenamingMap$StylevalueOfG(Ljava/lang/String;)Lcom/google/javascript/jscomp/CssRenamingMap$Style;?"java/lang/IllegalArgumentException	??{INVALID_STYLE_ERROR	????3Lcom/google/javascript/jscomp/CssRenamingMap$Style;?java/util/ArrayList
?????keySet()Ljava/util/Set;????iterator()Ljava/util/Iterator;????Ujava/util/IteratorhasNext????next()Ljava/lang/Object;?-???java/util/List??	??{INVALID_CSS_RENAMING_MAP	????BY_WHOLE????entrySet?java/util/Map$Entry????getKey
??Flength
w?l??getValue\(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;7com/google/javascript/jscomp/ProcessClosurePrimitives$1
	E(Ljava/util/Map;Lcom/google/javascript/jscomp/CssRenamingMap$Style;)V

com/google/javascript/rhino/IRnumber%(D)Lcom/google/javascript/rhino/Node;
getCodingConvention1()Lcom/google/javascript/jscomp/CodingConvention;-com/google/javascript/jscomp/CodingConventionidentifyTypeDeclarationCall4(Lcom/google/javascript/rhino/Node;)Ljava/util/List;
#com/google/common/collect/IterablesgetOnlyElement((Ljava/lang/Iterable;)Ljava/lang/Object;!java/lang/NullPointerException# java/util/NoSuchElementException	%&{INVALID_FORWARD_DECLARE(HA single type could not identified for the goog.forwardDeclare statement
*+,forwardDeclareType(Ljava/lang/String;)V	'./{NULL_ARGUMENT_ERROR
<12UisObjectLit	45{EXPECTED_OBJECTLIT_ERROR	78{EXPECTED_STRING_ERROR	':;{TOO_MANY_ARGUMENTS_ERROR=>^isPropertyRenameFunction	@A{INVALID_RENAME_FUNCTIONC%Must be called with 1 or 2 arguments.E,The first argument must be a string literal.G.I/The first argument must not be a property path.KJSC_EXPECTED_OBJECTLIT_ERRORM0method "{0}" expected an object literal argument
OPQRS+com/google/javascript/jscomp/DiagnosticTypeerrorS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;UJSC_EXPECTED_STRING_ERRORW'method "{0}" expected a string argumentY$JSC_INVALID_CSS_NAME_MAP_STYLE_ERROR[Invalid CSS name map style {0}]JSC_WEAK_NAMESPACE_TYPE_?Provided symbol declared with type Object. This is rarely useful. For more information see https://github.com/google/closure-compiler/wiki/A-word-about-the-type-Object
OabSwarningdJSC_CLASS_NAMESPACE_ERRORfc"{0}" cannot be both provided and declared as a class. Try var {0} = class '{'...'}' (metadata {1})hJSC_FUNCTION_NAMESPACE_ERRORjH"{0}" cannot be both provided and declared as a function. (metadata {1})lJSC_INVALID_PROVIDE_ERRORn'"{0}" is not a valid {1} qualified name	pq{INVALID_PROVIDE_ERRORs3JSC_NON_STRING_PASSED_TO_SET_CSS_NAME_MAPPING_ERRORuFgoog.setCssNameMapping only takes an object literal with string values?x(Invalid entries in css renaming map: {0}zJSC_BASE_CLASS_ERROR|incorrect use of {0}.base: {1}~JSC_POSSIBLE_BASE_CLASS_ERROR??potentially incorrect use of {0}.base: {1}
Note: if this .base method is not on a Closure subclass, this error is a false positive. Suppress with /** @suppress '{closureClassChecks}' */?JSC_INVALID_FORWARD_DECLARE?Malformed goog.forwardDeclare?(JSC_CLOSURE_CALL_CANNOT_BE_ALIASED_ERROR?/Closure primitive method {0} may not be aliased?nClosure primitive method {0} may not be aliased  outside a module (ES module, CommonJS module, or goog.module)?JSC_INVALID_RENAME_FUNCTION?{0} call is invalid: {1}?JSC_INVALID_GOOG_WEAK_USAGE?
goog.inherits
????of?(Ljava/lang/String;)Lcom/google/javascript/rhino/QualifiedName;?)com/google/javascript/jscomp/CompilerPassGOOGLjava/lang/String;
ConstantValue	Signature#Ljava/util/Set;?Lcom/google/common/collect/ImmutableMap;2(Lcom/google/javascript/jscomp/AbstractCompiler;)VCodeLineNumberTableLocalVariableTablethis7Lcom/google/javascript/jscomp/ProcessClosurePrimitives;MethodParametersgetExportedVariableNames%()Ljava/util/Set;processG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vexterns"Lcom/google/javascript/rhino/Node;rootvisits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)VnamepnGLcom/google/javascript/jscomp/modules/ModuleMetadataMap$ModuleMetadata;lhst,Lcom/google/javascript/jscomp/NodeTraversal;nparent
StackMapTable	namespaceinfo'Lcom/google/javascript/rhino/JSDocInfo;
definitionmetadataexpr.Lcom/google/javascript/rhino/JSTypeExpression;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;	argStringdotIunused-Lcom/google/javascript/jscomp/CssRenamingMap;callcalleereceiver
methodNamearg
childCount
calleeNameinvalidAliasingErrorclazz
callTargetbaseContainerNode
baseContainerenclosingFnNameNodeenclosingQnameenclosingParent
baseClassNodethisArgmethodNameNodemisuseOfBaseZending	classNamecallNodectorDeclarationNodemaybeInheritsExprsubClass
superClassfncurrextraMessagevaluekeystylee$Ljava/lang/IllegalArgumentException;errorsLjava/util/List;combinedaLjava/util/Map$Entry;bleftcssNamesLjava/util/Map;styleStrLocalVariableTypeTable$Ljava/util/List;;Ljava/util/Map$Entry;5Ljava/util/Map;	emptyNodeLjava/lang/RuntimeException;
convention/Lcom/google/javascript/jscomp/CodingConvention;typeDeclaration?java/lang/RuntimeException	secondArgfirstArg
diagnosticpropName
SourceFileProcessClosurePrimitives.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;'should have exactly one argument, not 2argument should be a name or qualified name, not goog.Must be used within  methods.call.basetbase used outside a known Closure subclass, in: 
If  is actually a Closure subclass, the compiler is unable to statically determine this. This can happen when calling .base off of some import or other alias of the original Closure subclass, such as from a goog.require in another file. Instead of using .base, rewrite this call as ParentClass.prototype.method.call(this).prototype.!Enclosing method does not match  .superClass_..call"-$map(-) != map()-map()InnerClassesAbstractPostOrderCallback(3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackModuleMetadata,+com/google/javascript/jscomp/CssRenamingMapStyleEntry0%java/lang/invoke/MethodHandles$Lookup2java/lang/invoke/MethodHandlesLookup ?5{8{?{?{z{~{q{?{?{?{?{&{{?{A{{??????????-.?????3*?*?Y?	?
*?Y?	?*+?*+???%?'?+??"?????!?,?2??3??3????/*????????????M*?*+,?/??
?
?? ???????	?????-
?5,?;?A.??)<<????*+,?G*,?K*,?O??+?R?
,?V??,?Y?,?_??,?b?f:*?+?j?p:???r??*?,,?u?	?x??|?YSY??S?????T,?b???J,??????=,????:*,?b??,???#,?b????*,?b?f,??,?????n?4?:???D?G?U?V?d?e?n?|????????????????????????????	??HnJ??|<?????
??
??
??
???O4
?50<<p???
????
?
??????#?&?(?:?=?@?D?L??4(??M??M??:??8????<???
???_N,?
?-N?9,?0?
?3N?+,???$,??:???
?6N?????9N-?*+-?Y+??S???????>???
???"?(?0?7???C?G?[?]??4(??__??_??]{??
O
?0D6E<JBKHOTSZT`Xl\x`~a?g?h?j?k?o?p?u?v?x?y?~6J
!#%B0&	'0)	6p%*	?+-@??.	/13




© 2015 - 2024 Weber Informatics LLC | Privacy Policy