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

Method parseInputObjectTypeDefinition

parser/schema.go:394–407  ·  view source on GitHub ↗
(description descriptionWithComment)

Source from the content-addressed store, hash-verified

392}
393
394func (p *parser) parseInputObjectTypeDefinition(description descriptionWithComment) *Definition {
395 _, comment := p.expectKeyword("input")
396
397 var def Definition
398 def.Position = p.peekPos()
399 def.Kind = InputObject
400 def.BeforeDescriptionComment = description.comment
401 def.Description = description.text
402 def.AfterDescriptionComment = comment
403 def.Name = p.parseName()
404 def.Directives = p.parseDirectives(true)
405 def.Fields, def.EndOfDefinitionComment = p.parseInputFieldsDefinition()
406 return &def
407}
408
409func (p *parser) parseInputFieldsDefinition() (FieldList, *CommentGroup) {
410 var values FieldList

Callers 1

Calls 5

expectKeywordMethod · 0.95
peekPosMethod · 0.95
parseNameMethod · 0.95
parseDirectivesMethod · 0.95

Tested by

no test coverage detected