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

Method ClearOffsetRange

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

ClearOffsetRange removes the OffsetRange for the given expression id.

(id int64)

Source from the content-addressed store, hash-verified

367
368// ClearOffsetRange removes the OffsetRange for the given expression id.
369func (s *SourceInfo) ClearOffsetRange(id int64) {
370 if s != nil {
371 delete(s.offsetRanges, id)
372 }
373}
374
375// GetStartLocation calculates the human-readable 1-based line and 0-based column of the first character
376// of the expression node at the id.

Callers 2

deleteIDMethod · 0.80
ClearUnusedIDsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected