private static class RhinoErrorReporter.OldRhinoErrorReporter extends RhinoErrorReporter implements ErrorReporter
BAD_JSDOC_ANNOTATION, compiler, DUPLICATE_PARAM, ES6_FEATURE, ES6_TYPED, INVALID_ES3_PROP_NAME, INVALID_OCTAL_LITERAL, INVALID_PARAM, JSDOC_IN_BLOCK_COMMENT, JSDOC_MISSING_BRACES_WARNING, JSDOC_MISSING_TYPE_WARNING, MISPLACED_TYPE_SYNTAX, PARSE_ERROR, PARSE_TREE_TOO_DEEP, TOO_MANY_TEMPLATE_PARAMS, TRAILING_COMMA, TYPE_PARSE_ERROR| Modifier | Constructor and Description |
|---|---|
private |
OldRhinoErrorReporter(AbstractCompiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
Report an error.
|
void |
warning(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
Report a warning.
|
errorAtLine, forOldRhino, mapError, warningAtLineprivate OldRhinoErrorReporter(AbstractCompiler compiler)
public void error(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
ErrorReportererror in interface ErrorReportermessage - a String describing the errorsourceName - a String describing the JavaScript source
where the error occurred; typically a filename or URLline - the line number associated with the errorlineOffset - the offset into lineSource where problem was detectedpublic void warning(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
ErrorReporterwarning in interface ErrorReportermessage - a String describing the warningsourceName - a String describing the JavaScript source
where the warning occurred; typically a filename or URLline - the line number associated with the warninglineOffset - the offset into lineSource where problem was detected