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

Method parseFragmentName

parser/query.go:238–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236}
237
238func (p *parser) parseFragmentName() string {
239 if p.peek().Value == "on" {
240 p.unexpectedError()
241 return ""
242 }
243
244 return p.parseName()
245}
246
247func (p *parser) parseValueLiteral(isConst bool) *Value {
248 token := p.peek()

Callers 2

parseFragmentMethod · 0.95

Calls 3

peekMethod · 0.95
unexpectedErrorMethod · 0.95
parseNameMethod · 0.95

Tested by

no test coverage detected