MCPcopy
hub / github.com/expr-lang/expr / error

Method error

checker/checker.go:239–247  ·  view source on GitHub ↗
(node ast.Node, format string, args ...any)

Source from the content-addressed store, hash-verified

237}
238
239func (v *Checker) error(node ast.Node, format string, args ...any) Nature {
240 if v.err == nil { // show first error
241 v.err = &file.Error{
242 Location: node.Location(),
243 Message: fmt.Sprintf(format, args...),
244 }
245 }
246 return Nature{}
247}
248
249func (v *Checker) identifierNode(node *ast.IdentifierNode) Nature {
250 for i := len(v.varScopes) - 1; i >= 0; i-- {

Callers 13

identMethod · 0.95
unaryNodeMethod · 0.95
binaryNodeMethod · 0.95
memberNodeMethod · 0.95
sliceNodeMethod · 0.95
callNodeMethod · 0.95
builtinNodeMethod · 0.95
checkBuiltinGetMethod · 0.95
checkFunctionMethod · 0.95
pointerNodeMethod · 0.95
sequenceNodeMethod · 0.95

Implementers 3

Configconf/config.go
Checkerchecker/checker.go
OperatorOverloadingpatcher/operator_override.go

Calls 2

SprintfMethod · 0.80
LocationMethod · 0.65

Tested by

no test coverage detected