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

Method VisitEntryExpr

cel/folding_test.go:1221–1226  ·  view source on GitHub ↗

VisitEntryExpr updates the max identifier if the incoming entry id is greater than previously observed.

(e ast.EntryExpr)

Source from the content-addressed store, hash-verified

1219
1220// VisitEntryExpr updates the max identifier if the incoming entry id is greater than previously observed.
1221func (c *idCollector) VisitEntryExpr(e ast.EntryExpr) {
1222 if e.ID() == 0 {
1223 return
1224 }
1225 c.ids = append(c.ids, e.ID())
1226}
1227
1228func (c *idCollector) IDs() []int64 {
1229 sort.Sort(c.ids)

Callers

nothing calls this directly

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected