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

Method OffsetLocation

common/source.go:47–47  ·  view source on GitHub ↗

OffsetLocation translates a character offset to a Location, or false if the conversion was not feasible.

(offset int32)

Source from the content-addressed store, hash-verified

45 // OffsetLocation translates a character offset to a Location, or
46 // false if the conversion was not feasible.
47 OffsetLocation(offset int32) (Location, bool)
48
49 // NewLocation takes an input line and column and produces a Location.
50 // The default behavior is to treat the line and column as absolute,

Callers 2

NewSourceInfoFunction · 0.65
OffsetLocationMethod · 0.65

Implementers 1

sourceImplcommon/source.go

Calls

no outgoing calls

Tested by 1

OffsetLocationMethod · 0.52