com.google.javascript.refactoring.SuggestedFix.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 ?
java/lang/Object ()V
.com/google/javascript/refactoring/SuggestedFix matchedNodeInfo @Lcom/google/javascript/refactoring/SuggestedFix$MatchedNodeInfo; replacements 'Lcom/google/common/collect/SetMultimap; description Ljava/lang/String;
'com/google/common/collect/ImmutableList builder 3()Lcom/google/common/collect/ImmutableList$Builder;
/com/google/common/collect/ImmutableList$Builder add E(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder;
" # $ addAll G(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList$Builder;
& ' ( build +()Lcom/google/common/collect/ImmutableList; * + , alternatives )Lcom/google/common/collect/ImmutableList;
. / 0 size ()I
2 3 4 subList -(II)Lcom/google/common/collect/ImmutableList; 6 7 8 9 : %com/google/common/collect/SetMultimap isEmpty ()Z
< = : isNoOp ? A java/lang/StringBuilder
@ 6 D E F asMap ()Ljava/util/Map; H I J K L
java/util/Map entrySet ()Ljava/util/Set; N O P Q R
java/util/Set iterator ()Ljava/util/Iterator; T U V W : java/util/Iterator hasNext T Y Z [ next ()Ljava/lang/Object; ] java/util/Map$Entry _ Replacements for file:
@ a b c append -(Ljava/lang/String;)Ljava/lang/StringBuilder; \ e f [ getKey h java/lang/String j
l
n o p q r com/google/common/base/Joiner on 3(Ljava/lang/String;)Lcom/google/common/base/Joiner; \ t u [ getValue w java/lang/Iterable
n y z { appendTo H(Ljava/lang/StringBuilder;Ljava/lang/Iterable;)Ljava/lang/StringBuilder;
@ } ~ toString ()Ljava/lang/String;
? ? ? ? ? %com/google/javascript/jscomp/NodeUtil getBestJSDocInfo K(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
? ? ? ? ? com/google/javascript/rhino/Node getNonJSDocComment /()Lcom/google/javascript/rhino/NonJSDocComment;
? ? ? 0 getSourceOffset
? ? ? ? 0 %com/google/javascript/rhino/JSDocInfo getOriginalCommentPosition
? ? ? ? ? +com/google/javascript/rhino/NonJSDocComment getStartPosition C()Lcom/google/javascript/jscomp/parsing/parser/util/SourcePosition;
? ? ? ? 0 ?com/google/javascript/jscomp/parsing/parser/util/SourcePosition getOffset
? ? ? ? ? java/lang/Math min (II)I Signature nLcom/google/common/collect/SetMultimap; RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; [Lcom/google/common/collect/ImmutableList; ?(Lcom/google/javascript/refactoring/SuggestedFix$MatchedNodeInfo;Lcom/google/common/collect/SetMultimap;Ljava/lang/String;Lcom/google/common/collect/ImmutableList;)V Code LineNumberTable LocalVariableTable this 0Lcom/google/javascript/refactoring/SuggestedFix; LocalVariableTypeTable MethodParameters(Lcom/google/javascript/refactoring/SuggestedFix$MatchedNodeInfo;Lcom/google/common/collect/SetMultimap;Ljava/lang/String;Lcom/google/common/collect/ImmutableList;)V getMatchedNodeInfo B()Lcom/google/javascript/refactoring/SuggestedFix$MatchedNodeInfo; getReplacements )()Lcom/google/common/collect/SetMultimap; p()Lcom/google/common/collect/SetMultimap; getDescription getAlternatives ]()Lcom/google/common/collect/ImmutableList; getNonDefaultAlternatives entry Ljava/util/Map$Entry; sb Ljava/lang/StringBuilder; tLjava/util/Map$Entry;>;
StackMapTable *getStartPositionForNodeConsideringComments %(Lcom/google/javascript/rhino/Node;)I node "Lcom/google/javascript/rhino/Node; jsdoc 'Lcom/google/javascript/rhino/JSDocInfo; associatedNonJSDocComment -Lcom/google/javascript/rhino/NonJSDocComment; start I
SourceFile SuggestedFix.java NestMembers ? 0com/google/javascript/refactoring/SuggestedFix$1 ? >com/google/javascript/refactoring/SuggestedFix$MatchedNodeInfo ? 6com/google/javascript/refactoring/SuggestedFix$Builder ? 9com/google/javascript/refactoring/SuggestedFix$ImportType InnerClasses MatchedNodeInfo Builder Entry
ImportType 1 ? ? ? ? + , ? ? ? ? ? '*? *+? *,?
*-? *? *? ? !? %? )? ? L M N O P Q &