Class ErrorToFixMapper
java.lang.Object
com.google.javascript.refactoring.ErrorToFixMapper
Maps a
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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList
<SuggestedFix> getFixesForJsError
(JSError error) @Nullable SuggestedFix
getFixForJsError
(JSError error) Creates a SuggestedFix for the given error.
-
Constructor Details
-
ErrorToFixMapper
-
-
Method Details
-
getFixesForJsError
-
getFixForJsError
Creates a SuggestedFix for the given error. Note that some errors have multiple fixes so getFixesForJsError should often be used instead of this.
-