MCPcopy Index your code
hub / github.com/benfry/processing4 / findProblem

Method findProblem

app/src/processing/app/ui/Editor.java:2618–2624  ·  view source on GitHub ↗

@return the Problem for the most relevant error or warning on 'line', defaults to the first error, if there are no errors first warning.

(int line)

Source from the content-addressed store, hash-verified

2616 * defaults to the first error, if there are no errors first warning.
2617 */
2618 protected Problem findProblem(int line) {
2619 List<Problem> problems = findProblems(line);
2620 for (Problem p : problems) {
2621 if (p.isError()) return p;
2622 }
2623 return problems.isEmpty() ? null : problems.get(0);
2624 }
2625
2626
2627 public List<Problem> findProblems(int line) {

Callers 1

updateEditorStatusMethod · 0.95

Calls 4

findProblemsMethod · 0.95
isEmptyMethod · 0.80
isErrorMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected