MCPcopy Index your code
hub / github.com/expr-lang/expr / errorAt

Method errorAt

parser/parser.go:155–162  ·  view source on GitHub ↗
(token Token, format string, args ...any)

Source from the content-addressed store, hash-verified

153}
154
155func (p *Parser) errorAt(token Token, format string, args ...any) {
156 if p.err == nil { // show first error
157 p.err = &file.Error{
158 Location: token.Location,
159 Message: fmt.Sprintf(format, args...),
160 }
161 }
162}
163
164func (p *Parser) next() {
165 if p.hasStash {

Callers 2

errorMethod · 0.95
parseExpressionMethod · 0.95

Calls 1

SprintfMethod · 0.80

Tested by

no test coverage detected