@Override
	public void syntaxError(Recognizer<?, ?> recognizer,
							Object offendingSymbol,
							int line,
							int charPositionInLine,
							String msg,
							RecognitionException e)
	{
		for (ANTLRErrorListener listener : delegates) {
			listener.syntaxError(recognizer, offendingSymbol, line, charPositionInLine, msg, e);
		}
	}
This implementation of {@link ANTLRErrorListener} dispatches all calls to a
collection of delegate listeners. This reduces the effort required to support multiple
listeners.

@author Sam Harwell
runtime/Java/src/org/antlr/v4/runtime/ProxyErrorListener.java