com.google.javascript.jscomp.OptimizeCalls$ReferenceMap.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded Show documentation
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!
???? 7N
java/lang/Object ()V java/util/LinkedHashMap
7com/google/javascript/jscomp/OptimizeCalls$ReferenceMap names Ljava/util/LinkedHashMap; props apply ()Ljava/util/function/Function;
computeIfAbsent C(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object; java/util/ArrayList
add (Ljava/lang/Object;)Z
" # $ addReference P(Ljava/util/LinkedHashMap;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V & ' ( globalScope $Lcom/google/javascript/jscomp/Scope;
* + , entrySet ()Ljava/util/Set;
. / 0 1 2 /com/google/common/collect/ImmutableListMultimap builder ;()Lcom/google/common/collect/ImmutableListMultimap$Builder; 4 5 6 7 8 java/util/List iterator ()Ljava/util/Iterator; : ; < = > java/util/Iterator hasNext ()Z : @ A B next ()Ljava/lang/Object; D com/google/javascript/rhino/Node
F G H definitionFunctionNodesFor M(Lcom/google/javascript/rhino/Node;)Lcom/google/common/collect/ImmutableList;
J K L M N 7com/google/common/collect/ImmutableListMultimap$Builder putAll a(Ljava/lang/Object;Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableListMultimap$Builder;
J P Q R build 3()Lcom/google/common/collect/ImmutableListMultimap;
C T U > isGetterDef
C W X > isSetterDef
Z [ \ ] ^ 'com/google/common/collect/ImmutableList of +()Lcom/google/common/collect/ImmutableList;
C ` a b getParent $()Lcom/google/javascript/rhino/Node;
Z d 1 e 3()Lcom/google/common/collect/ImmutableList$Builder; g h i j k ,com/google/javascript/jscomp/OptimizeCalls$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
C m n o getToken %()Lcom/google/javascript/rhino/Token;
q r s t u !com/google/javascript/rhino/Token ordinal ()I
C w x y isFirstChildOf %(Lcom/google/javascript/rhino/Node;)Z
{ | } ~ %com/google/javascript/jscomp/NodeUtil 'getEs6ClassConstructorMemberFunctionDef F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
C ? ? b getOnlyChild
? ? ? ? /com/google/common/collect/ImmutableList$Builder E(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder;
C ? ? > isMemberFunctionDef
C ? ? b getLastChild
C ? ? > isMemberFieldDef
? ? ? ? ? $com/google/common/base/Preconditions
checkArgument (ZLjava/lang/Object;)V
C ? ? b
getFirstChild
? ? ? addValueFunctionNodes V(Lcom/google/common/collect/ImmutableList$Builder;Lcom/google/javascript/rhino/Node;)V
C ? ? > isStringKey
C ? ? > isName
C ? ? > hasChildren
? ? Q ^
C ? ? b getSecondChild
? ? y isCallTarget
? ? y isNewTarget
? ? y isOptChainCallTarget
C ? ? > isCall
C ? ? > isGetProp
C ? ? ? getString ()Ljava/lang/String; ? call
? ? ? ? java/lang/String equals
C ? ? > isOptChainCall
C ? ? > isOptChainGetProp
C ? ? > isNew ? %s
%s
? ? ? ?
checkState :(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
{ ? ? y isCallOrNew
{ ? ? y isNormalOrOptChainGetProp
? ? ? ?
{ ? ? y isNormalOrOptChainCall
? ? ? getArgumentForCallOrNewOrDotCall G(Lcom/google/javascript/rhino/Node;I)Lcom/google/javascript/rhino/Node;
{ ? ? y isFunctionObjectCall
{ ? ? ? getArgumentForCallOrNew
C ? ? > isAssign
C ? ? > isExprResult
Signature fLjava/util/LinkedHashMap;>; Code LineNumberTable LocalVariableTable this 9Lcom/google/javascript/jscomp/OptimizeCalls$ReferenceMap; data name Ljava/lang/String; n "Lcom/google/javascript/rhino/Node; refs Ljava/util/ArrayList; LocalVariableTypeTable 9Ljava/util/ArrayList; MethodParameters ?(Ljava/util/LinkedHashMap;>;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V addNameReference 7(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V addPropReference getGlobalScope &()Lcom/google/javascript/jscomp/Scope; getNameReferences ()Ljava/lang/Iterable; z()Ljava/lang/Iterable;>;>; getPropReferences getFunctionNodes C(Ljava/util/List;)Lcom/google/common/collect/ImmutableListMultimap; def definitionSites Ljava/util/List; result 9Lcom/google/common/collect/ImmutableListMultimap$Builder; 4Ljava/util/List; Lcom/google/common/collect/ImmutableListMultimap$Builder;
StackMapTable ?(Ljava/util/List;)Lcom/google/common/collect/ImmutableListMultimap; constructorFnDef value target definitionSite parent fns 1Lcom/google/common/collect/ImmutableList$Builder; ULcom/google/common/collect/ImmutableList$Builder; q(Lcom/google/javascript/rhino/Node;)Lcom/google/common/collect/ImmutableList; z(Lcom/google/common/collect/ImmutableList$Builder;Lcom/google/javascript/rhino/Node;)V !isNormalOrOptChainCallOrNewTarget grandParent getCallOrNewNodeForTarget child maybeCall %getFirstArgumentForCallOrNewOrDotCall index I
adjustedIndex isSimpleAssignmentTarget lambda$addReference$0 )(Ljava/lang/String;)Ljava/util/ArrayList; k
SourceFile OptimizeCalls.java NestHost2 *com/google/javascript/jscomp/OptimizeCalls BootstrapMethods5
6789: "java/lang/invoke/LambdaMetafactory metafactory ?(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;>
?+,, InnerClasses ReferenceMap BuilderE java/util/Map$EntryG
java/util/Map EntryJ %java/lang/invoke/MethodHandles$LookupL java/lang/invoke/MethodHandles Lookup ' ( ? ? ? ? ? M *? *? Y? ?
*? Y? ? ? ? ? ? ? ? ? ? # $ ? ? +,? ? ? :-? W? ? ? ? ? ? 4 ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? M **?
+,? !? ?
?
? ? ? ? ? ? ? ? ? ? ? M **? +,? !? ?
?
? ? ? ? ? ? ? ? ? ? ? / *? %? ? ? ? ? ? ? 2 *?
? )? ? ? ? ? ? ?
? 2 *? ? )? ? ? ? ? ? ?
? ? 0? -L*? 3 M,? 9 ? ,? ? ? CN+--? E? IW???+? O? ? ? ? ? ( ? + ? ?
? 0 , ? 0 , ? J :? ?
G H ? " *? S?
*? V? ? Y?*? _L+? ? Y?? cM? f+? l? p.? ? . K T ? ? ? ? ?*+? v? ?+? zN-? ,-? ?? ?W? ?,+? ?W? ?*? ?? ,*? ?? ?W? p*? ?*? ?*? ?N-? ,-? ?? W*? ??
*? ?? ? *? ?,*? ?? ?? 5+? ?N+? ?:*-? %,? ?? *? ?? *? ?? ,*? ?? ?? ,? ?? ? ? ! ? ? ? ? ? ? # ? \ ? d ? i ? m ? v ? y ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? H i
? ? ? ? ? ? ? ? ? ? # ? ? # ? ? C? < ?
@ ?
? ? ? = ?? f+? l? p.? ? E Z ? ? ? ? ? ? c v v v ? ?+? zM,? *,? ?? ?W? =*+? ?W? 4*+? ?? ?*+? ?? ?? !*+? ?? ?*+? ?? ?? *+? ?? ?? ? ? B $ P' U( Y) b, e. k/ n1 v2 ~3 ?7 ?8 ?9 ?<