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

com.google.javascript.jscomp.CrossChunkReferenceCollector.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
	
9com/google/javascript/jscomp/CrossChunkReferenceCollector
varsByNameLjava/util/Map;	referenceMapjava/util/ArrayList
	
blockStackLjava/util/List;	topLevelStatements	 statementCounterI	"#$topLevelStatementDraftRLcom/google/javascript/jscomp/CrossChunkReferenceCollector$TopLevelStatementDraft;	&'(compiler/Lcom/google/javascript/jscomp/AbstractCompiler;	*+,scopeCreator+Lcom/google/javascript/jscomp/ScopeCreator;./012java/util/ListisEmpty()Z4process() called more than once
6789:$com/google/common/base/Preconditions
checkState(ZLjava/lang/Object;)V
<=>?@*com/google/javascript/jscomp/NodeTraversalbuilder6()Lcom/google/javascript/jscomp/NodeTraversal$Builder;
BCDEF2com/google/javascript/jscomp/NodeTraversal$BuildersetCompilere(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
BHIJsetCallbackk(Lcom/google/javascript/jscomp/NodeTraversal$Callback;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
BLMNsetScopeCreatora(Lcom/google/javascript/jscomp/ScopeCreator;)Lcom/google/javascript/jscomp/NodeTraversal$Builder;
BPQR
traverseRootsG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
BTUVtraverse%(Lcom/google/javascript/rhino/Node;)VXYZ[\
java/util/MapkeySet()Ljava/util/Set;X^_`get&(Ljava/lang/Object;)Ljava/lang/Object;b0com/google/javascript/jscomp/ReferenceCollection
defgh&com/google/common/collect/ImmutableMapcopyOf9(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;	jklmnPcom/google/javascript/jscomp/CrossChunkReferenceCollector$TopLevelStatementDraft
statementNode"Lcom/google/javascript/rhino/Node;
pqrequals(Ljava/lang/Object;)ZtKcom/google/javascript/jscomp/CrossChunkReferenceCollector$TopLevelStatement
svw?(Lcom/google/javascript/jscomp/CrossChunkReferenceCollector;Lcom/google/javascript/jscomp/CrossChunkReferenceCollector$TopLevelStatementDraft;)V.yzradd
|}~2 com/google/javascript/rhino/NodeisName
|???	getString()Ljava/lang/String;
<???getScope&()Lcom/google/javascript/jscomp/Scope;
?????"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;? com/google/javascript/jscomp/Var
???2isGlobal
?????-com/google/javascript/jscomp/AbstractCompilergetCodingConvention1()Lcom/google/javascript/jscomp/CodingConvention;
????getName?????-com/google/javascript/jscomp/CodingConvention
isExported(Ljava/lang/String;Z)ZX??rcontainsKey
???q?java/util/Objects'(Ljava/lang/Object;Ljava/lang/Object;)Z
6?9?(Z)VX???put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?&com/google/javascript/jscomp/Reference
???peek$(Ljava/util/List;)Ljava/lang/Object;?'com/google/javascript/jscomp/BasicBlock
???z(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/jscomp/BasicBlock;)V
????getNode$()Lcom/google/javascript/rhino/Node;	j??ndeclaredNameNode	j???declaredNameReference(Lcom/google/javascript/jscomp/Reference;	j??nonDeclarationReferences
???addReferenceToCollectionM(Lcom/google/javascript/jscomp/Var;Lcom/google/javascript/jscomp/Reference;)V
???isBlockBoundaryG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
???pop
<???getScopeRoot
<??2isHoistScope
???N(Lcom/google/javascript/jscomp/BasicBlock;Lcom/google/javascript/rhino/Node;)V
?????%com/google/javascript/jscomp/NodeUtil
isTopLevel%(Lcom/google/javascript/rhino/Node;)Z
<???getChunk(()Lcom/google/javascript/jscomp/JSChunk;
???initializeDraftStatement?(Lcom/google/javascript/jscomp/JSChunk;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/CrossChunkReferenceCollector$TopLevelStatementDraft;
j??L(ILcom/google/javascript/jscomp/JSChunk;Lcom/google/javascript/rhino/Node;)V
????isNameDeclaration
|???
getFirstChild
|???getFirstFirstChild	j??ndeclaredValueNode
|??2isClass
|?2
isFunction
|2isExprResult
6`checkNotNull
|	2isAssign
|?getSecondChild
|2	isGetProp
|2isCall?getClassesDefinedByCallh(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/CodingConvention$SubclassRelationship;	Bcom/google/javascript/jscomp/CodingConvention$SubclassRelationshipsubclassNameLjava/lang/String;java/lang/String
p
|!"?getNext
?$%?"isObjectDefinePropertiesDefinition.'()size()I.+,-remove(I)Ljava/lang/Object;
/0123#com/google/common/collect/IterablesgetLast((Ljava/lang/Iterable;)Ljava/lang/Object;	56789;com/google/javascript/jscomp/CrossChunkReferenceCollector$1,$SwitchMap$com$google$javascript$rhino$Token[I
|;<=getToken%()Lcom/google/javascript/rhino/Token;
?@AB)!com/google/javascript/rhino/Tokenordinal
|DE2isCaseGHIapply()Ljava/util/function/Function;XKLMcomputeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
aOzP+(Lcom/google/javascript/jscomp/Reference;)V
RSTUVjava/util/CollectionsunmodifiableList"(Ljava/util/List;)Ljava/util/List;
?XYZisLiteralValue&(Lcom/google/javascript/rhino/Node;Z)Z
?\]^getBestJSDocInfoK(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
`abc2%com/google/javascript/rhino/JSDocInfoisPureOrBreakMyCode
|ef?getLastChild
|hi2isComputedProp
klmcanMoveValueI(Lcom/google/javascript/jscomp/Scope;Lcom/google/javascript/rhino/Node;)Z
|op2isComputedFieldDef
|rs2isMemberFieldDef
|uv2isStaticMember
|xy2isBlock
|{|2isMemberFunctionDef
?~?
isGetOrSetKey?3com/google/javascript/jscomp/CrossChunkMethodMotion?JSCompiler_stubMethod
|???getOnlyChild?java/lang/IllegalStateException
|???toStringTree???makeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;
???(Ljava/lang/String;)V
???
getReferencesV(Lcom/google/javascript/jscomp/Var;)Lcom/google/javascript/jscomp/ReferenceCollection;
a??2
isWellDefined
a??2isAssignedOnceInLifetime
|??2isTemplateLitSub
|??2isTemplateLitString
a?9com/google/javascript/jscomp/NodeTraversal$ScopedCallback?)com/google/javascript/jscomp/CompilerPass	SignatureELjava/util/Map;eLjava/util/Map;;Ljava/util/List;_Ljava/util/List;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;](Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/ScopeCreator;)VCodeLineNumberTableLocalVariableTablethis;Lcom/google/javascript/jscomp/CrossChunkReferenceCollector;creatorMethodParametersprocessexternsroot
getAllSymbols()Ljava/lang/Iterable;:()Ljava/lang/Iterable;v"Lcom/google/javascript/jscomp/Var;getGlobalVariableNamesMap*()Lcom/google/common/collect/ImmutableMap;`()Lcom/google/common/collect/ImmutableMap;visits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V	referencevarNamet,Lcom/google/javascript/jscomp/NodeTraversal;nparent
StackMapTable
enterScope/(Lcom/google/javascript/jscomp/NodeTraversal;)V)Lcom/google/javascript/jscomp/BasicBlock;	exitScopeshouldTraverses(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)ZnameNodelhsrhscallArgdeclaredNametargetObject	valueNoderelationshipDLcom/google/javascript/jscomp/CodingConvention$SubclassRelationship;exprchunk&Lcom/google/javascript/jscomp/JSChunk;draft?$com/google/javascript/jscomp/JSChunklistLocalVariableTypeTableLjava/util/List;0(Ljava/util/List;)TT;
referenceInfo2Lcom/google/javascript/jscomp/ReferenceCollection;getTopLevelStatements()Ljava/util/List;a()Ljava/util/List;keyExprmethodmemberclassMembersfunctionNamechild
refCollectionscope$Lcom/google/javascript/jscomp/Scope;	jsDocInfo'Lcom/google/javascript/rhino/JSDocInfo;!lambda$addReferenceToCollection$0k
SourceFile!CrossChunkReferenceCollector.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;`
???
	
?$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;
 Unexpected child of OBJECTLIT: InnerClassesTopLevelStatementDraftBuilder3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackTopLevelStatementSubclassRelationshipScopedCallback%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup1??????????+,'( #$?????E*?*?Y?	?
*?Y?	?*?Y??*?Y??*?*?!*+?%*,?)??*
>'-0%30:5;:??@DA? E??E'(E?,?	'??R?)*??-3?5?;*?%?A*?G*?)?K+,?O??FGHI J%K(L? )??)?n)?n?	???V?t(*??-3?5?;*?%?A*?G*?)?K+?S??OPQR S$T'U?(??(?n?????4
*??W??Y?
???????B*?+?]?a??^??????????2*?
?c??b??????????*?!??,*?!?i?o?!*??sY**?!?u?xW*?!??,?{??,??:+??????:??????*?%???????|*?
???*?
?]?????*?
??W??Y,+*???????:??*?!???*?!?ç*?!???xW*??,-?Ι*???W??Vhij+k3l:m@nNpSr_spt~u?w?y?z?{?}????????H?2??@??N???????????n??n?3?`?
?/???
???????;+??M*??-??
*?????N+?ؙ*???Y-,?۹xW???? ?'?:??*;??;??6?n ????|I????????U+?ؙ*???W?????????????????N-?'-?ޙ *?!??,?5**+??,??!,-?Ι*???Y*?????,?۹xW?????(?0?L??*N??N??N?nN?n?@#?
??????\
??jY*Y?Z`?+,??N,??-,???-,?????a,???-,???-,???J,???-,???-,???3,??,,???|:??x???|:?
??|:?{?-??-???D?
?<???|:?
????|:????{?-??-???????::*?%???:?E???:?
:		?)	?{?	????
	:?
	? :	??ا-?#?%?
:?{????:? :?-??-??-???-???$?/?6?>?F?M?U?]?d?p?x????????????????????????????????????)?>?B?E?O?Z?a?u?|??????????,?n?e?n?X?n$+?n	2?a?n???n???n???p?n???????mnz?$?k?/j?K|||?|??6
?|j|||| ?	?|D|???|j?	?m
???K**?&d?*????????????
???A*?.????????????
????m+?g?4+?:?>.?YIIIIIIIIIKKKKKK?*+????*?C??XZh&?m?nm?n?
?X@?	?????m*?+?F?J?aN-,?N??+
,/0?*?????????	?????2*??Q??3?????lm???,?,?W?
,????,?[N-?-?_???4,?:?>.?N	VNNNNNNNNNNNN,O?,?d:??:???g?*??:?d:???5*+?j???d?n???:*+?j???F?q??t?6*+??j?)??w???z??}???5? :??d?,???|:?{????????,??:?*+?j??? :????,??:???4?:?>.?V(((+GG?@*+??j?*+?d?j?&?*+???j????Y???????? :????+,??????:?e???]*??:????
?????;,??:?.???*+??j?????5? :??????@@AFG%H'K?N?O?P?R?S?T?U?V?W?Y?Z?[?\?^?_bdfh*Q4k6qBrLs]r^wixsyuw}?????????????????????
???&?.?5?=?C?E?H?S?[?h?j?t?~???????n??n??n???n???nB?nd?n???n.??/??N0?n????????nh????(?`?`?||0	@?	??%|@??|?	?|8?	?8????|`|	?	?|`?	??
???2?aY????,??????5js??BjB<<	s?	5?<	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy