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

Method OffsetLocation

parser/helper.go:540–542  ·  view source on GitHub ↗

OffsetLocation implements the ExprHelper interface method.

(exprID int64)

Source from the content-addressed store, hash-verified

538
539// OffsetLocation implements the ExprHelper interface method.
540func (e *exprHelper) OffsetLocation(exprID int64) common.Location {
541 return e.parserHelper.sourceInfo.GetStartLocation(exprID)
542}
543
544// NewError associates an error message with a given expression id, populating the source offset location of the error if possible.
545func (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