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

Method renumberStable

cel/optimizer.go:228–238  ·  view source on GitHub ↗
(id int64)

Source from the content-addressed store, hash-verified

226}
227
228func (gen *idGenerator) renumberStable(id int64) int64 {
229 if id == 0 {
230 return 0
231 }
232 if newID, found := gen.idMap[id]; found {
233 return newID
234 }
235 nextID := gen.nextID()
236 gen.idMap[id] = nextID
237 return nextID
238}
239
240// OptimizerContext embeds Env and Issues instances to make it easy to type-check and evaluate
241// subexpressions and report any errors encountered along the way. The context also embeds the

Callers

nothing calls this directly

Calls 1

nextIDMethod · 0.95

Tested by

no test coverage detected