()
| 131 | } |
| 132 | |
| 133 | func (p *parser) parseRequiredSelectionSet() SelectionSet { |
| 134 | if p.peek().Kind != lexer.BraceL { |
| 135 | p.error(p.peek(), "Expected %s, found %s", lexer.BraceL, p.peek().Kind.String()) |
| 136 | return nil |
| 137 | } |
| 138 | |
| 139 | var selections []Selection |
| 140 | p.some(lexer.BraceL, lexer.BraceR, func() { |
| 141 | selections = append(selections, p.parseSelection()) |
| 142 | }) |
| 143 | |
| 144 | return selections |
| 145 | } |
| 146 | |
| 147 | func (p *parser) parseSelection() Selection { |
| 148 | if p.peek().Kind == lexer.Spread { |
no test coverage detected