MCPcopy
hub / github.com/jupyter/nbdime / getLineChunks

Method getLineChunks

packages/nbdime/src/diff/model/string.ts:126–133  ·  view source on GitHub ↗

* Chunk additions/deletions into line-based chunks

()

Source from the content-addressed store, hash-verified

124 * Chunk additions/deletions into line-based chunks
125 */
126 getLineChunks(): Chunk[] {
127 let chunker = new LineChunker();
128 let i = this.iterateDiffs();
129 for (let v = i.next(); v !== undefined; v = i.next()) {
130 chunker.addDiff(v.range, v.isAddition);
131 }
132 return chunker.chunks;
133 }
134
135 get remote(): string | null {
136 return this._remote;

Callers

nothing calls this directly

Calls 3

iterateDiffsMethod · 0.95
addDiffMethod · 0.80
nextMethod · 0.65

Tested by

no test coverage detected