com.google.javascript.jscomp.lint.CheckDuplicateCase.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 j
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback ()V
4com/google/javascript/jscomp/lint/CheckDuplicateCase compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
*com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
com/google/javascript/rhino/Node isSwitch ()Z java/util/LinkedHashSet
getSecondChild $()Lcom/google/javascript/rhino/Node;
! "
getFirstChild
$ % & ' ( -com/google/javascript/jscomp/AbstractCompiler toSource 6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String; * + , - .
java/util/Set add (Ljava/lang/Object;)Z 0 1 2 DUPLICATE_CASE -Lcom/google/javascript/jscomp/DiagnosticType; 4 java/lang/String
6 7 8 report e(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V
: ; getNext = JSC_DUPLICATE_CASE ? %Duplicate case in a switch statement.
A B C D E +com/google/javascript/jscomp/DiagnosticType warning S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; G )com/google/javascript/jscomp/CompilerPass 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this 6Lcom/google/javascript/jscomp/lint/CheckDuplicateCase; MethodParameters process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V externs "Lcom/google/javascript/rhino/Node; root visit s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V source Ljava/lang/String; curr cases Ljava/util/Set; t ,Lcom/google/javascript/jscomp/NodeTraversal; n parent LocalVariableTypeTable #Ljava/util/Set;
StackMapTable
SourceFile CheckDuplicateCase.java InnerClasses AbstractPostOrderCallback h 3com/google/javascript/jscomp/NodeTraversal$Callback Callback 1 F 1 2 H I F
*? *+? ? J ) * + K
L M
N O P I L
*? ,*?
? J
/ 0 K
L M
Q R
S R N Q S T U I ? M,? ? H? Y? :,? :? 4*? ? ? #:? ) ? +? /? 3? 5? 9:??ͱ J " 4 5 6 7 ) 8 5 9 B 6 L = K H ) V W 6 X R <