Gets the most original node associated with this node by walking Original pointers. NOTE: This method is analogous to `getOriginalNode` in the old compiler, but the name has changed to avoid accidental conflation with `SetOriginal`/`Original`
(node *ast.Node)
| 485 | // NOTE: This method is analogous to `getOriginalNode` in the old compiler, but the name has changed to avoid accidental |
| 486 | // conflation with `SetOriginal`/`Original` |
| 487 | func (c *EmitContext) MostOriginal(node *ast.Node) *ast.Node { |
| 488 | if node != nil { |
| 489 | original := c.Original(node) |
| 490 | for original != nil { |
| 491 | node = original |
| 492 | original = c.Original(node) |
| 493 | } |
| 494 | } |
| 495 | return node |
| 496 | } |
| 497 | |
| 498 | // Gets the original parse tree node for a given node. |
| 499 | // |
no test coverage detected