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

Method LocationOffset

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

LocationOffset translates a Location to an offset. Given the line and column of the Location returns the Location's character offset in the Source, and a bool indicating whether the Location was found.

(location Location)

Source from the content-addressed store, hash-verified

41 // Location's character offset in the Source, and a bool
42 // indicating whether the Location was found.
43 LocationOffset(location Location) (int32, bool)
44
45 // OffsetLocation translates a character offset to a Location, or
46 // false if the conversion was not feasible.

Callers 3

OffsetLocationMethod · 0.65
OffsetLocationMethod · 0.65

Implementers 1

sourceImplcommon/source.go

Calls

no outgoing calls

Tested by 2

OffsetLocationMethod · 0.52