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

Method length

benchmark/data.js:722–729  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

720 return true;
721 }
722 length() {
723 let chunk = this.firstChunk;
724 let length = 0;
725 do {
726 length += chunk.intro.length + chunk.content.length + chunk.outro.length;
727 } while ((chunk = chunk.next));
728 return length;
729 }
730 trimLines() {
731 return this.trim('[\\r\\n]');
732 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected