(v any)
| 716 | } |
| 717 | |
| 718 | func hasThisWithEmptyPath(v any) bool { |
| 719 | var found bool |
| 720 | walkT(reflect.ValueOf(v), func(this *dag.ThisExpr) *dag.ThisExpr { |
| 721 | if len(this.Path) < 1 { |
| 722 | found = true |
| 723 | } |
| 724 | return this |
| 725 | }) |
| 726 | return found |
| 727 | } |
| 728 | |
| 729 | // addPathToExpr is roughly equivalent to this: |
| 730 | // |
no test coverage detected