(node *ast.Node)
| 810 | } |
| 811 | |
| 812 | func (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 | |
| 819 | func (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 |
no test coverage detected