Sets the range to use for a node when emitting comments.
(to *ast.Node, from *ast.Node)
| 581 | |
| 582 | // Sets the range to use for a node when emitting comments. |
| 583 | func (c *EmitContext) AssignCommentRange(to *ast.Node, from *ast.Node) { |
| 584 | c.SetCommentRange(to, c.CommentRange(from)) |
| 585 | } |
| 586 | |
| 587 | // Gets the range to use for a node when emitting source maps. |
| 588 | func (c *EmitContext) SourceMapRange(node *ast.Node) core.TextRange { |
no test coverage detected