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

Method shouldEmitSourceMaps

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

Source from the content-addressed store, hash-verified

810}
811
812func (p *Printer) shouldEmitSourceMaps(node *ast.Node) bool {
813 return !p.sourceMapsDisabled &&
814 p.sourceMapSource != nil &&
815 !ast.IsSourceFile(node) &&
816 !ast.IsInJsonFile(node)
817}
818
819func (p *Printer) shouldEmitTokenSourceMaps(token ast.Kind, pos int, contextNode *ast.Node, flags tokenEmitFlags) bool {
820 // We don't emit source positions for most tokens as it tends to be quite noisy, however

Callers 2

Calls 2

IsSourceFileFunction · 0.92
IsInJsonFileFunction · 0.92

Tested by

no test coverage detected