com.google.javascript.jscomp.ConformanceRules$RestrictedMethodCall.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!
???? 7
:com/google/javascript/jscomp/ConformanceRules$AbstractRule \(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/Requirement;)V
(com/google/javascript/jscomp/Requirement
getValueCount ()I Dcom/google/javascript/jscomp/CheckConformance$InvalidRequirementSpec
missing value
(Ljava/lang/String;)V
-com/google/javascript/jscomp/AbstractCompiler getTypeRegistry 5()Lcom/google/javascript/rhino/jstype/JSTypeRegistry;
'com/google/common/collect/ImmutableList builder 3()Lcom/google/common/collect/ImmutableList$Builder;
! " # getValueList *()Lcom/google/protobuf/ProtocolStringList; % & ' ( ) &com/google/protobuf/ProtocolStringList iterator ()Ljava/util/Iterator; + , - . / java/util/Iterator hasNext ()Z + 1 2 3 next ()Ljava/lang/Object; 5 java/lang/String
7 8 9 : ; =com/google/javascript/jscomp/ConformanceRules$ConformanceUtil removeTypeDecl &(Ljava/lang/String;)Ljava/lang/String;
7 = > ; getClassFromDeclarationName
7 @ A ; getPropertyFromDeclarationName
7 C D ; getTypeFromValue F bad prop value
7 H I J evaluateTypeString n(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;)Lcom/google/javascript/rhino/jstype/JSType;
L M N O P )com/google/javascript/rhino/jstype/JSType toMaybeFunctionType 3()Lcom/google/javascript/rhino/jstype/FunctionType; R invalid conformance type T Ncom/google/javascript/jscomp/ConformanceRules$RestrictedMethodCall$Restriction
V W X Y Z 1com/google/javascript/rhino/jstype/JSTypeRegistry
getGlobalType ?(Ljava/lang/String;)Lcom/google/javascript/rhino/jstype/JSType;
S \ ] q(Lcom/google/javascript/rhino/jstype/JSType;Ljava/lang/String;Lcom/google/javascript/rhino/jstype/FunctionType;)V
_ ` a b c /com/google/common/collect/ImmutableList$Builder add E(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder;
_ e f g build +()Lcom/google/common/collect/ImmutableList; i j k l m Bcom/google/javascript/jscomp/ConformanceRules$RestrictedMethodCall restrictions )Lcom/google/common/collect/ImmutableList;
o p q r / com/google/javascript/rhino/Node isGetProp
7 t u v isCallTarget %(Lcom/google/javascript/rhino/Node;)Z x y z { | ?com/google/javascript/jscomp/ConformanceRules$ConformanceResult CONFORMANCE ALcom/google/javascript/jscomp/ConformanceRules$ConformanceResult;
~ size
? ? ? get (I)Ljava/lang/Object;
i ? ? ? matchesProp u(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/ConformanceRules$RestrictedMethodCall$Restriction;)Z
i ? ? ? checkConformance ?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/ConformanceRules$RestrictedMethodCall$Restriction;Z)Lcom/google/javascript/jscomp/ConformanceRules$ConformanceResult;
o ? ? ? getString ()Ljava/lang/String; ? call
4 ? ? ? equals (Ljava/lang/Object;)Z
o ? ? ?
getFirstChild $()Lcom/google/javascript/rhino/Node; x ? ? ? level @Lcom/google/javascript/jscomp/ConformanceRules$ConformanceLevel; ? ? ? { ? >com/google/javascript/jscomp/ConformanceRules$ConformanceLevel
? ? ? ? ? *com/google/javascript/jscomp/NodeTraversal getCompiler 1()Lcom/google/javascript/jscomp/AbstractCompiler; S ? ? ? type +Lcom/google/javascript/rhino/jstype/JSType;
o ? ? ? getFirstFirstChild
o ? ? ? getJSType -()Lcom/google/javascript/rhino/jstype/JSType;
L ? ? ? restrictByNotNullOrUndefined
7 ? ? ? isLooseType .(Lcom/google/javascript/rhino/jstype/JSType;)Z
? ? ? ? ? -com/google/javascript/jscomp/ConformanceRules
isLooseObject a(Lcom/google/javascript/rhino/jstype/JSType;Lcom/google/javascript/rhino/jstype/JSTypeRegistry;)Z i ? ? ? reportLooseTypeViolations Z i ? ? ? compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
o ? ? ? getParent S ? ? ? restrictedCallType 1Lcom/google/javascript/rhino/jstype/FunctionType;
7 ? ? ? validateCall ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/jstype/FunctionType;Z)Z x ? ? | %POSSIBLE_VIOLATION_DUE_TO_LOOSE_TYPES
L ? ? ? isSubtypeOf x ? ? | VIOLATION S ? ? ? property Ljava/lang/String; Signature {Lcom/google/common/collect/ImmutableList; Code LineNumberTable LocalVariableTable restrictedDecl value this DLcom/google/javascript/jscomp/ConformanceRules$RestrictedMethodCall; requirement *Lcom/google/javascript/jscomp/Requirement; registry 3Lcom/google/javascript/rhino/jstype/JSTypeRegistry; 1Lcom/google/common/collect/ImmutableList$Builder; LocalVariableTypeTable ?Lcom/google/common/collect/ImmutableList$Builder;
StackMapTable ? /com/google/javascript/rhino/jstype/FunctionType
Exceptions MethodParameters ?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ConformanceRules$ConformanceResult; r PLcom/google/javascript/jscomp/ConformanceRules$RestrictedMethodCall$Restriction; result i I t ,Lcom/google/javascript/jscomp/NodeTraversal; n "Lcom/google/javascript/rhino/Node;
targetType isCallInvocation methodClassType lhs
SourceFile ConformanceRules.java NestHost InnerClasses AbstractRule -com/google/javascript/jscomp/CheckConformance InvalidRequirementSpec Builder ConformanceUtil RestrictedMethodCall Restriction ConformanceResult ConformanceLevel i l m ? ? ? ?*+,? ,? ?
?
Y? ?+? N? :,? ? $ :? * ? w? 0 ? 4:? 6? <:? 6? ?:? B: ?
? ?
?
YE? ?+ ? G? K:
?
?
YQ? ?? SY-? U
? [? ^W???*? d? h? ? V ? ?
? ? ? !? B? D? L? N? V? ]? l? v? y? ?? ?? ?? ?? ?? ?? ? f
L [ ? ? V Q ? ? ] J ? ? ? &