MCPcopy Index your code
hub / github.com/microsoft/typescript-go / decreaseIndentIf

Method decreaseIndentIf

internal/printer/printer.go:396–400  ·  view source on GitHub ↗
(indentRequested bool)

Source from the content-addressed store, hash-verified

394}
395
396func (p *Printer) decreaseIndentIf(indentRequested bool) {
397 if indentRequested {
398 p.decreaseIndent()
399 }
400}
401
402func (p *Printer) writeLineOrSpace(parentNode *ast.Node, prevChildNode *ast.Node, nextChildNode *ast.Node) {
403 if p.shouldEmitOnSingleLine(parentNode) {

Callers 15

emitMethodSignatureMethod · 0.95
emitMethodDeclarationMethod · 0.95
emitConstructorMethod · 0.95
emitCallSignatureMethod · 0.95
emitIndexSignatureMethod · 0.95
emitFunctionTypeMethod · 0.95
emitConstructorTypeMethod · 0.95

Calls 1

decreaseIndentMethod · 0.95

Tested by

no test coverage detected