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

Method finish

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

Source from the content-addressed store, hash-verified

77 }
78
79 finish(segments: FullSegment[]): string {
80 this.drain(segments)
81 this.flush()
82 return this.out
83 }
84
85 private drain(trailing: FullSegment[] | null): void {
86 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