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

Method EmitFlags

internal/printer/emitcontext.go:552–557  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

550}
551
552func (c *EmitContext) EmitFlags(node *ast.Node) EmitFlags {
553 if emitNode := c.emitNodes.TryGet(node); emitNode != nil {
554 return emitNode.emitFlags
555 }
556 return EFNone
557}
558
559func (c *EmitContext) SetEmitFlags(node *ast.Node, flags EmitFlags) {
560 c.emitNodes.Get(node).emitFlags = flags

Callers 15

isCustomPrologueMethod · 0.95
IsCallToHelperMethod · 0.95
typeToStringForDiagFunction · 0.80
getLiteralTextOfNodeMethod · 0.80
shouldEmitIndentedMethod · 0.80
shouldEmitOnNewLineMethod · 0.80

Calls 1

TryGetMethod · 0.80

Tested by

no test coverage detected