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

Method OffsetLocation

common/ast/ast_test.go:453–458  ·  view source on GitHub ↗
(offset int32)

Source from the content-addressed store, hash-verified

451}
452
453func (src *mockSource) OffsetLocation(offset int32) (common.Location, bool) {
454 if offset == 0 {
455 return src.baseLocation, true
456 }
457 return src.Source.OffsetLocation(offset)
458}
459
460func TestSourceInfoRenumberIDs(t *testing.T) {
461 info := ast.NewSourceInfo(nil)

Callers

nothing calls this directly

Calls 1

OffsetLocationMethod · 0.65

Tested by

no test coverage detected