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

Method toString

src/MagicString.ts:974–984  ·  view source on GitHub ↗

* Returns the generated string.

()

Source from the content-addressed store, hash-verified

972 * Returns the generated string.
973 */
974 toString(): string {
975 let str = this.intro
976
977 let chunk = this.firstChunk
978 while (chunk) {
979 str += chunk.toString()
980 chunk = chunk.next
981 }
982
983 return str + this.outro
984 }
985
986 /**
987 * 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