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

Method Entries

common/ast/navigable.go:478–493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

476}
477
478func (m navigableMapImpl) Entries() []EntryExpr {
479 mapExpr := m.Expr.AsMap()
480 entries := make([]EntryExpr, len(mapExpr.Entries()))
481 for i, e := range mapExpr.Entries() {
482 entry := e.AsMapEntry()
483 entries[i] = &entryExpr{
484 id: e.ID(),
485 entryExprKindCase: navigableEntryImpl{
486 key: m.createChild(entry.Key()),
487 val: m.createChild(entry.Value()),
488 isOpt: entry.IsOptional(),
489 },
490 }
491 }
492 return entries
493}
494
495func (m navigableMapImpl) Size() int {
496 return m.Expr.AsMap().Size()

Callers

nothing calls this directly

Calls 8

createChildMethod · 0.80
AsMapMethod · 0.65
EntriesMethod · 0.65
AsMapEntryMethod · 0.65
IDMethod · 0.65
KeyMethod · 0.65
ValueMethod · 0.65
IsOptionalMethod · 0.65

Tested by

no test coverage detected