Package | Description |
---|---|
com.google.javascript.refactoring |
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 |
---|---|
List<SuggestedFix> |
RefactoringDriver.drive()
Run the refactoring and return any suggested fixes as a result.
|
List<SuggestedFix> |
RefactoringDriver.drive(Pattern includeFilePattern)
Run the refactoring and return any suggested fixes as a result.
|
Collection<SuggestedFix> |
FixingErrorManager.getAllFixes()
Returns fixes for errors first, then fixes for warnings.
|
List<SuggestedFix> |
FixingErrorManager.getFixesForJsError(JSError error) |
static List<SuggestedFix> |
ErrorToFixMapper.getFixesForJsError(JSError error,
AbstractCompiler compiler) |
List<SuggestedFix> |
Scanner.processAllMatches(Collection<Match> matches)
Processes every given match at one time.
|
List<SuggestedFix> |
RefasterJsScanner.processMatch(Match match) |
List<SuggestedFix> |
Scanner.processMatch(Match match)
Processes one
Match at a time. |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
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.
|
static void |
ApplySuggestedFixes.applySuggestedFixesToFiles(Iterable<SuggestedFix> fixes)
Applies the provided set of suggested fixes to the files listed in the suggested fixes.
|
Copyright © 2009-2016 Google. All Rights Reserved.