Package | Description |
---|---|
com.google.javascript.refactoring | |
com.google.javascript.refactoring.testing |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ListMultimap<JSError,SuggestedFix> |
FixingErrorManager.fixes |
private java.util.List<SuggestedFix> |
JsFlumeCallback.fixes |
Modifier and Type | Method and Description |
---|---|
SuggestedFix |
SuggestedFix.Builder.build() |
private static SuggestedFix |
ErrorToFixMapper.getFixForExtraRequire(JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.getFixForInexistentProperty(JSError error) |
static SuggestedFix |
ErrorToFixMapper.getFixForJsError(JSError error,
AbstractCompiler compiler)
Creates a SuggestedFix for the given error.
|
private static SuggestedFix |
ErrorToFixMapper.getFixForMissingRequire(JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.getFixForUnnecessaryCast(JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.getFixForUnsortedRequiresOrProvides(java.lang.String closureFunction,
JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.removeNode(JSError error) |
Modifier and Type | Method and Description |
---|---|
java.util.List<SuggestedFix> |
RefactoringDriver.drive()
Run the refactoring and return any suggested fixes as a result.
|
java.util.Collection<SuggestedFix> |
FixingErrorManager.getAllFixes() |
(package private) java.util.List<SuggestedFix> |
JsFlumeCallback.getFixes() |
private static java.util.List<SuggestedFix> |
ErrorToFixMapper.getFixesForImplicitlyNullableJsDoc(JSError error) |
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 |
---|---|
static void |
SuggestedFixes.assertChanges(SuggestedFix fix,
java.lang.String externs,
java.lang.String originalCode,
java.lang.String expectedCode) |
static void |
SuggestedFixes.assertReplacement(SuggestedFix fix,
CodeReplacement expectedReplacement) |
private static void |
SuggestedFixes.assertReplacements(SuggestedFix fix,
java.util.Set<CodeReplacement> expectedReplacements) |
Modifier and Type | Method and Description |
---|---|
static void |
SuggestedFixes.assertChanges(java.util.List<SuggestedFix> fixes,
java.lang.String externs,
java.lang.String originalCode,
java.lang.String expectedCode) |