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

Method shouldEmitOnNewLine

internal/printer/printer.go:805–810  ·  view source on GitHub ↗
(node *ast.Node, format ListFormat)

Source from the content-addressed store, hash-verified

803}
804
805func (p *Printer) shouldEmitOnNewLine(node *ast.Node, format ListFormat) bool {
806 if p.emitContext.EmitFlags(node)&EFStartOnNewLine != 0 {
807 return true
808 }
809 return format&LFPreferNewLine != 0
810}
811
812func (p *Printer) shouldEmitSourceMaps(node *ast.Node) bool {
813 return !p.sourceMapsDisabled &&

Calls 1

EmitFlagsMethod · 0.80

Tested by

no test coverage detected