MCPcopy
hub / github.com/csev/py4e / PosWithInfo

Function PosWithInfo

tools/pythonauto/static/codemirrorepl/codemirror.js:1760–1765  ·  view source on GitHub ↗
(line, ch, outside, xRel)

Source from the content-addressed store, hash-verified

1758 // is true, that means the coordinates lie outside the line's
1759 // vertical range.
1760 function PosWithInfo(line, ch, outside, xRel) {
1761 var pos = Pos(line, ch);
1762 pos.xRel = xRel;
1763 if (outside) pos.outside = true;
1764 return pos;
1765 }
1766
1767 // Compute the character position closest to the given coordinates.
1768 // Input must be lineSpace-local ("div" coordinate system).

Callers 2

coordsCharFunction · 0.70
coordsCharInnerFunction · 0.70

Calls 1

PosFunction · 0.85

Tested by

no test coverage detected