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

Function NewLocation

common/location.go:37–41  ·  view source on GitHub ↗

NewLocation creates a new location.

(line, column int)

Source from the content-addressed store, hash-verified

35
36// NewLocation creates a new location.
37func NewLocation(line, column int) Location {
38 return &SourceLocation{
39 line: line,
40 column: column}
41}
42
43// Line returns the 1-based line of the location.
44func (l *SourceLocation) Line() int {

Callers 11

RelativeMethod · 0.92
TestParseFunction · 0.92
GetLocationByOffsetMethod · 0.92
TestSourceInfoFunction · 0.92
TestErrorsFunction · 0.85
NewLocationMethod · 0.85
OffsetLocationMethod · 0.85

Calls

no outgoing calls

Tested by 7

TestParseFunction · 0.74
TestSourceInfoFunction · 0.74
TestErrorsFunction · 0.68