aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/graphql-go/graphql/language/ast/types.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-29 18:58:42 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-29 18:58:42 +0200
commit8fa0b258ac89781dae269790a4bde09cbcd2f324 (patch)
treeb9bcf0826f5739f128de52123447cede23291c02 /vendor/github.com/graphql-go/graphql/language/ast/types.go
parent6363518c85cbd8247a5f6507b8a1dd3903cfb71d (diff)
downloadgit-bug-8fa0b258ac89781dae269790a4bde09cbcd2f324.tar.gz
cleaning
Diffstat (limited to 'vendor/github.com/graphql-go/graphql/language/ast/types.go')
-rw-r--r--vendor/github.com/graphql-go/graphql/language/ast/types.go106
1 files changed, 0 insertions, 106 deletions
diff --git a/vendor/github.com/graphql-go/graphql/language/ast/types.go b/vendor/github.com/graphql-go/graphql/language/ast/types.go
deleted file mode 100644
index 27f00997..00000000
--- a/vendor/github.com/graphql-go/graphql/language/ast/types.go
+++ /dev/null
@@ -1,106 +0,0 @@
-package ast
-
-import (
- "github.com/graphql-go/graphql/language/kinds"
-)
-
-type Type interface {
- GetKind() string
- GetLoc() *Location
- String() string
-}
-
-// Ensure that all value types implements Value interface
-var _ Type = (*Named)(nil)
-var _ Type = (*List)(nil)
-var _ Type = (*NonNull)(nil)
-
-// Named implements Node, Type
-type Named struct {
- Kind string
- Loc *Location
- Name *Name
-}
-
-func NewNamed(t *Named) *Named {
- if t == nil {
- t = &Named{}
- }
- return &Named{
- Kind: kinds.Named,
- Loc: t.Loc,
- Name: t.Name,
- }
-}
-
-func (t *Named) GetKind() string {
- return t.Kind
-}
-
-func (t *Named) GetLoc() *Location {
- return t.Loc
-}
-
-func (t *Named) String() string {
- return t.GetKind()
-}
-
-// List implements Node, Type
-type List struct {
- Kind string
- Loc *Location
- Type Type
-}
-
-func NewList(t *List) *List {
- if t == nil {
- t = &List{}
- }
- return &List{
- Kind: kinds.List,
- Loc: t.Loc,
- Type: t.Type,
- }
-}
-
-func (t *List) GetKind() string {
- return t.Kind
-}
-
-func (t *List) GetLoc() *Location {
- return t.Loc
-}
-
-func (t *List) String() string {
- return t.GetKind()
-}
-
-// NonNull implements Node, Type
-type NonNull struct {
- Kind string
- Loc *Location
- Type Type
-}
-
-func NewNonNull(t *NonNull) *NonNull {
- if t == nil {
- t = &NonNull{}
- }
- return &NonNull{
- Kind: kinds.NonNull,
- Loc: t.Loc,
- Type: t.Type,
- }
-}
-
-func (t *NonNull) GetKind() string {
- return t.Kind
-}
-
-func (t *NonNull) GetLoc() *Location {
- return t.Loc
-}
-
-func (t *NonNull) String() string {
- return t.GetKind()
-}