MCPcopy Create free account

hub / github.com/vektah/gqlparser / functions

Functions429 in github.com/vektah/gqlparser

↓ 114 callersMethodForName
(name string)
ast/collections.go:5
↓ 71 callersFunctionVariableValues
VariableValues coerces and validates variable values.
validator/vars.go:19
↓ 70 callersMethodWriteString
(s string)
formatter/formatter.go:128
↓ 62 callersMethodWriteWord
(word string)
formatter/formatter.go:115
↓ 60 callersFunctionMessage
(msg string, args ...any)
validator/core/helpers.go:16
↓ 56 callersFunctionAt
(position *ast.Position)
validator/core/helpers.go:22
↓ 52 callersMethodpeek
()
parser/parser.go:78
↓ 44 callersMethodString
(buf *bytes.Buffer)
validator/rules/overlapping_fields_can_be_merged.go:214
↓ 38 callersMethodpeekPos
()
parser/parser.go:69
↓ 37 callersFunctionErrorPosf
(pos *ast.Position, message string, args ...any)
gqlerror/error.go:167
↓ 32 callersMethodparseName
()
parser/query.go:368
↓ 30 callersFunctionNamedType
(named string, pos *Position)
ast/type.go:7
↓ 29 callersMethodName
()
ast/type.go:26
↓ 27 callersMethodFormatCommentGroup
(group *ast.CommentGroup)
formatter/formatter.go:820
↓ 25 callersMethodWriteNewline
()
formatter/formatter.go:107
↓ 24 callersMethodparseDirectives
(isConst bool)
parser/query.go:328
↓ 23 callersMethodString
()
ast/path.go:22
↓ 22 callersMethodnext
()
parser/parser.go:101
↓ 21 callersMethodexpectKeyword
(value string)
parser/parser.go:124
↓ 20 callersMethodLen
()
validator/core/core.go:20
↓ 20 callersMethodNoPadding
()
formatter/formatter.go:166
↓ 19 callersFunctionParseQuery
(source *Source)
parser/query.go:8
↓ 18 callersFunctionListType
(elem *Type, pos *Position)
ast/type.go:15
↓ 18 callersMethodunexpectedError
()
parser/parser.go:160
↓ 17 callersMethodIsCompatible
(other *Type)
ast/type.go:46
↓ 17 callersMethodskip
(kind lexer.Type)
parser/parser.go:146
↓ 16 callersMethodexpect
(kind lexer.Type)
parser/parser.go:135
↓ 16 callersMethodmakeValueToken
(kind Type, value string)
lexer/lexer.go:45
↓ 15 callersFunctionErrorPathf
(path ast.Path, message string, args ...any)
gqlerror/error.go:160
↓ 15 callersMethodmakeError
(format string, args ...any)
lexer/lexer.go:59
↓ 14 callersMethodError
()
gqlerror/error.go:84
↓ 14 callersFunctionLoadSchema
(inputs ...*Source)
validator/schema.go:14
↓ 14 callersMethodNeedPadding
()
formatter/formatter.go:172
↓ 14 callersMethodsome
(start, end lexer.Type, cb func())
parser/parser.go:180
↓ 13 callersFunctionnewParser
(input string)
parser/parser_test.go:173
↓ 12 callersMethodFormatDirectiveList
(lists ast.DirectiveList)
formatter/formatter.go:644
↓ 12 callersFunctionParseSchema
(source *Source)
parser/schema.go:20
↓ 11 callersMethodGetInner
GetInner returns the internal rule map. If the map is not initialized, it returns an empty map. This returns a copy of the rules map, not the original
validator/rules/rules.go:81
↓ 10 callersMethodError
()
gqlerror/error_test.go:16
↓ 9 callersMethodAs
(target any)
gqlerror/error.go:102
↓ 9 callersMethodOnField
(f func(walker *Walker, field *ast.Field))
validator/core/walk.go:26
↓ 9 callersMethoderror
(tok lexer.Token, format string, args ...any)
parser/parser.go:94
↓ 8 callersMethodOnOperation
(f func(walker *Walker, operation *ast.OperationDefinition))
validator/core/walk.go:22
↓ 8 callersFunctionOrList
Given [ A, B, C ] return 'A, B, or C'.
validator/core/helpers.go:71
↓ 8 callersFunctionQuotedOrList
Given [ A, B, C ] return '"A", "B", or "C"'.
validator/core/helpers.go:62
↓ 8 callersFunctionarg2map
( defs ArgumentDefinitionList, args ArgumentList, vars map[string]any, )
ast/argmap.go:3
↓ 7 callersMethodDecrementIndent
()
formatter/formatter.go:162
↓ 7 callersFunctionErrorLocf
(file string, line, col int, message string, args ...any)
gqlerror/error.go:186
↓ 7 callersMethodIncrementIndent
()
formatter/formatter.go:158
↓ 7 callersMethodString
()
parser/testrunner/runner.go:35
↓ 7 callersFunctionValidateWithRules
( schema *Schema, doc *QueryDocument, rules *validatorrules.Rules, )
validator/validator.go:121
↓ 7 callersMethodwalkDirectives
( parentDef *ast.Definition, directives []*ast.Directive, location ast.DirectiveLocation, )
validator/core/walk.go:145
↓ 6 callersFunctionNew
(src *ast.Source)
lexer/lexer.go:29
↓ 6 callersFunctionNonNullNamedType
(named string, pos *Position)
ast/type.go:3
↓ 6 callersMethodOnFragment
(f func(walker *Walker, fragment *ast.FragmentDefinition))
validator/core/walk.go:30
↓ 6 callersFunctionSuggestListQuoted
(prefix, typed string, suggestions []string)
validator/core/helpers.go:37
↓ 6 callersFunctionValidate
Deprecated: use ValidateWithRules instead.
validator/validator.go:88
↓ 6 callersMethodWriteDescription
(s string)
formatter/formatter.go:141
↓ 6 callersMethoddump
(v reflect.Value)
ast/dumper.go:30
↓ 6 callersFunctiongetFieldsAndFragmentNames
( selectionSet ast.SelectionSet, )
validator/rules/overlapping_fields_can_be_merged.go:610
↓ 6 callersMethodmakeToken
(kind Type)
lexer/lexer.go:41
↓ 6 callersMethodparseValueLiteral
(isConst bool)
parser/query.go:247
↓ 6 callersFunctionunexpectedTypeMessage
(addError AddErrFunc, v *ast.Value)
validator/rules/values_of_correct_type.go:251
↓ 6 callersFunctionvalidateDirectives
( schema *Schema, dirs DirectiveList, location DirectiveLocation, currentDirective *DirectiveDefinition,
validator/schema.go:504
↓ 6 callersMethodwriteString
(s string)
formatter/formatter.go:93
↓ 5 callersMethodAddRule
AddRule adds a rule with the specified name and rule function to the rule set. If a rule with the same name already exists, it will not be added.
validator/rules/rules.go:67
↓ 5 callersFunctionDump
Dump turns ast into a stable string format for assertions in tests.
ast/dumper.go:12
↓ 5 callersFunctionErrorf
(message string, args ...any)
gqlerror/error.go:154
↓ 5 callersMethodGetPossibleTypes
GetPossibleTypes will enumerate all the definitions for a given interface or union.
ast/document.go:60
↓ 5 callersMethodOnValue
(f func(walker *Walker, value *ast.Value))
validator/core/walk.go:50
↓ 5 callersMethodOneOf
(types ...string)
ast/definition.go:64
↓ 5 callersMethodValue
(vars map[string]any)
ast/value.go:45
↓ 5 callersMethodacceptByte
acceptByte if it matches any of given bytes, returning true if it found anything.
lexer/lexer.go:315
↓ 5 callersFunctionblockStringValue
blockStringValue produces the value of a block string from its parsed raw value, similar to Coffeescript's block string, Python's docstring trim or Ru
lexer/blockstring.go:12
↓ 5 callersMethodmany
(start, end lexer.Type, cb func())
parser/parser.go:168
↓ 5 callersMethodparseDescription
()
parser/schema.go:114
↓ 5 callersMethodunexpectedToken
(tok lexer.Token)
parser/parser.go:164
↓ 5 callersFunctionvalidateName
(pos *Position, name string)
validator/schema.go:711
↓ 5 callersMethodwalkSelectionSet
(parentDef *ast.Definition, it ast.SelectionSet)
validator/core/walk.go:225
↓ 4 callersMethodAddPossibleType
(name string, def *Definition)
ast/document.go:55
↓ 4 callersMethodFormatSelectionSet
(sets ast.SelectionSet)
formatter/formatter.go:732
↓ 4 callersFunctionNewRules
NewRules creates a Rules instance with the specified rules.
validator/rules/rules.go:16
↓ 4 callersFunctionNonNullListType
(elem *Type, pos *Position)
ast/type.go:11
↓ 4 callersMethodOnDirective
(f func(walker *Walker, directive *ast.Directive))
validator/core/walk.go:42
↓ 4 callersMethodOnInlineFragment
(f func(walker *Walker, inlineFragment *ast.InlineFragment))
validator/core/walk.go:34
↓ 4 callersMethodString
()
lexer/token.go:84
↓ 4 callersFunctionTest
(t *testing.T, filename string, f func(t *testing.T, input string) Spec)
parser/testrunner/runner.go:39
↓ 4 callersFunctionUnmarshalSelectionSet
(b []byte)
ast/decode.go:7
↓ 4 callersFunctionWalk
Walk is an alias for core.Walk.
validator/validator.go:29
↓ 4 callersMethodacceptDigits
acceptDigits from the input, returning the number of digits it found.
lexer/lexer.go:329
↓ 4 callersMethodaddFieldsConflictMessage
(addError AddErrFunc)
validator/rules/overlapping_fields_can_be_merged.go:231
↓ 4 callersFunctioncompareErrors
(errors gqlerror.List)
validator/imported_test.go:300
↓ 4 callersMethoddescribeNext
describeNext peeks at the input and returns a human readable string. This should will alloc and should only be used in errors.
lexer/lexer.go:342
↓ 4 callersMethodfindConflictsWithinSelectionSet
( selectionSet ast.SelectionSet, )
validator/rules/overlapping_fields_can_be_merged.go:255
↓ 4 callersMethodparseFieldsDefinition
()
parser/schema.go:224
↓ 4 callersMethodparseRequiredSelectionSet
()
parser/query.go:133
↓ 4 callersMethodparseTypeReference
()
parser/query.go:350
↓ 4 callersFunctionreadYaml
(filename string, result any)
validator/imported_test.go:310
↓ 3 callersMethodAddImplements
(name string, iface *Definition)
ast/document.go:64
↓ 3 callersMethodFormatType
(t *ast.Type)
formatter/formatter.go:810
next →1–100 of 429, ranked by callers