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

Function lineEnd

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

Source from the content-addressed store, hash-verified

5847 return Pos(lineN, ch);
5848 }
5849 function lineEnd(cm, lineN) {
5850 var merged, line;
5851 while (merged = collapsedSpanAtEnd(line = getLine(cm.doc, lineN)))
5852 lineN = merged.find().to.line;
5853 var order = getOrder(line);
5854 var ch = !order ? line.text.length : order[0].level % 2 ? lineLeft(line) : lineRight(line);
5855 return Pos(lineN, ch);
5856 }
5857
5858 function compareBidiLevel(order, a, b) {
5859 var linedir = order[0].level;

Callers 1

codemirror.jsFile · 0.70

Calls 7

PosFunction · 0.85
collapsedSpanAtEndFunction · 0.70
getLineFunction · 0.70
getOrderFunction · 0.70
lineLeftFunction · 0.70
lineRightFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected