MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / removeInner

Function removeInner

lib/web/CodeMirror/src/model/chunk.js:33–41  ·  view source on GitHub ↗
(at, n)

Source from the content-addressed store, hash-verified

31
32 // Remove the n lines at offset 'at'.
33 removeInner(at, n) {
34 for (let i = at, e = at + n; i < e; ++i) {
35 let line = this.lines[i]
36 this.height -= line.height
37 cleanUpLine(line)
38 signalLater(line, "delete")
39 }
40 this.lines.splice(at, n)
41 },
42
43 // Helper used to collapse a small branch into a single leaf.
44 collapse(lines) {

Callers

nothing calls this directly

Calls 4

cleanUpLineFunction · 0.90
signalLaterFunction · 0.90
collapseMethod · 0.80
minMethod · 0.45

Tested by

no test coverage detected