(node *ast.Node, previousState *sourceMapState)
| 5894 | } |
| 5895 | |
| 5896 | func (p *Printer) emitSourceMapsAfterNode(node *ast.Node, previousState *sourceMapState) { |
| 5897 | if previousState == nil { |
| 5898 | return |
| 5899 | } |
| 5900 | |
| 5901 | emitFlags := previousState.emitFlags |
| 5902 | loc := previousState.sourceMapRange |
| 5903 | |
| 5904 | if emitFlags&EFNoNestedSourceMaps != 0 { |
| 5905 | p.sourceMapsDisabled = false |
| 5906 | } |
| 5907 | |
| 5908 | if !ast.IsNotEmittedStatement(node) && |
| 5909 | emitFlags&EFNoTrailingSourceMap == 0 && |
| 5910 | !ast.PositionIsSynthesized(loc.End()) { |
| 5911 | p.emitSourcePos(p.sourceMapSource, loc.End()) |
| 5912 | } |
| 5913 | } |
| 5914 | |
| 5915 | func (p *Printer) emitSourceMapsBeforeToken(token ast.Kind, pos int, contextNode *ast.Node, flags tokenEmitFlags) *sourceMapState { |
| 5916 | if !p.shouldEmitTokenSourceMaps(token, pos, contextNode, flags) { |
no test coverage detected