Package | Description |
---|---|
com.google.javascript.refactoring | |
com.google.javascript.refactoring.examples |
Modifier and Type | Method and Description |
---|---|
SuggestedFix |
SuggestedFix.Builder.build() |
static SuggestedFix |
ErrorToFixMapper.getFixForJsError(JSError error,
AbstractCompiler compiler)
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.
|
java.util.List<SuggestedFix> |
FixingErrorManager.getFixesForJsError(JSError error) |
static java.util.List<SuggestedFix> |
ErrorToFixMapper.getFixesForJsError(JSError error,
AbstractCompiler compiler) |
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. |
java.util.List<SuggestedFix> |
RefasterJsScanner.processMatch(Match match) |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<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.
|
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 |
---|---|
java.util.List<SuggestedFix> |
GoogBindToArrow.processMatch(Match match) |
Copyright © 2009-2017 Google. All Rights Reserved.