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

com.google.javascript.jscomp.TemplateAstMatcher.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/ArrayList
	
/com/google/javascript/jscomp/TemplateAstMatchertemplateParamsLjava/util/List;	paramNodeMatchesLjava/util/ArrayList;	templateLocals	localVarMatchesjava/util/LinkedHashMap
	 stringLiteralMatchesLjava/util/LinkedHashMap;	"#$isLooseMatchZ
&'()* com/google/javascript/rhino/Node
isFunction()Z,3Template node must be a function node. Received: %s
./012$com/google/common/base/Preconditions
checkState((ZLjava/lang/String;Ljava/lang/Object;)V
45678-com/google/javascript/jscomp/AbstractCompilergetTopScope+()Lcom/google/javascript/jscomp/TypedScope;	:;<topScope)Lcom/google/javascript/jscomp/TypedScope;
4>?@getTypeRegistry5()Lcom/google/javascript/rhino/jstype/JSTypeRegistry;
.BCDcheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;F1com/google/javascript/rhino/jstype/JSTypeRegistry	HIJtypeRegistry3Lcom/google/javascript/rhino/jstype/JSTypeRegistry;
LMNinitTemplateF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;	PQR
templateStart"Lcom/google/javascript/rhino/Node;T1com/google/javascript/jscomp/TypeMatchingStrategy	VWXtypeMatchingStrategy3Lcom/google/javascript/jscomp/TypeMatchingStrategy;
Z[\matchesTemplateShapeG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
^_*isEmpty
abreset
de\matchesTemplate
gh(Ljava/util/Map;)Vjklmnjava/util/Listsize()Ijpqrget(I)Ljava/lang/Object;tjava/lang/String
pwxyz{
java/util/Mapput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
}~??com/google/javascript/rhino/IRname6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
&???	cloneTree$()Lcom/google/javascript/rhino/Node;
???prepTemplatePlaceholders%(Lcom/google/javascript/rhino/Node;)V
&???getLastChild
&??*hasOneChild
&???
getFirstChild
&??*isExprResult
&???getFirstFirstChild
???add(Ljava/lang/Object;)Z
&???	getString()Ljava/lang/String;?
&???	setString(Ljava/lang/String;)V
&???getSecondChild
?????%com/google/javascript/jscomp/NodeUtilgetBestJSDocInfoK(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
&??*hasChildren?2Missing JSDoc declaration for template function %s
.?C?J(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
?????%com/google/javascript/rhino/JSDocInfogetParameterTypeB(Ljava/lang/String;)Lcom/google/javascript/rhino/JSTypeExpression;?6Missing JSDoc for parameter %s of template function %s
.?C?\(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
E???evaluateTypeExpression?(Lcom/google/javascript/rhino/JSTypeExpression;Lcom/google/javascript/rhino/jstype/StaticTypedScope;)Lcom/google/javascript/rhino/jstype/JSType;j?
&???getNext?1com/google/javascript/jscomp/TemplateAstMatcher$1
???c(Lcom/google/javascript/jscomp/TemplateAstMatcher;Ljava/util/List;Ljava/util/List;Ljava/util/Map;)V
???traverse^(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/TemplateAstMatcher$Visitor;)V
&???removeChildren
&???addChildrenToFront
&???replaceWith?????7com/google/javascript/jscomp/TemplateAstMatcher$Visitorvisit
?????java/util/Collectionsfill%(Ljava/util/List;Ljava/lang/Object;)V
k
???set'(ILjava/lang/Object;)Ljava/lang/Object;
&???getToken%()Lcom/google/javascript/rhino/Token;	???TEMPLATE_TYPE_PARAM#Lcom/google/javascript/rhino/Token;	???TEMPLATE_STRING_LITERAL
.?1?(Z)V
&???	newNumber%(D)Lcom/google/javascript/rhino/Node;
&setToken&(Lcom/google/javascript/rhino/Token;)V
&	setJSTypeO(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/Node;		?TEMPLATE_LOCAL_NAME
\matchesNodeShape
isTemplateParameterNode%(Lcom/google/javascript/rhino/Node;)Z
?isStatement
isTemplateLocalNameNode
&*isName
$isTemplateParameterStringLiteralNode
?!isSomeCompileTimeConstStringValue
&!"*isCall
&$%n
getChildCount
&'()hasXChildren(I)Z
&+,isEquivalentToShallow
./\matchesNode
&123	getDouble()D
&56isEquivalentTo
&89:	getJSType-()Lcom/google/javascript/rhino/jstype/JSType;<null template parameter type.
.>C{
@ABisUnresolvedType.(Lcom/google/javascript/rhino/jstype/JSType;)Z
SDEFmatch?(Lcom/google/javascript/rhino/jstype/JSType;Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/jscomp/TypeMatchingStrategy$MatchResult;
HIJ#*=com/google/javascript/jscomp/TypeMatchingStrategy$MatchResult
HLM*isMatch
sOP?equals
&RS?getOriginalName
UVWX*)com/google/javascript/rhino/jstype/JSTypeisNoResolvedType
UZ[*isNamedType
U]^*
isUnknownType
U`a*isUnionType
UcdegetUnionMembers()Ljava/lang/Iterable;ghijkjava/lang/Iterableiterator()Ljava/util/Iterator;mnop*java/util/IteratorhasNextmrstnext()Ljava/lang/Object;	vwxy?!com/google/javascript/rhino/TokenPLACEHOLDER1	v{|?PLACEHOLDER2	v~?PLACEHOLDER3	Signature$Ljava/util/List;9Ljava/util/ArrayList;)Ljava/util/ArrayList;OLjava/util/LinkedHashMap;?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/TypeMatchingStrategy;)VCodeLineNumberTableLocalVariableTablethis1Lcom/google/javascript/jscomp/TemplateAstMatcher;compiler/Lcom/google/javascript/jscomp/AbstractCompiler;templateFunctionNodeMethodParametersmatchesn
StackMapTablegetTemplateNodeToMatchMap()Ljava/util/Map;Ljava/lang/String;iImapLjava/util/Map;LocalVariableTypeTableELjava/util/Map;G()Ljava/util/Map;	startNodepreppedbody
expression.Lcom/google/javascript/rhino/JSTypeExpression;type+Lcom/google/javascript/rhino/jstype/JSType;	paramNodefnlocalsparams
paramTypesfnNametemplateParametersNodeinfo'Lcom/google/javascript/rhino/JSDocInfo;NLjava/util/Map;replaceNodeInPlaceG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vchildrenreplacementccallback9Lcom/google/javascript/jscomp/TemplateAstMatcher$Visitor;createTemplateParameterNodeQ(ILcom/google/javascript/rhino/jstype/JSType;Z)Lcom/google/javascript/rhino/Node;indexisStringLiteralcreateTemplateLocalNameNode%(I)Lcom/google/javascript/rhino/Node;templateast
templateChildastChild
paramIndex
previousMatchtemplateTypematchResult?Lcom/google/javascript/jscomp/TypeMatchingStrategy$MatchResult;originalNamepreviouslyMatched	alternate
SourceFileTemplateAstMatcher.javaNestMembersInnerClassesVisitorMatchResult1
??	???;<IJQR???????? ??#$WX???u*?*?Y?	?
*?Y?	?*?Y?	?*?Y?	?*?Y??*?!,?%+,?-*+?3?9*+?=?A?E?G**,?K?O*-?A?S?U??>f;AD%J0R;X@gAhGgJnRo`piqtr?*u??u??u?RuWX?
??W???2**?O+?Y?'*??]?*??]??*?`**?O+?c???yz ~"?&?0??2??2?R?"
??#*?/*?!?????????(}?Y*??fL=*?
?i?**?
?o?sN+-*??u?&?vW????=*??i?-*??o?sN+-*??u?s?|?vW????+??*
???)?<?B?Q?_?u?{??>)??4??_??D7??}??q???q????w?3??6??MN?7r+??M*,??,??N-???-?????-??:?	-??:6*??i?*???W????6*?
?i?*???W??????6
??
?? ?)?/?@?I?O?`?i?o??R&?R2??R??r??r?Rm?Rc?R/C?R??)&&?&???????????*?M*?
N?Y?:+????:+?????+??:+??:???
???W??:?S??:		??:

?	??W*?G
*?9??:?AW-	??W	?vW??:???*+??Y*,-?Ͷб?V??
???%?+?1?9?C?J?O?V?_?k?z????????????zV???	_6??
z??JU?R?????R??
????????+??R1???? ???
???????*?C&jjws&??&?T?????x+???
+??N,-??+,?ڱ??*?R???R?R??	??????(N+??:???N*,??-:???,+????
 '?4?R(??(?R(??&sR??&&??	??b??+*?!*???<*???*???W?????
$*???+???	???O+???????????R?@???O+????????$????R?@??????9????,?AW???:?????????,?W??")*+,-'//162?49??9??9??9?$!?R?@?&?
????O+???????6????R?@?????p???????M,???,??:;<=? ????	?R?@??[\??"+?,?*+,?
??+??L,??M?????HIJLM O? "??"?R"?R??	??\?B?*+?
?,????*+??,??;?*+??,??+? ?,?,? ?,+?#?&??+,?*??+??N,??:-?*-?
??-??N??:?????RSUVX$Y&[.]3^:aPbReZf\jakglkmunwp|q?s?4?????R??Ra'?Rg!?R?@	?
&&?	??e\??"+?,?*+,?-??+??L,??M?????xyz|} ? "??"?R"?R??	??/\??8*+?
?r+?0?>*??u?&:?
,?4?+?7:;?=W*????*?U,?7?C:*?G?!?K6??
*?,??W?*+??T+?0?>*??u??6?,??*??u?N?,?Q:??,??:*???W??*+??7+?0?>*??u?&:?
,?4?,??*?,??W??+??N,??:-?*-?-??-??N??:??????(???? ?'?-?6???A?P?Y?`?j?t?w?????????????????????????????
?????%?'?,?6???i??\?R-J??P'??`M$???????H???6?$?.???!?R8??8?R8?R'?R!?R?S?'&?U?2H?&&?@??sCs??&&??
&&?	??AB??J+?T?+?Y?+?\??+?_?-+?b?fM,?l?,?q?UN*-?????????"????;?C?E?H?? ;
??J??J????m?????3?u??z??}????-./?????????
HS?@




© 2015 - 2024 Weber Informatics LLC | Privacy Policy