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

Method OffsetLocation

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

Source from the content-addressed store, hash-verified

470}
471
472func (src *mockSource) OffsetLocation(offset int32) (common.Location, bool) {
473 if offset == 0 {
474 return src.baseLocation, true
475 }
476 return src.Source.OffsetLocation(offset)
477}
478
479func TestSourceInfoRenumberIDs(t *testing.T) {
480 info := ast.NewSourceInfo(nil)

Callers

nothing calls this directly

Calls 1

OffsetLocationMethod · 0.65

Tested by

no test coverage detected