Uses of Class
com.google.javascript.refactoring.SuggestedFix
Packages that use SuggestedFix
-
Uses of SuggestedFix in com.google.javascript.refactoring
Methods in com.google.javascript.refactoring that return SuggestedFixModifier and TypeMethodDescriptionSuggestedFix.Builder.build()
@Nullable SuggestedFix
ErrorToFixMapper.getFixForJsError
(JSError error) Creates a SuggestedFix for the given error.Methods in com.google.javascript.refactoring that return types with arguments of type SuggestedFixModifier and TypeMethodDescriptionRun a refactoring and return any suggested fixes as a result.Run a refactoring and return any suggested fixes as a result.FixingErrorManager.getAllFixes()
Returns fixes for errors first, then fixes for warnings.com.google.common.collect.ImmutableList
<SuggestedFix> SuggestedFix.getAlternatives()
Get all possible fixes for this problem, including this fix.com.google.common.collect.ImmutableList
<SuggestedFix> ErrorToFixMapper.getFixesForJsError
(JSError error) FixingErrorManager.getFixesForJsError
(JSError error) com.google.common.collect.ImmutableList
<SuggestedFix> SuggestedFix.getNonDefaultAlternatives()
Get all alternative fixes, excluding this fix.FixingErrorManager.getSureFixes()
Returns fixes for errors and warnings that only have one 'sure' guaranteed fix.Scanner.processAllMatches
(Collection<Match> matches) Processes every given match at one time.Scanner.processMatch
(Match match) Processes oneMatch
at a time.Methods in com.google.javascript.refactoring with parameters of type SuggestedFixMethod parameters in com.google.javascript.refactoring with type arguments of type SuggestedFixModifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList
<com.google.common.collect.ImmutableMap<String, String>> ApplySuggestedFixes.applyAllSuggestedFixChoicesToCode
(Iterable<SuggestedFix> fixChoices, Map<String, String> fileNameToCodeMap) Applies all possible options from eachSuggestedFixAlternative
to the provided code and returns the new code.ApplySuggestedFixes.applySuggestedFixesToCode
(Iterable<SuggestedFix> fixes, Map<String, String> filenameToCodeMap) Applies the provided set of suggested fixes to the provided code and returns the new code, ignoring alternative fixes.static void
ApplySuggestedFixes.applySuggestedFixesToFiles
(Iterable<SuggestedFix> fixes) Applies the provided set of suggested fixes to the files listed in the suggested fixes. -
Uses of SuggestedFix in com.google.javascript.refactoring.examples
Methods in com.google.javascript.refactoring.examples that return types with arguments of type SuggestedFixModifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList
<SuggestedFix> GoogBindToArrow.processMatch
(Match match)