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

Method _ensureindentStr

src/MagicString.ts:298–302  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

296
297 /** @internal */
298 _ensureindentStr(): void {
299 if (this.indentStr === undefined) {
300 this.indentStr = guessIndent(this.original)
301 }
302 }
303
304 /** @internal */
305 _getRawIndentString(): string | null | undefined {

Callers 3

_getRawIndentStringMethod · 0.95
getIndentStringMethod · 0.95
indentMethod · 0.95

Calls 1

guessIndentFunction · 0.50

Tested by

no test coverage detected