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

Method toString

src/MagicString.ts:991–1001  ·  view source on GitHub ↗

* Returns the generated string.

()

Source from the content-addressed store, hash-verified

989 * Returns the generated string.
990 */
991 toString(): string {
992 let str = this.intro
993
994 let chunk = this.firstChunk
995 while (chunk) {
996 str += chunk.toString()
997 chunk = chunk.next
998 }
999
1000 return str + this.outro
1001 }
1002
1003 /**
1004 * 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