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

Method parseObject

parser/query.go:305–314  ·  view source on GitHub ↗
(isConst bool)

Source from the content-addressed store, hash-verified

303}
304
305func (p *parser) parseObject(isConst bool) *Value {
306 var fields ChildValueList
307 pos := p.peekPos()
308 comment := p.comment
309 p.many(lexer.BraceL, lexer.BraceR, func() {
310 fields = append(fields, p.parseObjectField(isConst))
311 })
312
313 return &Value{Children: fields, Kind: ObjectValue, Position: pos, Comment: comment}
314}
315
316func (p *parser) parseObjectField(isConst bool) *ChildValue {
317 field := ChildValue{}

Callers 1

parseValueLiteralMethod · 0.95

Calls 3

peekPosMethod · 0.95
manyMethod · 0.95
parseObjectFieldMethod · 0.95

Tested by

no test coverage detected