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

Method getIndentString

src/MagicString.ts:395–398  ·  view source on GitHub ↗

* Returns the indentation string guessed from the original content, falling back to a single tab character. * This is the value `s.indent()` uses when no prefix is supplied.

()

Source from the content-addressed store, hash-verified

393 * This is the value `s.indent()` uses when no prefix is supplied.
394 */
395 getIndentString(): string {
396 this._ensureindentStr()
397 return this.indentStr ?? '\t'
398 }
399
400 /**
401 * Prefixes each line of the string with prefix.

Callers

nothing calls this directly

Calls 1

_ensureindentStrMethod · 0.95

Tested by

no test coverage detected