| 11 | ) |
| 12 | |
| 13 | type OperatorOverloading struct { |
| 14 | Operator string // Operator token to overload. |
| 15 | Overloads []string // List of function names to replace operator with. |
| 16 | Env *nature.Nature // Env type. |
| 17 | Functions conf.FunctionsTable // Env functions. |
| 18 | applied bool // Flag to indicate if any changes were made to the tree. |
| 19 | NtCache *nature.Cache |
| 20 | } |
| 21 | |
| 22 | func (p *OperatorOverloading) Visit(node *ast.Node) { |
| 23 | binaryNode, ok := (*node).(*ast.BinaryNode) |
nothing calls this directly
no outgoing calls
no test coverage detected