private static JsParserException createParserException(String msg, Node offender) { CodePosition position = new CodePosition(offender.getLineno(), 0); return new JsParserException("Parser encountered internal error: " + msg, position); }