Class LookaheadErrorReporter
- java.lang.Object
-
- com.google.javascript.jscomp.parsing.parser.util.ErrorReporter
-
- com.google.javascript.jscomp.parsing.parser.util.LookaheadErrorReporter
-
public class LookaheadErrorReporter extends ErrorReporter
An error reporter that throws exceptions for parse errors. Used for speculative parses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LookaheadErrorReporter.ParseException
-
Constructor Summary
Constructors Constructor Description LookaheadErrorReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reportError(SourcePosition location, java.lang.String message)
void
reportWarning(SourcePosition location, java.lang.String message)
-
Methods inherited from class com.google.javascript.jscomp.parsing.parser.util.ErrorReporter
hadError, reportError, reportWarning
-
-
-
-
Method Detail
-
reportError
public void reportError(SourcePosition location, java.lang.String message)
- Specified by:
reportError
in classErrorReporter
-
reportWarning
public void reportWarning(SourcePosition location, java.lang.String message)
- Specified by:
reportWarning
in classErrorReporter
-
-