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

Method OffsetLocation

parser/helper.go:503–505  ·  view source on GitHub ↗

OffsetLocation implements the ExprHelper interface method.

(exprID int64)

Source from the content-addressed store, hash-verified

501
502// OffsetLocation implements the ExprHelper interface method.
503func (e *exprHelper) OffsetLocation(exprID int64) common.Location {
504 return e.parserHelper.sourceInfo.GetStartLocation(exprID)
505}
506
507// NewError associates an error message with a given expression id, populating the source offset location of the error if possible.
508func (e *exprHelper) NewError(exprID int64, message string) *common.Error {

Callers 1

NewErrorMethod · 0.95

Calls 1

GetStartLocationMethod · 0.80

Tested by

no test coverage detected