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

Method _ensureindentStr

src/MagicString.ts:303–307  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

301
302 /** @internal */
303 _ensureindentStr(): void {
304 if (this.indentStr === undefined) {
305 this.indentStr = guessIndent(this.original)
306 }
307 }
308
309 /** @internal */
310 _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