com.google.javascript.jscomp.ConformanceRules.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` 7com/google/javascript/jscomp/ConformanceRules$AllowList
'com/google/common/collect/ImmutableList of +()Lcom/google/common/collect/ImmutableList;
.*\.closure\.js .*\.tsx\.cl\.js
O(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
#(Ljava/util/List;Ljava/util/List;)V java/lang/Throwable java/lang/AssertionError
(Ljava/lang/Object;)V
java/lang/Object ()V ! " # $ % java/util/List isEmpty ()Z ! ' ( ) iterator ()Ljava/util/Iterator; + , - . % java/util/Iterator hasNext + 0 1 2 next ()Ljava/lang/Object; 4 java/lang/String
6 7 8 9 : java/util/regex/Pattern compile -(Ljava/lang/String;)Ljava/util/regex/Pattern; < &java/util/regex/PatternSyntaxException > Dcom/google/javascript/jscomp/CheckConformance$InvalidRequirementSpec @ invalid regex pattern
= B C *(Ljava/lang/String;Ljava/lang/Throwable;)V E |
G H I J K com/google/common/base/Joiner on 3(Ljava/lang/String;)Lcom/google/common/base/Joiner;
G M N O join ((Ljava/lang/Iterable;)Ljava/lang/String; Q R S makeConcatWithConstants &(Ljava/lang/String;)Ljava/lang/String; U java/lang/RuntimeException W bad joined regexp
T B Z [ \ ] ^ /com/google/javascript/rhino/jstype/JSTypeNative OBJECT_TYPE 1Lcom/google/javascript/rhino/jstype/JSTypeNative;
` a b c d 1com/google/javascript/rhino/jstype/JSTypeRegistry
getNativeType ^(Lcom/google/javascript/rhino/jstype/JSTypeNative;)Lcom/google/javascript/rhino/jstype/JSType;
f g h i j )com/google/javascript/rhino/jstype/JSType equals (Ljava/lang/Object;)Z
f l m n toMaybeObjectType 1()Lcom/google/javascript/rhino/jstype/ObjectType;
p q r s t -com/google/javascript/rhino/jstype/ObjectType getConstructor 3()Lcom/google/javascript/rhino/jstype/FunctionType;
f v w % isRecordType
y z { | } -com/google/javascript/jscomp/ConformanceRules createTsAllowlist ;()Lcom/google/javascript/jscomp/ConformanceRules$AllowList; y ? ? ALL_TS_ALLOWLIST 9Lcom/google/javascript/jscomp/ConformanceRules$AllowList; ? goog.dom
? ? ? ? )com/google/javascript/rhino/QualifiedName ?(Ljava/lang/String;)Lcom/google/javascript/rhino/QualifiedName; y ? ? ? GOOG_DOM +Lcom/google/javascript/rhino/QualifiedName; ? goog.dom.TagName y ? ? ? GOOG_DOM_TAGNAME Code LineNumberTable LocalVariableTable t Ljava/lang/Throwable;
StackMapTable this /Lcom/google/javascript/jscomp/ConformanceRules; buildPattern +(Ljava/util/List;)Ljava/util/regex/Pattern; e (Ljava/util/regex/PatternSyntaxException;
reqPattern Ljava/lang/String; jointRegExp reqPatterns Ljava/util/List; pattern Ljava/util/regex/Pattern; LocalVariableTypeTable $Ljava/util/List;
Exceptions MethodParameters Signature ?(Ljava/util/List;)Ljava/util/regex/Pattern; RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable;
isLooseObject a(Lcom/google/javascript/rhino/jstype/JSType;Lcom/google/javascript/rhino/jstype/JSTypeRegistry;)Z type +Lcom/google/javascript/rhino/jstype/JSType; registry 3Lcom/google/javascript/rhino/jstype/JSTypeRegistry; isObjectTypedef .(Lcom/google/javascript/rhino/jstype/JSType;)Z objType /Lcom/google/javascript/rhino/jstype/ObjectType;
SourceFile ConformanceRules.java RuntimeInvisibleAnnotations /Lcom/google/common/annotations/GwtIncompatible; value "java.lang.reflect, java.util.regex NestMembers ? /com/google/javascript/jscomp/ConformanceRules$1 ? ;com/google/javascript/jscomp/ConformanceRules$BanStaticThis ?