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

Method OffsetLocation

parser/helper.go:499–501  ·  view source on GitHub ↗

OffsetLocation implements the ExprHelper interface method.

(exprID int64)

Source from the content-addressed store, hash-verified

497
498// OffsetLocation implements the ExprHelper interface method.
499func (e *exprHelper) OffsetLocation(exprID int64) common.Location {
500 return e.parserHelper.sourceInfo.GetStartLocation(exprID)
501}
502
503// NewError associates an error message with a given expression id, populating the source offset location of the error if possible.
504func (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