(comment *CommentGroup)
| 535 | } |
| 536 | |
| 537 | func (p *parser) parseInputObjectTypeExtension(comment *CommentGroup) *Definition { |
| 538 | p.expectKeyword("input") |
| 539 | |
| 540 | var def Definition |
| 541 | def.Position = p.peekPos() |
| 542 | def.AfterDescriptionComment = comment |
| 543 | def.Kind = InputObject |
| 544 | def.Name = p.parseName() |
| 545 | def.Directives = p.parseDirectives(false) |
| 546 | def.Fields, def.EndOfDefinitionComment = p.parseInputFieldsDefinition() |
| 547 | if len(def.Directives) == 0 && len(def.Fields) == 0 { |
| 548 | p.unexpectedError() |
| 549 | } |
| 550 | return &def |
| 551 | } |
| 552 | |
| 553 | func (p *parser) parseDirectiveDefinition(description descriptionWithComment) *DirectiveDefinition { |
| 554 | _, comment := p.expectKeyword("directive") |
no test coverage detected