MCPcopy Index your code
hub / github.com/processing/processing / findProblems

Method findProblems

app/src/processing/app/ui/Editor.java:3151–3162  ·  view source on GitHub ↗
(int line)

Source from the content-addressed store, hash-verified

3149
3150
3151 public List<Problem> findProblems(int line) {
3152 int currentTab = getSketch().getCurrentCodeIndex();
3153 return problems.stream()
3154 .filter(p -> p.getTabIndex() == currentTab)
3155 .filter(p -> {
3156 int pStartLine = p.getLineNumber();
3157 int pEndOffset = p.getStopOffset();
3158 int pEndLine = textarea.getLineOfOffset(pEndOffset);
3159 return line >= pStartLine && line <= pEndLine;
3160 })
3161 .collect(Collectors.toList());
3162 }
3163
3164
3165 public void repaintErrorBar() {

Callers 3

findProblemMethod · 0.95
paintErrorLineMethod · 0.80
getToolTipTextMethod · 0.80

Calls 7

getSketchMethod · 0.95
getLineOfOffsetMethod · 0.80
getTabIndexMethod · 0.65
getLineNumberMethod · 0.65
getStopOffsetMethod · 0.65
getCurrentCodeIndexMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected