MCPcopy Index your code
hub / github.com/badvision/jace / manageCompileResult

Method manageCompileResult

src/main/java/jace/ide/Program.java:240–248  ·  view source on GitHub ↗
(CompileResult lastResult)

Source from the content-addressed store, hash-verified

238 }
239
240 protected void manageCompileResult(CompileResult lastResult) {
241 editor.getEngine().executeScript("clearHighlights()");
242 lastResult.getWarnings().forEach((line, message)
243 -> editor.getEngine().executeScript("highlightLine(" + line + ",false,\"" + escapeString(message) + "\");")
244 );
245 lastResult.getErrors().forEach((line, message)
246 -> editor.getEngine().executeScript("highlightLine(" + line + ",true,\"" + escapeString(message) + "\");")
247 );
248 }
249
250 private String escapeString(Object message) {
251 return String.valueOf(message).replaceAll("\\\"", """);

Callers 2

executeMethod · 0.95
testMethod · 0.95

Calls 3

escapeStringMethod · 0.95
getWarningsMethod · 0.65
getErrorsMethod · 0.65

Tested by

no test coverage detected