diff options
Diffstat (limited to 'vendor/github.com/graphql-go/graphql/language/ast/document.go')
-rw-r--r-- | vendor/github.com/graphql-go/graphql/language/ast/document.go | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/vendor/github.com/graphql-go/graphql/language/ast/document.go b/vendor/github.com/graphql-go/graphql/language/ast/document.go deleted file mode 100644 index dcb67034..00000000 --- a/vendor/github.com/graphql-go/graphql/language/ast/document.go +++ /dev/null @@ -1,31 +0,0 @@ -package ast - -import ( - "github.com/graphql-go/graphql/language/kinds" -) - -// Document implements Node -type Document struct { - Kind string - Loc *Location - Definitions []Node -} - -func NewDocument(d *Document) *Document { - if d == nil { - d = &Document{} - } - return &Document{ - Kind: kinds.Document, - Loc: d.Loc, - Definitions: d.Definitions, - } -} - -func (node *Document) GetKind() string { - return node.Kind -} - -func (node *Document) GetLoc() *Location { - return node.Loc -} |