public final class ErrorToFixMapper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ErrorToFixMapper.RequireProvideSorter |
Modifier and Type | Field and Description |
---|---|
private static Pattern |
DID_YOU_MEAN |
private static Pattern |
EXTRA_REQUIRE |
private static Pattern |
MISSING_REQUIRE |
Modifier | Constructor and Description |
---|---|
private |
ErrorToFixMapper() |
private static final Pattern DID_YOU_MEAN
private static final Pattern MISSING_REQUIRE
private static final Pattern EXTRA_REQUIRE
public static java.util.List<SuggestedFix> getFixesForJsError(JSError error, AbstractCompiler compiler)
public static SuggestedFix getFixForJsError(JSError error, AbstractCompiler compiler)
private static java.util.List<SuggestedFix> getFixesForImplicitlyNullableJsDoc(JSError error)
private static SuggestedFix removeNode(JSError error)
private static SuggestedFix getFixForInexistentProperty(JSError error)
private static SuggestedFix getFixForMissingRequire(JSError error, AbstractCompiler compiler)
private static SuggestedFix getFixForExtraRequire(JSError error, AbstractCompiler compiler)
private static SuggestedFix getFixForUnnecessaryCast(JSError error, AbstractCompiler compiler)
private static SuggestedFix getFixForUnsortedRequiresOrProvides(java.lang.String closureFunction, JSError error, AbstractCompiler compiler)
private static java.lang.String getNamespaceFromClosureNode(Node exprResult)