All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.javascript.refactoring.ApplySuggestedFixes.class Maven / Gradle / Ivy

Go to download

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/util/HashSet
()V	
java/lang/Iterableiterator()Ljava/util/Iterator;java/util/IteratorhasNext()Znext()Ljava/lang/Object;.com/google/javascript/refactoring/SuggestedFix
getReplacements)()Lcom/google/common/collect/SetMultimap; !"%com/google/common/collect/SetMultimapkeySet()Ljava/util/Set;$%&'(
java/util/SetaddAll(Ljava/util/Collection;)Z*java/util/HashMap
)$	.java/lang/String0java/io/File
/23(Ljava/lang/String;)V	56789!java/nio/charset/StandardCharsetsUTF_8Ljava/nio/charset/Charset;
;<=>?com/google/common/io/FilesasCharSourceK(Ljava/io/File;Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource;
ABCDEcom/google/common/io/CharSourceread()Ljava/lang/String;GHIJK
java/util/Mapput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
MNOPQ5com/google/javascript/refactoring/ApplySuggestedFixesapplySuggestedFixesToCodeM(Ljava/lang/Iterable;Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;
STUVW&com/google/common/collect/ImmutableMapentrySet*()Lcom/google/common/collect/ImmutableSet;
YZ[\&com/google/common/collect/ImmutableSet2()Lcom/google/common/collect/UnmodifiableIterator;^java/util/Map$Entry]`agetKeyc"com/google/common/io/FileWriteMode
;efg
asCharSinkn(Ljava/io/File;Ljava/nio/charset/Charset;[Lcom/google/common/io/FileWriteMode;)Lcom/google/common/io/CharSink;]ijgetValueljava/lang/CharSequence
nopqrcom/google/common/io/CharSinkwrite(Ljava/lang/CharSequence;)V
tuvwx#com/google/common/collect/IterablesisEmpty(Ljava/lang/Iterable;)Z
Sz{|of*()Lcom/google/common/collect/ImmutableMap;
~?{?'com/google/common/collect/ImmutableList=(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
t???getFirst:(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
???getAlternatives+()Lcom/google/common/collect/ImmutableList;
~???size()I
?????!com/google/common/collect/Streamsstream/(Ljava/lang/Iterable;)Ljava/util/stream/Stream;???apply()Ljava/util/function/Function;?????java/util/stream/Streammap8(Ljava/util/function/Function;)Ljava/util/stream/Stream;
?????java/lang/IntegervalueOf(I)Ljava/lang/Integer;?????java/util/function/PredicateisEqual2(Ljava/lang/Object;)Ljava/util/function/Predicate;????allMatch!(Ljava/util/function/Predicate;)Z?aAll SuggestedFixAlternatives must offer an equal number of choices for this utility to make sense
?????$com/google/common/base/Preconditions
checkArgument(ZLjava/lang/Object;)V?????java/util/stream/IntStreamrange (II)Ljava/util/stream/IntStream;???E(Ljava/lang/Iterable;Ljava/util/Map;)Ljava/util/function/IntFunction;????mapToObj;(Ljava/util/function/IntFunction;)Ljava/util/stream/Stream;
~???toImmutableList()Ljava/util/stream/Collector;????collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;??? (I)Ljava/util/function/Function;?Dcom/google/javascript/refactoring/ApplySuggestedFixes$ReplacementMap
?
????putIfNoOverlap3(Lcom/google/javascript/refactoring/SuggestedFix;)V
S???builder2()Lcom/google/common/collect/ImmutableMap$Builder;
??V"G???containsKey(Ljava/lang/Object;)Z?"java/lang/IllegalArgumentException???makeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;
?2G???get&(Ljava/lang/Object;)Ljava/lang/Object;
M???applyCodeReplacements<(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
???J?.com/google/common/collect/ImmutableMap$BuilderV(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
???|buildOrThrow
?????,com/google/common/collect/ImmutableSortedSetcopyOfF(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSortedSet;
M???containsOverlaps1(Lcom/google/common/collect/ImmutableSortedSet;)Z+Found overlap between code replacements:
%s	MDOUBLE_LINE_JOINERLcom/google/common/base/Joiner;
	
com/google/common/base/Joinerjoin((Ljava/lang/Iterable;)Ljava/lang/String;
?
?((ZLjava/lang/String;Ljava/lang/Object;)Vjava/lang/StringBuilder

?Z1com/google/javascript/refactoring/CodeReplacement
?getStartPosition
append5(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
E
getNewContent
 !-(Ljava/lang/String;)Ljava/lang/StringBuilder;
#$?getEndPosition
-&'?length
)*EtoString
,-java/lang/Object
~/?0(I)Ljava/lang/Object;
M234applySuggestedFixChoicesToCodeN(Ljava/lang/Iterable;ILjava/util/Map;)Lcom/google/common/collect/ImmutableMap;6


89:on3(Ljava/lang/String;)Lcom/google/common/base/Joiner;applySuggestedFixesToFiles(Ljava/lang/Iterable;)VCodeLineNumberTableLocalVariableTablefix0Lcom/google/javascript/refactoring/SuggestedFix;filenameLjava/lang/String;entryLjava/util/Map$Entry;fixesLjava/lang/Iterable;	filenamesLjava/util/Set;filenameToCodeMapLjava/util/Map;newCode(Lcom/google/common/collect/ImmutableMap;LocalVariableTypeTable;Ljava/util/Map$Entry;FLjava/lang/Iterable;#Ljava/util/Set;5Ljava/util/Map;NLcom/google/common/collect/ImmutableMap;
StackMapTable
ExceptionsWjava/io/IOExceptionMethodParameters	SignatureI(Ljava/lang/Iterable;)V!applyAllSuggestedFixChoicesToCodeN(Ljava/lang/Iterable;Ljava/util/Map;)Lcom/google/common/collect/ImmutableList;
fixChoicesfileNameToCodeMapalternativeCountI?(Ljava/lang/Iterable;Ljava/util/Map;)Lcom/google/common/collect/ImmutableList;>;choiceIndexchosenFixes)Lcom/google/common/collect/ImmutableList;[Lcom/google/common/collect/ImmutableList;?(Ljava/lang/Iterable;ILjava/util/Map;)Lcom/google/common/collect/ImmutableMap;replacementsFLcom/google/javascript/refactoring/ApplySuggestedFixes$ReplacementMap;
newCodeMap0Lcom/google/common/collect/ImmutableMap$Builder;DLjava/util/Set;mLjava/util/Map$Entry;>;VLcom/google/common/collect/ImmutableMap$Builder;?(Ljava/lang/Iterable;Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;replacement3Lcom/google/javascript/refactoring/CodeReplacement;Ljava/util/Collection;codesortedReplacements.Lcom/google/common/collect/ImmutableSortedSet;sbLjava/lang/StringBuilder;	lastIndexKLjava/util/Collection;cLcom/google/common/collect/ImmutableSortedSet;q(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;startf(Lcom/google/common/collect/ImmutableSortedSet;)Zthis7Lcom/google/javascript/refactoring/ApplySuggestedFixes;'lambda$applySuggestedFixChoicesToCode$2c(ILcom/google/javascript/refactoring/SuggestedFix;)Lcom/google/javascript/refactoring/SuggestedFix;choices*lambda$applyAllSuggestedFixChoicesToCode$1N(Ljava/lang/Iterable;Ljava/util/Map;I)Lcom/google/common/collect/ImmutableMap;i*lambda$applyAllSuggestedFixChoicesToCode$0E(Lcom/google/javascript/refactoring/SuggestedFix;)Ljava/lang/Integer;f
SourceFileApplySuggestedFixes.javaNestMembersBootstrapMethods?
?????"java/lang/invoke/LambdaMetafactorymetafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;??
M????0?
M????+(I)Lcom/google/common/collect/ImmutableMap;?
M???b(Lcom/google/javascript/refactoring/SuggestedFix;)Lcom/google/javascript/refactoring/SuggestedFix;?
?????$java/lang/invoke/StringConcatFactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;?*filenameToCodeMap missing code for file: InnerClassesEntryReplacementMapBuilder?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup1M,	;<=?ǻY?L*?M,?
? ,??N+-???#W??ݻ)Y?+M+?,N-?
?,-??-:,?/Y?1?4?:?@?FW???*,?LN-?R?X:?
?:??]:?/Y?_?-?1?4?b?d?h?k?m??±>6
:;"<2=5?=@XAsBvD|E?F?G?H?H"@AXBC?(DE?FG?HI=?JK|KLMN4?(DO?FP?HQ=?JR|KLST&?$?%?G?1?S?@UVXFYZ	[\=?Y*?s?
?y?}?*???????=*?????????????????*+?????ù??~?>2UVXYZ&[,\9Y<_H`MaX_? Y]GY^K<_`NY]PY^RTX	]^Ya
34=?!*???????ù??~N-,?L?>hi
jkl?*!]G!b`!^KcdN !]P!^RceX
]b^Yf	PQ=?	???Y??M*?N-?
?-??:,?ѧ???N,?ٹ,:?
?_??]:?_?-:+?????Y?????h?$:+???-??:-??W???-??>:xy#z){,|0}Q~]h?w??????????\	#@A]ABC?gI?	LCQMDE?FG?JK??h0vijN4?gkQMDl?FP?JR0vimT#??????;]-?)X	FJYn	??=R?*??M,?????,???Y?N6,?:?
?0??:-+??W-??W?"6???+?%?-++?%?W-?(?>B???????&?)?E?R?\?c?f?o?{??>Eop?gq?rC{st&Zuv)Ww`N?gx{syT??@??6X	grYz
??=?.<*?M,?
?,??N-???-?"???"?$?)?,?? op.gt,{`N.gyT???XgY|=/*?+?>??}~
?=@+???.??>j?b`?A
??=E*+?1?>`? ]G^K?`
??=5*???????>[??A?="
5?7??>1?????&???????????????"]G?	?M?
?S?	???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy