(isConst bool)
| 303 | } |
| 304 | |
| 305 | func (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 | |
| 316 | func (p *parser) parseObjectField(isConst bool) *ChildValue { |
| 317 | field := ChildValue{} |
no test coverage detected