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

com.google.javascript.jscomp.ExtraRequireRemover.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/LinkedHashMap
	
0com/google/javascript/jscomp/ExtraRequireRemoverrequiresLjava/util/Map;java/util/LinkedHashSet
	usagesLjava/util/Set;	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
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;
%+,-	isGetProp()Z
/0123)com/google/javascript/rhino/QualifiedNamematches%(Lcom/google/javascript/rhino/Node;)Z
%56)getNext
%89-isStringLit
%;<=	getString()Ljava/lang/String;	?@AGOOG_REQUIRE+Lcom/google/javascript/rhino/QualifiedName;	CDAGOOG_REQUIRE_TYPE
FGHextractNamespaceb(Lcom/google/javascript/rhino/Node;[Lcom/google/javascript/rhino/QualifiedName;)Ljava/lang/String;	JKAGOOG_FORWARD_DECLARE
%MN-isScript
%PQRgetJSDocInfo)()Lcom/google/javascript/rhino/JSDocInfo;
TUVWX%com/google/javascript/rhino/JSDocInfogetSuppressions()Ljava/util/Set;ZmissingRequire\]^_`
java/util/Setcontains(Ljava/lang/Object;)Z
%bc-isModuleBody
%ef)	getParent	%hijGOOG_MODULE'Lcom/google/javascript/rhino/Node$Prop;
%lmngetBooleanProp*(Lcom/google/javascript/rhino/Node$Prop;)Z
pqrmaybeAddJsDocUsages%(Lcom/google/javascript/rhino/Node;)V	tuvwx2com/google/javascript/jscomp/ExtraRequireRemover$1,$SwitchMap$com$google$javascript$rhino$Token[I
%z{|getToken%()Lcom/google/javascript/rhino/Token;
~???!com/google/javascript/rhino/Tokenordinal()I
????3%com/google/javascript/jscomp/NodeUtilisLValue
??rvisitQualifiedName
%??-isQualifiedName
???
visitCallNodeG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
??removeExtraRequiresInScript\??clear???
java/util/Map???XentrySet\???iterator()Ljava/util/Iterator;????-java/util/IteratorhasNext????next()Ljava/lang/Object;?java/util/Map$Entry????getKey?java/lang/String????getValue
???removeExtraRequire7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V
????getBestJSDocInfoK(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;?extraRequire
%??-isExprResult
%??)getGrandparent
????r-com/google/javascript/jscomp/AbstractCompilerreportChangeToEnclosingScope
%??)detach
%??-isName
???3isNameDeclaration
?????$com/google/common/base/Preconditions
checkState(Z)V
%??-isStringKey
????(ZLjava/lang/Object;)V
%??-hasOneChild	???DEFAULT_EXTRA_NAMESPACES(Lcom/google/common/collect/ImmutableSet;
?]?&com/google/common/collect/ImmutableSet????putIfAbsent8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
???visitGoogRequireY(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
???visitRequireI(Ljava/lang/String;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V
%??-isDestructuringLhs
%??-isObjectPattern
%??-hasChildren
%?)getFirstFirstChild
extractNamespaceIfRequire6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
 extractNamespaceIfForwardDeclare
	
?visitForwardDeclare	
AGOOG_MODULE_GET
%)getSecondChild\`add
/=join
/-isSimple
/getOwner-()Lcom/google/javascript/rhino/QualifiedName;
? ?
checkArgument
%"#getQualifiedNameObject
%&'addUsagesOfAllPrefixes.(Lcom/google/javascript/rhino/QualifiedName;)V
T)*+getTypeExpressions()Ljava/util/Collection;-?.java/util/Collection0,com/google/javascript/rhino/JSTypeExpression
/234getAllTypeNames*()Lcom/google/common/collect/ImmutableSet;
?6?72()Lcom/google/common/collect/UnmodifiableIterator;
/9:;of?(Ljava/lang/String;)Lcom/google/javascript/rhino/QualifiedName;=goog.testing.asserts?goog.testing.jsunitA goog.testing.JsTdTestCaseAdapterCgoog.labs.testing.Environment
?E:Fr(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;Hgoog.requireJgoog.requireTypeLgoog.forwardDeclareNgoog.module.getP)com/google/javascript/jscomp/CompilerPassR3com/google/javascript/jscomp/NodeTraversal$Callback	SignatureELjava/util/Map;#Ljava/util/Set;;2(Lcom/google/javascript/jscomp/AbstractCompiler;)VCodeLineNumberTableLocalVariableTablethis2Lcom/google/javascript/jscomp/ExtraRequireRemover;MethodParametersprocessexterns"Lcom/google/javascript/rhino/Node;roottarget
primitiveNamecallprimitiveNames,[Lcom/google/javascript/rhino/QualifiedName;callee
StackMapTablefRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;shouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Zt,Lcom/google/javascript/jscomp/NodeTraversal;nparentvisits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)VrequireLjava/lang/String;entryLjava/util/Map$Entry;LocalVariableTypeTableKLjava/util/Map$Entry;nameDeclarationjsDoc'Lcom/google/javascript/rhino/JSDocInfo;
objectPattern	localName	namespacenodeforwardDeclareCall
importName	stringKeygoogRequireCallrequireddeclare
qualifiedNametypeNamee.Lcom/google/javascript/rhino/JSTypeExpression;info
SourceFileExtraRequireRemover.javaNestMembersInnerClassesCallback?%com/google/javascript/rhino/Node$PropPropEntry1OQSTSU??SV@ADAKA
AWXd *?*?Y?	?
*?Y??*+??Y@27ABZ [\ ]^?XT*?*?,*??YFG
HZ [\_`a`]	_a?GHX?	Q+?$N-?*??,:?66?22:-?.?-?4:??7?	?:??????Y*
QRSU'V0W6XCYIUO]Z>6b`'"cAQ[\Qd`QefLg`h?%?
i/?]	dejkXJ*+?/Y?>SY?BS?E?YfZ[\d`]dXD*+?/Y?IS?E?YkZ[\d`]dlmX?;,?L?,?O?,?O?SY?[??,?a?,?d?g?k???Ypqrs!vZ*;[\;no;p`;q`h!@]
npqrsX?q*,?o?s,?y?}.?` 6LU,???<-?*?5*,???--?*?&,???*,???*,-???*??*???Y2|}0>?F?T?\?b?e?i?m?p?Z*q[\qnoqp`qq`h0
]
npqXE*???*?
???Y?	??Z[\?X?B*?
????L+???,+????M,????N,???%:*-????ѱY?"?,?7?>?A?Z*,tu7d`"vwB[\x"vyh???1??X??*?,?[??+??N-?-?S??[??+?d???!+?¶a?*?+?d??+?d??W?+?d?͙&+??:+?¸и?*??d????W?+?d??+?d??+??:?ߙ'??:????*??d????W?*?+?¶?+?d??W?Yn?
???%?&?0?:?E?M?N?X?^?h?t?z?{?????????????????????ZH^z`?z`?[\?d`?tu?{|?@}`h?T&,??%]	dt??Xu??,???*?
+-??W?Y?
?Z*[\~uu?`h]
~?
?Xt,?d?͚
*+,-?????Y

Z*[\u?`q`h]
?q??X	l-?͙*-?:+,??Z-???L-?$???B-?$???.-??:? ?$:*?:+???4:???*++,??
*++,??Y2%/5 :"A#M!Z&d)k+Z>A?`5"?`l[\lul?`lq`h? %?!	]
?q??X?T*+?N-?*-+,???*+?:?*+,??+?$:??.?+??7?*?+??:?W?Y278
9:=>?&@'C-DBESGZ>T[\Td`Tq`N?u;?u-'g`h?????+%]	dq&'Xz,*?+??W+??+?L*?+??W???YQSTU+WZ,[\,?Ah]??rXM+??+?*+?!?$?YZ[\Z[\p`]pqrX?X+?OM,??,?(?,N-???=-???/:?1?5:???????:*?8?$??????Y&	`a	b
e(fHgQhTiWjZ4H	?u(,??X[\Xp`S?|h?
T?	??/??!?]p?Xc7<>@B?D??G?8?>I?8?BK?8?IM?8??Y9:`a$b--???t?"Q?	?%?@t???	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy