MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / finish

Method finish

src/utils/MappingsEncoder.ts:77–81  ·  view source on GitHub ↗
(segments: FullSegment[])

Source from the content-addressed store, hash-verified

75 }
76
77 finish(segments: FullSegment[]): string {
78 this.drain(segments)
79 this.flush()
80 return this.out
81 }
82
83 private drain(trailing: FullSegment[] | null): void {
84 const lines = this.lines

Callers 4

generateMapMethod · 0.95
generateMapMethod · 0.95
Mappings.test.tsFile · 0.80

Calls 2

drainMethod · 0.95
flushMethod · 0.95

Tested by

no test coverage detected