(dst *mathTree, src *dql.MathTree)
| 439 | } |
| 440 | |
| 441 | func mathCopy(dst *mathTree, src *dql.MathTree) error { |
| 442 | // Either we'll have an operation specified, or the function specified. |
| 443 | dst.Const = src.Const |
| 444 | dst.Fn = src.Fn |
| 445 | dst.Val = src.Val |
| 446 | dst.Var = src.Var |
| 447 | |
| 448 | for _, mc := range src.Child { |
| 449 | child := &mathTree{} |
| 450 | if err := mathCopy(child, mc); err != nil { |
| 451 | return err |
| 452 | } |
| 453 | dst.Child = append(dst.Child, child) |
| 454 | } |
| 455 | return nil |
| 456 | } |
| 457 | |
| 458 | func filterCopy(sg *SubGraph, ft *dql.FilterTree) error { |
| 459 | // Either we'll have an operation specified, or the function specified. |
no outgoing calls
no test coverage detected
searching dependent graphs…