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

Method SetOffsetRange

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

359
360// SetOffsetRange sets the OffsetRange for the given expression id.
361func (s *SourceInfo) SetOffsetRange(id int64, o OffsetRange) {
362 if s == nil {
363 return
364 }
365 s.offsetRanges[id] = o
366}
367
368// ClearOffsetRange removes the OffsetRange for the given expression id.
369func (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