MCPcopy
hub / github.com/HubSpot/messenger / getLine

Function getLine

docs/welcome/lib/executr/lib/CodeMirror/codemirror.js:4101–4110  ·  view source on GitHub ↗
(chunk, n)

Source from the content-addressed store, hash-verified

4099 // LINE UTILITIES
4100
4101 function getLine(chunk, n) {
4102 while (!chunk.lines) {
4103 for (var i = 0;; ++i) {
4104 var child = chunk.children[i], sz = child.chunkSize();
4105 if (n < sz) { chunk = child; break; }
4106 n -= sz;
4107 }
4108 }
4109 return chunk.lines[n];
4110 }
4111
4112 function updateLineHeight(line, height) {
4113 var diff = height - line.height;

Callers 15

makeViewFunction · 0.85
lineLengthFunction · 0.85
computeMaxLengthFunction · 0.85
updateDisplayInnerFunction · 0.85
drawForLineFunction · 0.85
updateSelectionRangeFunction · 0.85
findStartLineFunction · 0.85
getStateBeforeFunction · 0.85
charCoordsFunction · 0.85
cursorCoordsFunction · 0.85
coordsCharFunction · 0.85
readInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…