(comment *CommentGroup)
| 486 | } |
| 487 | |
| 488 | func (p *parser) parseInterfaceTypeExtension(comment *CommentGroup) *Definition { |
| 489 | p.expectKeyword("interface") |
| 490 | |
| 491 | var def Definition |
| 492 | def.Position = p.peekPos() |
| 493 | def.AfterDescriptionComment = comment |
| 494 | def.Kind = Interface |
| 495 | def.Name = p.parseName() |
| 496 | def.Directives = p.parseDirectives(true) |
| 497 | def.Fields, def.EndOfDefinitionComment = p.parseFieldsDefinition() |
| 498 | if len(def.Directives) == 0 && len(def.Fields) == 0 { |
| 499 | p.unexpectedError() |
| 500 | } |
| 501 | return &def |
| 502 | } |
| 503 | |
| 504 | func (p *parser) parseUnionTypeExtension(comment *CommentGroup) *Definition { |
| 505 | p.expectKeyword("union") |
no test coverage detected