com.google.javascript.jscomp.ComposeWarningsGuard.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/WarningsGuard ()V java/util/LinkedHashMap
1com/google/javascript/jscomp/ComposeWarningsGuard orderOfAddition Ljava/util/Map; numberOfAdds I Acom/google/javascript/jscomp/ComposeWarningsGuard$GuardComparator
(Ljava/util/Map;)V guardComparator Ljava/util/Comparator; demoteErrors Z " java/util/TreeSet
! $ % (Ljava/util/Comparator;)V ' ( ) guards Ljava/util/TreeSet;
+ , - addGuards (Ljava/lang/Iterable;)V
/ 0 1 2 3 'com/google/common/collect/ImmutableList copyOf >([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
5 6 (Ljava/util/List;)V 8 java/util/ArrayList
! : ; <
descendingSet ()Ljava/util/NavigableSet;
7 > ? (Ljava/util/Collection;)V
A B C D E java/lang/Integer valueOf (I)Ljava/lang/Integer; G H I J K
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
! M N O remove (Ljava/lang/Object;)Z
! Q R O add T U V W X java/lang/Iterable iterator ()Ljava/util/Iterator; Z [ \ ] ^ java/util/Iterator hasNext ()Z Z ` a b next ()Ljava/lang/Object;
d e f addGuard /(Lcom/google/javascript/jscomp/WarningsGuard;)V
! U
i j k level Q(Lcom/google/javascript/jscomp/JSError;)Lcom/google/javascript/jscomp/CheckLevel; m n o p q 'com/google/javascript/jscomp/CheckLevel ERROR )Lcom/google/javascript/jscomp/CheckLevel; m s t q WARNING
v w x enables 1(Lcom/google/javascript/jscomp/DiagnosticGroup;)Z
z { x disables } %s applied to %s
? ? ? ? $com/google/common/base/Preconditions
checkState :(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? ? %com/google/javascript/jscomp/base/Tri TRUE 'Lcom/google/javascript/jscomp/base/Tri; ? ? ? ? FALSE ? ? ? ? UNKNOWN
? ? ? ? ? ,com/google/javascript/jscomp/DiagnosticGroup getTypes *()Lcom/google/common/collect/ImmutableSet;
? ? ? W ? &com/google/common/collect/ImmutableSet 2()Lcom/google/common/collect/UnmodifiableIterator; ? +com/google/javascript/jscomp/DiagnosticType
? ? ? ? forType ](Lcom/google/javascript/jscomp/DiagnosticType;)Lcom/google/javascript/jscomp/DiagnosticGroup; ? ? ? ? ? 3com/google/javascript/jscomp/ComposeWarningsGuard$1 0$SwitchMap$com$google$javascript$jscomp$base$Tri [I
? ? ?
mustRunChecks W(Lcom/google/javascript/jscomp/DiagnosticGroup;)Lcom/google/javascript/jscomp/base/Tri;
? ? ? ? ordinal ()I
? ? ? ? ? java/util/Collections unmodifiableSortedSet ,(Ljava/util/SortedSet;)Ljava/util/SortedSet; ? ,
? ? ? ? ? com/google/common/base/Joiner on 3(Ljava/lang/String;)Lcom/google/common/base/Joiner;
? ? ? ? join ((Ljava/lang/Iterable;)Ljava/lang/String; serialVersionUID J
ConstantValue Signature PLjava/util/Map; DLjava/util/Comparator; ALjava/util/TreeSet; Code LineNumberTable LocalVariableTable this 3Lcom/google/javascript/jscomp/ComposeWarningsGuard; Ljava/util/List; LocalVariableTypeTable >Ljava/util/List; MethodParameters A(Ljava/util/List;)V 0([Lcom/google/javascript/jscomp/WarningsGuard;)V -[Lcom/google/javascript/jscomp/WarningsGuard; composeGuard guard ,Lcom/google/javascript/jscomp/WarningsGuard;
StackMapTable Ljava/lang/Iterable; BLjava/lang/Iterable; E(Ljava/lang/Iterable;)V newLevel error &Lcom/google/javascript/jscomp/JSError; RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; group .Lcom/google/javascript/jscomp/DiagnosticGroup; enable disable singleton type -Lcom/google/javascript/jscomp/DiagnosticType; getGuards ()Ljava/util/SortedSet; E()Ljava/util/SortedSet; toString ()Ljava/lang/String;
SourceFile ComposeWarningsGuard.java NestMembers InnerClasses GuardComparator 1 ? ? ? ? ? ? ? ? ( ) ? ?
6 ? ? =*? *? Y? ?
*? *? Y*?
? ? *? *? !Y*? ? #? &*+? *? ? " N / 0 2 # 3 ( L 7 O <