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

Method LineOffsets

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

LineOffsets gives the character offsets at which lines occur. The zero-th entry should refer to the break between the first and second line, or EOF if there is only one line of source.

()

Source from the content-addressed store, hash-verified

35 // The zero-th entry should refer to the break between the first
36 // and second line, or EOF if there is only one line of source.
37 LineOffsets() []int32
38
39 // LocationOffset translates a Location to an offset.
40 // Given the line and column of the Location returns the

Callers 5

CollectMetadataMethod · 0.65
NewSourceInfoFunction · 0.65
TestSourceInfoNilSafetyFunction · 0.65
SourceInfoToProtoFunction · 0.65

Implementers 1

sourceImplcommon/source.go

Calls

no outgoing calls

Tested by 2

TestSourceInfoNilSafetyFunction · 0.52