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

Method LineOffsets

common/ast/ast.go:300–305  ·  view source on GitHub ↗

LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.

()

Source from the content-addressed store, hash-verified

298
299// LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
300func (s *SourceInfo) LineOffsets() []int32 {
301 if s == nil {
302 return []int32{}
303 }
304 return s.lines
305}
306
307// MacroCalls returns a map of expression id to ast.Expr value where the id represents the expression
308// node where the macro was inserted into the AST, and the ast.Expr value represents the original call

Callers 3

GetLocationByOffsetMethod · 0.95
ComputeOffsetAbsoluteMethod · 0.95
TestSourceInfoFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestSourceInfoFunction · 0.76