MCPcopy Create free account
hub / github.com/brimdata/super / hasThisWithEmptyPath

Function hasThisWithEmptyPath

compiler/optimizer/optimizer.go:718–727  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

716}
717
718func 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//

Callers 2

liftFilterOpsFunction · 0.85
mergeValuesOpsFunction · 0.85

Calls 1

walkTFunction · 0.85

Tested by

no test coverage detected