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

Method setSize

checker/cost.go:916–922  ·  view source on GitHub ↗
(e ast.Expr, size *SizeEstimate)

Source from the content-addressed store, hash-verified

914}
915
916func (c *coster) setSize(e ast.Expr, size *SizeEstimate) {
917 if size == nil {
918 return
919 }
920 // Store the computed size with the expression
921 c.computedSizes[e.ID()] = *size
922}
923
924func (c *coster) sizeOrUnknown(node any) SizeEstimate {
925 switch v := node.(type) {

Callers 3

costCallMethod · 0.95
costComprehensionMethod · 0.95
copySizeEstimatesMethod · 0.95

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected