MCPcopy Create free account
hub / github.com/antlr/codebuff / syntaxError

Method syntaxError

src/org/antlr/codebuff/Tool.java:343–346  ·  view source on GitHub ↗
(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e)

Source from the content-addressed store, hash-verified

341 doc.parser.addErrorListener(
342 new ANTLRErrorListener() {
343 @Override
344 public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) {
345 System.err.println(recognizer.getInputStream().getSourceName()+" line " + line + ":" + charPositionInLine + " " + msg);
346 }
347
348 @Override
349 public void reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs) {

Callers

nothing calls this directly

Calls 1

getSourceNameMethod · 0.45

Tested by

no test coverage detected