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

Method _ensureindentStr

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

@internal

()

Source from the content-addressed store, hash-verified

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