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

Method _ensureindentStr

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

@internal

()

Source from the content-addressed store, hash-verified

292
293 /** @internal */
294 _ensureindentStr(): void {
295 if (this.indentStr === undefined) {
296 this.indentStr = guessIndent(this.original)
297 }
298 }
299
300 /** @internal */
301 _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