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

Method SetOffsetRange

common/ast/ast.go:369–374  ·  view source on GitHub ↗

SetOffsetRange sets the OffsetRange for the given expression id.

(id int64, o OffsetRange)

Source from the content-addressed store, hash-verified

367
368// SetOffsetRange sets the OffsetRange for the given expression id.
369func (s *SourceInfo) SetOffsetRange(id int64, o OffsetRange) {
370 if s == nil {
371 return
372 }
373 s.offsetRanges[id] = o
374}
375
376// ClearOffsetRange removes the OffsetRange for the given expression id.
377func (s *SourceInfo) ClearOffsetRange(id int64) {

Callers 7

TestSourceInfoFunction · 0.95
ProtoToSourceInfoFunction · 0.95
NewStringMethod · 0.80
CollectMetadataMethod · 0.80
idMethod · 0.80
CopyASTAndMetadataMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestSourceInfoFunction · 0.76