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

Method highlight

app/src/processing/app/ui/Editor.java:2558–2569  ·  view source on GitHub ↗
(Problem p)

Source from the content-addressed store, hash-verified

2556
2557
2558 public void highlight(Problem p) {
2559 if (p == null) {
2560 return;
2561 }
2562
2563 int tabIndex = p.getTabIndex();
2564 int lineNumber = p.getLineNumber();
2565 int lineStart = textarea.getLineStartOffset(lineNumber);
2566 int tabToStartOffset = lineStart + p.getStartOffset();
2567 int tabToStopOffset = lineStart + p.getStopOffset();
2568 highlight(tabIndex, tabToStartOffset, tabToStopOffset);
2569 }
2570
2571
2572 public void highlight(int tabIndex, int startOffset, int stopOffset) {

Callers 5

errorTableClickMethod · 0.95
scrollToMarkerAtMethod · 0.80
handleInspectMethod · 0.80
ASTViewerMethod · 0.80
ShowUsageMethod · 0.80

Calls 11

constrainMethod · 0.95
setCurrentCodeMethod · 0.80
getDocumentLengthMethod · 0.80
selectMethod · 0.80
scrollToCaretMethod · 0.80
repaintMethod · 0.80
getTabIndexMethod · 0.65
getLineNumberMethod · 0.65
getStartOffsetMethod · 0.65
getStopOffsetMethod · 0.65
getLineStartOffsetMethod · 0.45

Tested by

no test coverage detected