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

com.google.javascript.jscomp.lint.CheckExtraRequires.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()Vjava/util/LinkedHashMap
	
4com/google/javascript/jscomp/lint/CheckExtraRequiresrequiresLjava/util/Map;java/util/LinkedHashSet
	usagesLjava/util/Set;	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;	requiresToRemove(Lcom/google/common/collect/ImmutableSet;
 !reset
#$%&'*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/Node
getFirstChild$()Lcom/google/javascript/rhino/Node;
)/01	isGetProp()Z
)345matchesQualifiedName(Ljava/lang/String;)Z
)78-getNext
):;1isStringLit
)=>?	getString()Ljava/lang/String;Ajava/lang/StringCgoog.requireEgoog.requireType
GHIextractNamespaceI(Lcom/google/javascript/rhino/Node;[Ljava/lang/String;)Ljava/lang/String;Kgoog.forwardDeclare
MNOmaybeAddJsDocUsages%(Lcom/google/javascript/rhino/Node;)V	QRSTU6com/google/javascript/jscomp/lint/CheckExtraRequires$1,$SwitchMap$com$google$javascript$rhino$Token[I
)WXYgetToken%()Lcom/google/javascript/rhino/Token;
[\]^_!com/google/javascript/rhino/Tokenordinal()I
abcde%com/google/javascript/jscomp/NodeUtilisLValue%(Lcom/google/javascript/rhino/Node;)Z
)gh1isImportSpec
jkOvisitQualifiedName
)mn1isQualifiedName
pqr
visitCallNodeG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
tuvisitScriptNode
wxOvisitImportNodez{|}
java/util/Setclear{?
java/util/Map???entrySet()Ljava/util/Set;z???iterator()Ljava/util/Iterator;????1java/util/IteratorhasNext????next()Ljava/lang/Object;?java/util/Map$Entry????getKey????getValuez???contains(Ljava/lang/Object;)Z
???&com/google/common/collect/ImmutableSet
???reportExtraRequireWarning7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V	??DEFAULT_EXTRA_NAMESPACES
a???getBestJSDocInfoK(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
?????%com/google/javascript/rhino/JSDocInfogetSuppressions?extraRequire	???EXTRA_REQUIRE_WARNING-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???putIfAbsent8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
)??1isName
???visitRequire7(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V
)??1
isImportSpecs
)??-getLastChild
???visitGoogRequireY(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
)??1isDestructuringLhs
)??1isObjectPattern
)??1hasChildren
)??-getFirstFirstChild
???extractNamespaceIfRequire6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
??? extractNamespaceIfForwardDeclare
???visitForwardDeclare	???GOOG_MODULE_GET+Lcom/google/javascript/rhino/QualifiedName;
????e)com/google/javascript/rhino/QualifiedNamematches
)??-getSecondChildz???add
????join
?1isSimple
?getOwner-()Lcom/google/javascript/rhino/QualifiedName;
	
$com/google/common/base/Preconditions
checkArgument(ZLjava/lang/Object;)V
)getQualifiedNameObject
addUsagesOfAllPrefixes.(Lcom/google/javascript/rhino/QualifiedName;)V
)getJSDocInfo)()Lcom/google/javascript/rhino/JSDocInfo;
?getTypeExpressions()Ljava/util/Collection; !java/util/Collectionstream()Ljava/util/stream/Stream;#$%apply()Ljava/util/function/Function;'()*+java/util/stream/StreamflatMap8(Ljava/util/function/Function;)Ljava/util/stream/Stream;#'./+map123acceptU(Lcom/google/javascript/jscomp/lint/CheckExtraRequires;)Ljava/util/function/Consumer;'567forEach (Ljava/util/function/Consumer;)V
9:;<=,com/google/javascript/rhino/JSTypeExpressiongetAllTypeNames*()Lcom/google/common/collect/ImmutableSet;
?@JSC_EXTRA_REQUIRE_WARNINGB7extra require: ''{0}'' is never referenced in this file
DEFGH+com/google/javascript/jscomp/DiagnosticTypedisabledS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;Jgoog.testing.assertsLgoog.testing.jsunitN goog.testing.JsTdTestCaseAdapter
?PQRof`(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;Tgoog.module.get
?VQW?(Ljava/lang/String;)Lcom/google/javascript/rhino/QualifiedName;Y)com/google/javascript/jscomp/CompilerPass	SignatureELjava/util/Map;#Ljava/util/Set;;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;Z(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/common/collect/ImmutableSet;)VCodeLineNumberTableLocalVariableTablethis6Lcom/google/javascript/jscomp/lint/CheckExtraRequires;LocalVariableTypeTableMethodParametersn(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/common/collect/ImmutableSet;)Vprocessexterns"Lcom/google/javascript/rhino/Node;roottarget
primitiveNameLjava/lang/String;callprimitiveNames[Ljava/lang/String;callee
StackMapTablervisits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vt,Lcom/google/javascript/jscomp/NodeTraversal;nparentrequireentryLjava/util/Map$Entry;KLjava/util/Map$Entry;jsDoc'Lcom/google/javascript/rhino/JSDocInfo;	localNamenode
importSpec
importNode
defaultImportnamedImports	namespaceforwardDeclareCall
importName	stringKeygoogRequireCallrequireddeclare
qualifiedNameinfolambda$maybeAddJsDocUsages$0I(Lcom/google/javascript/rhino/JSTypeExpression;)Ljava/util/stream/Stream;e.Lcom/google/javascript/rhino/JSTypeExpression;
SourceFileCheckExtraRequires.javaNestMembersBootstrapMethods?
?????"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;)Ljava/lang/Object;?
????UW?(Ljava/lang/Object;)VInnerClassesAbstractPostOrderCallback?3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackEntry?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup!XZ[Z\Z]^_???Z]??`a?%*?*?Y?	?
*?Y??*+?*,??bJ.3KL$Mc %de%%f%]g	Zh^	_iraT*?*?,*?"?bQR
Sc dejklkg	jl?HIa?	Q+?(N-?.??,:?66?22:-?2?-?6:??9?	?6mk'"noQdeQpkQqrLskt?)?
u/?g	pq^_??aH*+?@YBSYDS?F?bfcdepkgp??aC*+?@YJS?F?bjcdepkgpvwa?*,?L?P,?V?Z.?s$AW`k,?`?K-?.?D-?f?=*,?i?5-?.?.,?l?'*,?i?*,-?o?*?s*??*,?v??b:op4rIsQx_yg}m~p?t?x?{?????c*?de?xy?zk?{kt4
g
xz{!aE*??y*?
?~?b?	??cdeua?a*?
????L+???K+????M,???@N,???):*?-???*??*?-???
*-??????b"?"?,?7?P?V?]?`?c*,1|o7&pk";}~adef";}t???F?@)????a?:??,????+??N-?-???????*?+???@Y,S?????b?
???"?#?9?c*:de:pk:|o*??t	??g	p|??aO
*?
+,??W?b
??c 
de
?o
?kg	??xOa?D+?(M,?Ǚ*,?<+??,?6N-?Ι%-?(:?*?Ѷ<+???6:???b*
?????!?'?,?9?C?c4'?kDdeD?k??k*?kt?)?))?g???aT*+,-?Աb
??c*de?o?k{kg
??{??a!s-?Ǚ*-?<,?ʧb-?ؙU-?(?ۙK-?(?ޙ8-??:?*?(:?ǚ?*?<???6:??ק*+,?ʧ	*+,?ʱb:???$?.?4?9?@?H?K?V?c?l?r?c>@?k4,?ksdes?os?ks{kt? )?)?
?	g
??{qra?T*+??N-?*-+,?Ա*+??:?*+,??+?(:????+???9?*?+???TdeTpkT{kN?o;?o-'skt?@?@?+)g	p{az,*?+????W+??+?L*?+????W???b????+?c,de,??tg?kOaM+?l+?*+?
??bcdezkgzNOa?3+?M,??,???"?&?,?-*?0?4?b"		
"
-2c 3de3zk.??t?
?gz
??a2*?8?>?bc???aM%?A?C??IKM?O??S?U??b;<@A????Q? ?????????????*#?	?#?	Q??	???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy