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

Function Precedence

common/operators/operators.go:141–147  ·  view source on GitHub ↗

Precedence returns the operator precedence, where the higher the number indicates higher precedence operations.

(symbol string)

Source from the content-addressed store, hash-verified

139// Precedence returns the operator precedence, where the higher the number indicates
140// higher precedence operations.
141func Precedence(symbol string) int {
142 op, found := operatorMap[symbol]
143 if !found {
144 return 0
145 }
146 return op.precedence
147}
148
149// Arity returns the number of argument the operator takes
150// -1 is returned if an undefined symbol is provided

Callers 2

isSamePrecedenceFunction · 0.92
isLowerPrecedenceFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected