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

Method _ensureindentStr

src/MagicString.ts:293–297  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

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