Package | Description |
---|---|
com.google.javascript.refactoring | |
com.google.javascript.refactoring.testing |
Modifier and Type | Method and Description |
---|---|
SuggestedFix |
SuggestedFix.Builder.build() |
static SuggestedFix |
ErrorToFixMapper.getFixForJsError(JSError error,
AbstractCompiler compiler) |
Modifier and Type | Method and Description |
---|---|
List<SuggestedFix> |
RefactoringDriver.drive()
Run the refactoring and return any suggested fixes as a result.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static void |
SuggestedFixes.assertChanges(SuggestedFix fix,
String externs,
String originalCode,
String expectedCode) |
static void |
SuggestedFixes.assertReplacement(SuggestedFix fix,
CodeReplacement expectedReplacement) |
Modifier and Type | Method and Description |
---|---|
static void |
SuggestedFixes.assertChanges(List<SuggestedFix> fixes,
String externs,
String originalCode,
String expectedCode) |
Copyright © 2009-2015 Google. All Rights Reserved.