/** * Reports parsing errors that occurred while parsing embedded language * fragments. * * @param parser * The parser that generated the errors. * @param relativeLineNr * Relative source code line position (start of the embedded fragment * in source). * @param relativeCharPos * Relative source code character position (start of the embedded * fragment in source). */ protected void reportEmbeddedLanguageErrors(CognitiveKR ckr) { for (SourceInfo error : ckr.getErrors()) { reportError(SyntaxError.EMBEDDED_LANGUAGE_ERROR, error, KRFactory.getName(this.program.getKRInterface()), error.getMessage()); } }
for (final SourceInfo error : ckr.getErrors()) { this.firstPass.reportError(SyntaxError.EMBEDDED_LANGUAGE_ERROR, error, KRFactory.getName(this.program.getKRInterface()), error.getMessage());