MCPcopy Create free account
hub / github.com/vektah/gqlparser / error

Method error

parser/parser.go:94–99  ·  view source on GitHub ↗
(tok lexer.Token, format string, args ...any)

Source from the content-addressed store, hash-verified

92}
93
94func (p *parser) error(tok lexer.Token, format string, args ...any) {
95 if p.err != nil {
96 return
97 }
98 p.err = gqlerror.ErrorLocf(tok.Pos.Src.Name, tok.Pos.Line, tok.Pos.Column, format, args...)
99}
100
101func (p *parser) next() lexer.Token {
102 if p.err != nil {

Callers 6

expectKeywordMethod · 0.95
expectMethod · 0.95
unexpectedTokenMethod · 0.95
someMethod · 0.95
TestParserUtilsFunction · 0.80

Calls 1

ErrorLocfFunction · 0.92

Tested by 1

TestParserUtilsFunction · 0.64