Package | Description |
---|---|
com.google.javascript.refactoring | |
com.google.javascript.refactoring.examples |
Modifier and Type | Method and Description |
---|---|
SuggestedFix |
SuggestedFix.Builder.build() |
SuggestedFix |
ErrorToFixMapper.getFixForJsError(JSError error)
Creates a SuggestedFix for the given error.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<SuggestedFix> |
RefactoringDriver.drive(Scanner scanner)
Run a refactoring and return any suggested fixes as a result.
|
java.util.List<SuggestedFix> |
RefactoringDriver.drive(Scanner scanner,
java.util.regex.Pattern includeFilePattern)
Run a refactoring and return any suggested fixes as a result.
|
java.util.Collection<SuggestedFix> |
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.
|
java.util.List<SuggestedFix> |
FixingErrorManager.getFixesForJsError(JSError error) |
com.google.common.collect.ImmutableList<SuggestedFix> |
ErrorToFixMapper.getFixesForJsError(JSError error) |
com.google.common.collect.ImmutableList<SuggestedFix> |
SuggestedFix.getNonDefaultAlternatives()
Get all alternative fixes, excluding this fix.
|
java.util.Collection<SuggestedFix> |
FixingErrorManager.getSureFixes()
Returns fixes for errors and warnings that only have one 'sure' guaranteed fix.
|
java.util.List<SuggestedFix> |
Scanner.processAllMatches(java.util.Collection<Match> matches)
Processes every given match at one time.
|
java.util.List<SuggestedFix> |
Scanner.processMatch(Match match)
Processes one
Match at a time. |
com.google.common.collect.ImmutableList<SuggestedFix> |
RefasterJsScanner.processMatch(Match match) |
Modifier and Type | Method and Description |
---|---|
SuggestedFix.Builder |
SuggestedFix.Builder.addAlternative(SuggestedFix alternative) |
Modifier and Type | Method and Description |
---|---|
static com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String>> |
ApplySuggestedFixes.applyAllSuggestedFixChoicesToCode(java.lang.Iterable<SuggestedFix> fixChoices,
java.util.Map<java.lang.String,java.lang.String> fileNameToCodeMap)
Applies all possible options from each
SuggestedFixAlternative to the provided code and
returns the new code. |
static com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> |
ApplySuggestedFixes.applySuggestedFixesToCode(java.lang.Iterable<SuggestedFix> fixes,
java.util.Map<java.lang.String,java.lang.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(java.lang.Iterable<SuggestedFix> fixes)
Applies the provided set of suggested fixes to the files listed in the suggested fixes.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<SuggestedFix> |
GoogBindToArrow.processMatch(Match match) |
Copyright © 2009-2020 Google. All Rights Reserved.