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

Method toString

src/MagicString.ts:975–985  ·  view source on GitHub ↗

* Returns the generated string.

()

Source from the content-addressed store, hash-verified

973 * Returns the generated string.
974 */
975 toString(): string {
976 let str = this.intro
977
978 let chunk = this.firstChunk
979 while (chunk) {
980 str += chunk.toString()
981 chunk = chunk.next
982 }
983
984 return str + this.outro
985 }
986
987 /**
988 * Returns true if the resulting source is empty (disregarding white space).

Callers 1

hasChangedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected