(comment *CommentGroup)
| 469 | } |
| 470 | |
| 471 | func (p *parser) parseObjectTypeExtension(comment *CommentGroup) *Definition { |
| 472 | p.expectKeyword("type") |
| 473 | |
| 474 | var def Definition |
| 475 | def.Position = p.peekPos() |
| 476 | def.AfterDescriptionComment = comment |
| 477 | def.Kind = Object |
| 478 | def.Name = p.parseName() |
| 479 | def.Interfaces = p.parseImplementsInterfaces() |
| 480 | def.Directives = p.parseDirectives(true) |
| 481 | def.Fields, def.EndOfDefinitionComment = p.parseFieldsDefinition() |
| 482 | if len(def.Interfaces) == 0 && len(def.Directives) == 0 && len(def.Fields) == 0 { |
| 483 | p.unexpectedError() |
| 484 | } |
| 485 | return &def |
| 486 | } |
| 487 | |
| 488 | func (p *parser) parseInterfaceTypeExtension(comment *CommentGroup) *Definition { |
| 489 | p.expectKeyword("interface") |
no test coverage detected