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

Method ClearOffsetRange

common/ast/ast.go:377–381  ·  view source on GitHub ↗

ClearOffsetRange removes the OffsetRange for the given expression id.

(id int64)

Source from the content-addressed store, hash-verified

375
376// ClearOffsetRange removes the OffsetRange for the given expression id.
377func (s *SourceInfo) ClearOffsetRange(id int64) {
378 if s != nil {
379 delete(s.offsetRanges, id)
380 }
381}
382
383// GetStartLocation calculates the human-readable 1-based line and 0-based column of the first character
384// 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