MCPcopy Index your code
hub / github.com/expr-lang/expr / combinedOperator

Function combinedOperator

optimizer/predicate_combination.go:46–61  ·  view source on GitHub ↗
(fn, op string)

Source from the content-addressed store, hash-verified

44}
45
46func combinedOperator(fn, op string) (string, bool) {
47 switch {
48 case fn == "all" && (op == "and" || op == "&&"):
49 return op, true
50 case fn == "any" && (op == "or" || op == "||"):
51 return op, true
52 case fn == "none" && (op == "and" || op == "&&"):
53 switch op {
54 case "and":
55 return "or", true
56 case "&&":
57 return "||", true
58 }
59 }
60 return "", false
61}

Callers 1

VisitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…