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

Method _ensureindentStr

src/MagicString.js:191–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189 }
190
191 _ensureindentStr() {
192 if (this.indentStr === undefined) {
193 this.indentStr = guessIndent(this.original);
194 }
195 }
196
197 _getRawIndentString() {
198 this._ensureindentStr();

Callers 3

_getRawIndentStringMethod · 0.95
getIndentStringMethod · 0.95
indentMethod · 0.95

Calls 1

guessIndentFunction · 0.50

Tested by

no test coverage detected