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

Method setEntrySize

checker/cost.go:970–975  ·  view source on GitHub ↗
(e ast.Expr, size *entrySizeEstimate)

Source from the content-addressed store, hash-verified

968}
969
970func (c *coster) setEntrySize(e ast.Expr, size *entrySizeEstimate) {
971 if size == nil {
972 return
973 }
974 c.computedEntrySizes[e.ID()] = *size
975}
976
977func (c *coster) computeEntrySize(e ast.Expr) *entrySizeEstimate {
978 if sz, found := c.computedEntrySizes[e.ID()]; found {

Callers 5

costCreateListMethod · 0.95
costCreateMapMethod · 0.95
costComprehensionMethod · 0.95
functionCostMethod · 0.95
copySizeEstimatesMethod · 0.95

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected