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

Method idFromOffsets

parser/helper.go:195–200  ·  view source on GitHub ↗
(start, stop int32)

Source from the content-addressed store, hash-verified

193}
194
195func (p *parserHelper) idFromOffsets(start, stop int32) int64 {
196 id := p.nextID
197 p.sourceInfo.SetOffsetRange(id, ast.OffsetRange{Start: p.computeOffset(start), Stop: p.computeOffset(stop)})
198 p.nextID++
199 return id
200}
201
202func (p *parserHelper) allocID() int64 {
203 id := p.nextID

Callers 1

nextIDMethod · 0.80

Calls 2

computeOffsetMethod · 0.95
SetOffsetRangeMethod · 0.80

Tested by

no test coverage detected