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

Function isLeftRecursive

parser/unparser.go:474–476  ·  view source on GitHub ↗

isLeftRecursive indicates whether the parser resolves the call in a left-recursive manner as this can have an effect of how parentheses affect the order of operations in the AST.

(op string)

Source from the content-addressed store, hash-verified

472// isLeftRecursive indicates whether the parser resolves the call in a left-recursive manner as
473// this can have an effect of how parentheses affect the order of operations in the AST.
474func isLeftRecursive(op string) bool {
475 return op != operators.LogicalAnd && op != operators.LogicalOr
476}
477
478// isSamePrecedence indicates whether the precedence of the input operator is the same as the
479// precedence of the (possible) operation represented in the input Expr.

Callers 1

visitCallBinaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected