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

Method printNewlinePastLineLimit

internal/js_printer/js_printer.go:808–815  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

806}
807
808func (p *printer) printNewlinePastLineLimit() bool {
809 if p.currentLineLength() < p.options.LineLimit {
810 return false
811 }
812 p.print("\n")
813 p.printIndent()
814 return true
815}
816
817func (p *printer) printSpaceBeforeOperator(next js_ast.OpCode) {
818 if p.prevOpEnd == len(p.js) {

Callers 5

printBindingMethod · 0.95
printExprMethod · 0.95
printDeclsMethod · 0.95
printStmtMethod · 0.95
visitRightAndFinishMethod · 0.45

Calls 3

currentLineLengthMethod · 0.95
printMethod · 0.95
printIndentMethod · 0.95

Tested by

no test coverage detected