com.google.javascript.jscomp.DestructuredTarget.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!
???? 7B
java/lang/Object ()V
/com/google/javascript/jscomp/DestructuredTarget pattern "Lcom/google/javascript/rhino/Node; node objectPatternKey registry 3Lcom/google/javascript/rhino/jstype/JSTypeRegistry; patternTypeSupplier !Lcom/google/common/base/Supplier; isRest Z ! defaultValue
# $ % hasComputedProperty ()Z
' ( ) * % com/google/javascript/rhino/Node isComputedProp
' , - % isStringKey
/ 0 % hasStringKey 2 3 4 get N(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/common/base/Supplier;
6 7 8 createTarget ?(Lcom/google/javascript/rhino/jstype/JSTypeRegistry;Lcom/google/common/base/Supplier;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/DestructuredTarget;
' : ; < getParent $()Lcom/google/javascript/rhino/Node;
' > ? % isDestructuringPattern
A B C D E $com/google/common/base/Preconditions
checkArgument (ZLjava/lang/Object;)V G 7com/google/javascript/jscomp/DestructuredTarget$Builder
F I J y(Lcom/google/javascript/rhino/jstype/JSTypeRegistry;Lcom/google/javascript/rhino/Node;Lcom/google/common/base/Supplier;)V L M N O P 1com/google/javascript/jscomp/DestructuredTarget$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
' R S T getToken %()Lcom/google/javascript/rhino/Token;
V W X Y Z !com/google/javascript/rhino/Token ordinal ()I
F \ ] ^ setObjectPatternKey ](Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/DestructuredTarget$Builder;
' ` a <
getFirstChild
' c d % isDefaultValue
F f g ^ setNode
' i j < getSecondChild
F l m ^ setDefaultValue
F o p q setIsRest <(Z)Lcom/google/javascript/jscomp/DestructuredTarget$Builder; s "java/lang/IllegalArgumentException u v w makeConcatWithConstants 6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
r y z (Ljava/lang/String;)V
F | } ~ build 3()Lcom/google/javascript/jscomp/DestructuredTarget; 2
? ? ? !createAllNonEmptyTargetsInPattern ?(Lcom/google/javascript/rhino/jstype/JSTypeRegistry;Lcom/google/common/base/Supplier;Lcom/google/javascript/rhino/Node;)Lcom/google/common/collect/ImmutableList;
? ? ? ? ? 'com/google/common/collect/ImmutableList builder 3()Lcom/google/common/collect/ImmutableList$Builder;
' ? ? % isEmpty
? ? ? ? ? /com/google/common/collect/ImmutableList$Builder add E(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder;
' ? ? < getNext
? ? } ? +()Lcom/google/common/collect/ImmutableList;
' ? ? % isObjectPattern
? ? ? inferObjectPatternKeyType -()Lcom/google/javascript/rhino/jstype/JSType;
? ? ? inferArrayPatternTargetType
? ? ? !inferTypeWithoutUsingDefaultValue
? ? ? ? % )com/google/javascript/rhino/jstype/JSType
isUnknownType
? ? % hasDefaultValue
? ? < getDefaultValue
' ? ? ? getJSType ? ? ? ? ? /com/google/javascript/rhino/jstype/JSTypeNative UNKNOWN_TYPE 1Lcom/google/javascript/rhino/jstype/JSTypeNative;
? ? ? ? ? 1com/google/javascript/rhino/jstype/JSTypeRegistry
getNativeType ^(Lcom/google/javascript/rhino/jstype/JSTypeNative;)Lcom/google/javascript/rhino/jstype/JSType;
? ? ? ? restrictByNotUndefined
? ? ? ? createUnionType Y([Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/jstype/JSType; ? ? ? 3 ? com/google/common/base/Supplier ()Ljava/lang/Object; ? ? ? ? OBJECT_TYPE
' ? ? ? getString ()Ljava/lang/String;
? ? ? ? findPropertyType ?(Ljava/lang/String;)Lcom/google/javascript/rhino/jstype/JSType;
? ? ? ? getTemplateTypeMap 6()Lcom/google/javascript/rhino/jstype/TemplateTypeMap;
? ? ? ? getObjectElementKey 3()Lcom/google/javascript/rhino/jstype/TemplateType;
? ? ? ? ? 2com/google/javascript/rhino/jstype/TemplateTypeMap getResolvedTemplateType ^(Lcom/google/javascript/rhino/jstype/TemplateType;)Lcom/google/javascript/rhino/jstype/JSType; ? java/lang/IllegalStateException u
? y
? ? ? ? getIterableValueTemplate ? ? ? ?
ARRAY_TYPE
? ? ? ? getNativeObjectType b(Lcom/google/javascript/rhino/jstype/JSTypeNative;)Lcom/google/javascript/rhino/jstype/ObjectType;
? ? ? ? createTemplatizedType ?(Lcom/google/javascript/rhino/jstype/ObjectType;[Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/jstype/TemplatizedType; RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; Signature NLcom/google/common/base/Supplier; ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/jstype/JSTypeRegistry;Lcom/google/common/base/Supplier;Z)V Code LineNumberTable LocalVariableTable this 1Lcom/google/javascript/jscomp/DestructuredTarget; LocalVariableTypeTable MethodParameters
(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/jstype/JSTypeRegistry;Lcom/google/common/base/Supplier;Z)V getComputedProperty
StackMapTable getStringKey getNode ?(Lcom/google/javascript/rhino/jstype/JSTypeRegistry;Lcom/google/javascript/rhino/jstype/JSType;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/DestructuredTarget; destructuringPatternType +Lcom/google/javascript/rhino/jstype/JSType; destructuringChild value 9Lcom/google/javascript/jscomp/DestructuredTarget$Builder; ?(Lcom/google/javascript/rhino/jstype/JSTypeRegistry;Lcom/google/common/base/Supplier;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/DestructuredTarget; ?(Lcom/google/javascript/rhino/jstype/JSTypeRegistry;Lcom/google/javascript/rhino/jstype/JSType;Lcom/google/javascript/rhino/Node;)Lcom/google/common/collect/ImmutableList; patternType ?(Lcom/google/javascript/rhino/jstype/JSTypeRegistry;Lcom/google/javascript/rhino/jstype/JSType;Lcom/google/javascript/rhino/Node;)Lcom/google/common/collect/ImmutableList; child 1Lcom/google/common/collect/ImmutableList$Builder; dLcom/google/common/collect/ImmutableList$Builder;(Lcom/google/javascript/rhino/jstype/JSTypeRegistry;Lcom/google/common/base/Supplier;Lcom/google/javascript/rhino/Node;)Lcom/google/common/collect/ImmutableList; inferType defaultValueType inferredType propertyType templateTypeOfIterable *lambda$createAllNonEmptyTargetsInPattern$1 X(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/jstype/JSType; lambda$createTarget$0
SourceFile DestructuredTarget.java NestMembers BootstrapMethods#
$%&'( "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; ?+
, ?/
012 v3 $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;5 +Unexpected child of destructuring pattern 7
8: Unexpected key InnerClasses Builder> %java/lang/invoke/MethodHandles$Lookup@ java/lang/invoke/MethodHandles Lookup 1 ? ? ? ? ? ? ! ? ? ? ? ? ,*? *+? *,?
*? *? *? *? *-? ? ? &