MCPcopy Create free account
hub / github.com/TruthHun/BookStack / groupByLine

Function groupByLine

static/editor.md/lib/codemirror/addon/lint/lint.js:102–109  ·  view source on GitHub ↗
(annotations)

Source from the content-addressed store, hash-verified

100 }
101
102 function groupByLine(annotations) {
103 var lines = [];
104 for (var i = 0; i < annotations.length; ++i) {
105 var ann = annotations[i], line = ann.from.line;
106 (lines[line] || (lines[line] = [])).push(ann);
107 }
108 return lines;
109 }
110
111 function annotationTooltip(ann) {
112 var severity = ann.severity;

Callers 1

updateLintingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected