Package com.google.javascript.jscomp
Class JsonErrorReportGenerator
java.lang.Object
com.google.javascript.jscomp.JsonErrorReportGenerator
- All Implemented Interfaces:
SortingErrorManager.ErrorReportGenerator
public class JsonErrorReportGenerator
extends Object
implements SortingErrorManager.ErrorReportGenerator
An error report generator that prints error and warning data to the print stream as an array of
JSON objects.
-
Constructor Summary
ConstructorsConstructorDescriptionJsonErrorReportGenerator(PrintStream stream, SourceExcerptProvider sourceExcerptProvider) Creates an error manager. -
Method Summary
-
Constructor Details
-
JsonErrorReportGenerator
Creates an error manager.- Parameters:
stream- the stream on which the errors and warnings should be printed. This class does not close the streamsourceExcerptProvider- used to retrieve the source context which generated the error
-
-
Method Details
-
generateReport
- Specified by:
generateReportin interfaceSortingErrorManager.ErrorReportGenerator
-