(updated *ast.Node, original *ast.Node)
| 77 | } |
| 78 | |
| 79 | func (c *EmitContext) onClone(updated *ast.Node, original *ast.Node) { |
| 80 | c.SetOriginal(updated, original) |
| 81 | if ast.IsIdentifier(updated) || ast.IsPrivateIdentifier(updated) { |
| 82 | if autoGenerate := c.autoGenerate[original]; autoGenerate != nil { |
| 83 | autoGenerateCopy := *autoGenerate |
| 84 | c.autoGenerate[updated] = &autoGenerateCopy |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | // Creates a new NodeVisitor attached to this EmitContext |
| 90 | func (c *EmitContext) NewNodeVisitor(visit func(node *ast.Node) *ast.Node) *ast.NodeVisitor { |
nothing calls this directly
no test coverage detected