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

Method visitCallIndexInternal

parser/unparser.go:247–262  ·  view source on GitHub ↗
(expr ast.Expr, op string)

Source from the content-addressed store, hash-verified

245}
246
247func (un *unparser) visitCallIndexInternal(expr ast.Expr, op string) error {
248 c := expr.AsCall()
249 args := c.Args()
250 nested := isBinaryOrTernaryOperator(args[0])
251 err := un.visitMaybeNested(args[0], nested)
252 if err != nil {
253 return err
254 }
255 un.str.WriteString(op)
256 err = un.visit(args[1])
257 if err != nil {
258 return err
259 }
260 un.str.WriteString("]")
261 return nil
262}
263
264func (un *unparser) visitCallUnary(expr ast.Expr) error {
265 c := expr.AsCall()

Callers 2

visitCallIndexMethod · 0.95
visitCallOptIndexMethod · 0.95

Calls 5

visitMaybeNestedMethod · 0.95
visitMethod · 0.95
AsCallMethod · 0.65
ArgsMethod · 0.65

Tested by

no test coverage detected