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

Interface IStringDiffModel

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

Source from the content-addressed store, hash-verified

31 * to cases where original content is in a string format.
32 */
33export interface IStringDiffModel extends IDiffModel {
34 /**
35 * Base value
36 */
37 base: string | null;
38
39 /**
40 * Remote value
41 */
42 remote: string | null;
43
44 /**
45 * Mimetype of the data the string represents.
46 *
47 * Can be used for things such as syntax highlighting.
48 */
49 mimetype: string;
50
51 /**
52 * Location of additions, as positions in the remote value.
53 *
54 * Locations should be sorted on the ranges' `from` position
55 */
56 additions: DiffRangePos[];
57
58 /**
59 * Location of deletions, as positions in the base value.
60 *
61 * Locations should be sorted on the ranges' `from` position
62 */
63 deletions: DiffRangePos[];
64
65 /**
66 * A function that will separate the diff into chunks.
67 */
68 getLineChunks(): Chunk[];
69
70 /**
71 * Create an iterator for iterating over the diffs in order
72 */
73 iterateDiffs(): StringDiffModel.DiffIter;
74}
75
76/**
77 * Standard implementation of the IStringDiffModel interface.

Callers 4

chunking.spec.tsFile · 0.65
initMethod · 0.65
syncModelMethod · 0.65
constructorMethod · 0.65

Implementers 1

StringDiffModelpackages/nbdime/src/diff/model/string.

Calls

no outgoing calls

Tested by

no test coverage detected