MCPcopy
hub / github.com/evanw/esbuild / printIndent

Method printIndent

internal/js_printer/js_printer.go:349–367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347}
348
349func (p *printer) printIndent() {
350 if p.options.MinifyWhitespace {
351 return
352 }
353
354 if p.printNextIndentAsSpace {
355 p.print(" ")
356 p.printNextIndentAsSpace = false
357 return
358 }
359
360 indent := p.options.Indent
361 if p.options.LineLimit > 0 && indent*2 >= p.options.LineLimit {
362 indent = p.options.LineLimit / 2
363 }
364 for i := 0; i < indent; i++ {
365 p.print(" ")
366 }
367}
368
369func (p *printer) mangledPropName(ref ast.Ref) string {
370 ref = ast.FollowSymbols(p.symbols, ref)

Callers 15

printBindingMethod · 0.95
printDecoratorsMethod · 0.95
printClassMethod · 0.95
printPropertyMethod · 0.95
printDotThenPrefixMethod · 0.95
printDotThenSuffixMethod · 0.95
printExprMethod · 0.95

Calls 1

printMethod · 0.95

Tested by

no test coverage detected