(token ast.Kind, pos int, contextNode *ast.Node, flags tokenEmitFlags)
| 6148 | ) |
| 6149 | |
| 6150 | func (p *Printer) enterToken(token ast.Kind, pos int, contextNode *ast.Node, flags tokenEmitFlags) (printerState, int) { |
| 6151 | state := printerState{} |
| 6152 | state.commentState, pos = p.emitCommentsBeforeToken(token, pos, contextNode, flags) |
| 6153 | state.sourceMapState = p.emitSourceMapsBeforeToken(token, pos, contextNode, flags) |
| 6154 | return state, pos |
| 6155 | } |
| 6156 | |
| 6157 | func (p *Printer) exitToken(token ast.Kind, pos int, contextNode *ast.Node, previousState printerState) { |
| 6158 | p.emitSourceMapsAfterToken(token, pos, contextNode, previousState.sourceMapState) |
no test coverage detected