Variables returns the absolute traversals that exist within the receiving expression.
()
| 130 | // Variables returns the absolute traversals that exist within the receiving |
| 131 | // expression. |
| 132 | func (e *Expression) Variables() []*Traversal { |
| 133 | nodes := e.absTraversals.List() |
| 134 | ret := make([]*Traversal, len(nodes)) |
| 135 | for i, node := range nodes { |
| 136 | ret[i] = node.content.(*Traversal) |
| 137 | } |
| 138 | return ret |
| 139 | } |
| 140 | |
| 141 | // RenameVariablePrefix examines each of the absolute traversals in the |
| 142 | // receiving expression to see if they have the given sequence of names as |
nothing calls this directly
no test coverage detected