public final class ErrorToFixMapper
extends java.lang.Object
JSError
to a list of SuggestedFix
es, 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.Modifier and Type | Method and Description |
---|---|
static com.google.common.collect.ImmutableList<SuggestedFix> |
getFixesForJsError(JSError error,
AbstractCompiler compiler) |
static SuggestedFix |
getFixForJsError(JSError error,
AbstractCompiler compiler)
Creates a SuggestedFix for the given error.
|
public static com.google.common.collect.ImmutableList<SuggestedFix> getFixesForJsError(JSError error, AbstractCompiler compiler)
public static SuggestedFix getFixForJsError(JSError error, AbstractCompiler compiler)
Copyright © 2009-2019 Google. All Rights Reserved.