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

Struct SourceInfo

common/ast/ast.go:261–272  ·  view source on GitHub ↗

SourceInfo records basic information about the expression as a textual input and as a parsed expression value.

Source from the content-addressed store, hash-verified

259// SourceInfo records basic information about the expression as a textual input and
260// as a parsed expression value.
261type SourceInfo struct {
262 syntax string
263 desc string
264 lines []int32
265 baseLine int32
266 baseCol int32
267 offsetRanges map[int64]OffsetRange
268 macroCalls map[int64]Expr
269
270 // extensions indicate versioned optional features which affect the execution of one or more CEL component.
271 extensions []Extension
272}
273
274// RenumberIDs performs an in-place update of the expression IDs within the SourceInfo.
275func (s *SourceInfo) RenumberIDs(idGen IDGenerator) {

Callers 2

TestBindingsNonMatchFunction · 0.92
ResidualAstMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestBindingsNonMatchFunction · 0.74