MCPcopy Index your code
hub / github.com/kpdecker/jsdiff / join

Method join

src/diff/base.ts:295–301  ·  view source on GitHub ↗
(chars: TokenT[])

Source from the content-addressed store, hash-verified

293 }
294
295 join(chars: TokenT[]): ValueT {
296 // Assumes ValueT is string, which is the case for most subclasses.
297 // When it's false, e.g. in diffArrays, this method needs to be overridden (e.g. with a no-op)
298 // Yes, the casts are verbose and ugly, because this pattern - of having the base class SORT OF
299 // assume tokens and values are strings, but not completely - is weird and janky.
300 return (chars as string[]).join('') as unknown as ValueT;
301 }
302
303 postProcess(
304 changeObjects: ChangeObject<ValueT>[],

Callers 8

buildValuesMethod · 0.95
line.jsFile · 0.45
create.jsFile · 0.45
apply.jsFile · 0.45
convertChangesToXMLFunction · 0.45
formatPatchFunction · 0.45
applyStructuredPatchFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected