public final class ErrorToFixMapper
extends java.lang.Object
JSError to a list of SuggestedFixes, if possible.
TODO(tbreisacher): Move this into the compiler itself (i.e. into the jscomp package). This will
make it easier for people adding new warnings to also add fixes for them.| Constructor and Description |
|---|
ErrorToFixMapper(AbstractCompiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<SuggestedFix> |
getFixesForJsError(JSError error) |
SuggestedFix |
getFixForJsError(JSError error)
Creates a SuggestedFix for the given error.
|
public ErrorToFixMapper(AbstractCompiler compiler)
public com.google.common.collect.ImmutableList<SuggestedFix> getFixesForJsError(JSError error)
public SuggestedFix getFixForJsError(JSError error)
Copyright © 2009-2020 Google. All Rights Reserved.