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

Method shouldEmitOnSingleLine

internal/printer/printer.go:759–761  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

757}
758
759func (p *Printer) shouldEmitOnSingleLine(node *ast.Node) bool {
760 return p.emitContext.EmitFlags(node)&EFSingleLine != 0
761}
762
763func (p *Printer) shouldEmitOnMultipleLines(node *ast.Node) bool {
764 return p.emitContext.EmitFlags(node)&EFMultiLine != 0

Callers 8

writeLineOrSpaceMethod · 0.95
emitTypeLiteralMethod · 0.95
emitTupleTypeMethod · 0.95
emitMappedTypeMethod · 0.95
emitBlockMethod · 0.95
emitModuleBlockMethod · 0.95
emitEmbeddedStatementMethod · 0.95

Calls 1

EmitFlagsMethod · 0.80

Tested by

no test coverage detected