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

Method NewLocation

common/source.go:53–53  ·  view source on GitHub ↗

NewLocation takes an input line and column and produces a Location. The default behavior is to treat the line and column as absolute, but concrete derivations may use this method to convert a relative line and column position into an absolute location.

(line, col int)

Source from the content-addressed store, hash-verified

51 // but concrete derivations may use this method to convert a relative
52 // line and column position into an absolute location.
53 NewLocation(line, col int) Location
54
55 // Snippet returns a line of content and whether the line was found.
56 Snippet(line int) (string, bool)

Callers

nothing calls this directly

Implementers 1

sourceImplcommon/source.go

Calls

no outgoing calls

Tested by

no test coverage detected