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

Method _ensureindentStr

src/MagicString.ts:379–383  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

377
378 /** @internal */
379 _ensureindentStr(): void {
380 if (this.indentStr === undefined) {
381 this.indentStr = guessIndent(this.original)
382 }
383 }
384
385 /** @internal */
386 _getRawIndentString(): string | null | undefined {

Callers 3

_getRawIndentStringMethod · 0.95
getIndentStringMethod · 0.95
indentMethod · 0.95

Calls 1

guessIndentFunction · 0.90

Tested by

no test coverage detected