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

Method parseSelection

parser/query.go:147–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func (p *parser) parseSelection() Selection {
148 if p.peek().Kind == lexer.Spread {
149 return p.parseFragment()
150 }
151 return p.parseField()
152}
153
154func (p *parser) parseField() *Field {
155 var field Field

Callers 2

Calls 3

peekMethod · 0.95
parseFragmentMethod · 0.95
parseFieldMethod · 0.95

Tested by

no test coverage detected