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

Method LineOffsets

common/ast/ast.go:308–313  ·  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

306
307// LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
308func (s *SourceInfo) LineOffsets() []int32 {
309 if s == nil {
310 return []int32{}
311 }
312 return s.lines
313}
314
315// MacroCalls returns a map of expression id to ast.Expr value where the id represents the expression
316// 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