MCPcopy Create free account
hub / github.com/sql-js/sql.js / visualLineNo

Function visualLineNo

GUI/codemirror/lib/codemirror.js:5420–5424  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

5418 // Get the line number of the start of the visual line that the
5419 // given line number is part of.
5420 function visualLineNo(doc, lineN) {
5421 var line = getLine(doc, lineN), vis = visualLine(line);
5422 if (line == vis) return lineN;
5423 return lineNo(vis);
5424 }
5425 // Get the line number of the start of the next visual line after
5426 // the given line.
5427 function visualLineEndNo(doc, lineN) {

Callers 3

updateDisplayInnerFunction · 0.85
regChangeFunction · 0.85
viewCuttingPointFunction · 0.85

Calls 3

getLineFunction · 0.85
visualLineFunction · 0.85
lineNoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…