MCPcopy Create free account
hub / github.com/cel-expr/cel-go / FindReverseBinaryOperator

Function FindReverseBinaryOperator

common/operators/operators.go:128–137  ·  view source on GitHub ↗

FindReverseBinaryOperator returns the unmangled, text representation of a binary operator. If the symbol does refer to an operator, but the operator does not have a display name the result is false.

(symbol string)

Source from the content-addressed store, hash-verified

126// If the symbol does refer to an operator, but the operator does not have a display name the
127// result is false.
128func FindReverseBinaryOperator(symbol string) (string, bool) {
129 op, found := operatorMap[symbol]
130 if !found || op.arity != 2 {
131 return "", false
132 }
133 if op.displayName == "" {
134 return "", false
135 }
136 return op.displayName, true
137}
138
139// Precedence returns the operator precedence, where the higher the number indicates
140// higher precedence operations.

Callers 2

visitCallBinaryMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected