MCPcopy Index your code
hub / github.com/csev/py4e / lineStart

Function lineStart

tools/pythonauto/static/codemirror/codemirror.js:5841–5848  ·  view source on GitHub ↗
(cm, lineN)

Source from the content-addressed store, hash-verified

5839 }
5840
5841 function lineStart(cm, lineN) {
5842 var line = getLine(cm.doc, lineN);
5843 var visual = visualLine(cm.doc, line);
5844 if (visual != line) lineN = lineNo(visual);
5845 var order = getOrder(visual);
5846 var ch = !order ? 0 : order[0].level % 2 ? lineRight(visual) : lineLeft(visual);
5847 return Pos(lineN, ch);
5848 }
5849 function lineEnd(cm, lineN) {
5850 var merged, line;
5851 while (merged = collapsedSpanAtEnd(line = getLine(cm.doc, lineN)))

Callers 1

codemirror.jsFile · 0.70

Calls 7

PosFunction · 0.85
getLineFunction · 0.70
visualLineFunction · 0.70
lineNoFunction · 0.70
getOrderFunction · 0.70
lineRightFunction · 0.70
lineLeftFunction · 0.70

Tested by

no test coverage detected