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

Method constructor

packages/nbdime/src/diff/model/string.ts:287–303  ·  view source on GitHub ↗
(models: (IStringDiffModel | null)[])

Source from the content-addressed store, hash-verified

285 }
286
287 constructor(models: (IStringDiffModel | null)[]) {
288 this.models = [];
289 this.iterators = [];
290 this.values = [];
291 this.offsets = [];
292 // Set up iterator and dummy chunkers for other models
293 for (let m of models) {
294 if (m === null) {
295 continue;
296 }
297 this.models.push(m);
298 let it = m.iterateDiffs();
299 this.iterators.push(it);
300 this.offsets.push(0);
301 this.values.push(it.next());
302 }
303 }
304
305 next(): DiffIterValue {
306 // Compare in base index to see which diff is next

Callers

nothing calls this directly

Calls 2

iterateDiffsMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected