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

Method SetFile

gqlerror/error.go:22–31  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

20}
21
22func (err *Error) SetFile(file string) {
23 if file == "" {
24 return
25 }
26 if err.Extensions == nil {
27 err.Extensions = map[string]any{}
28 }
29
30 err.Extensions["file"] = file
31}
32
33type Location struct {
34 Line int `json:"line,omitempty"`

Callers 1

AtFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected