MCPcopy Create free account
hub / github.com/ElementsProject/lightning / parse_object_value

Function parse_object_value

ccan/ccan/graphql/graphql.c:263–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263RET parse_object_value(PARAMS) {
264 INIT(object_value);
265 parse_punct(ARGS, '{'); REQ
266 parse_punct(ARGS, '}');
267 struct graphql_object_field *p = NULL;
268 while (*err) {
269 *err = NULL;
270 if (!p) {
271 obj->first = p = parse_object_field(ARGS); MSG("expected: object field or '}'"); REQ
272 } else {
273 p->next = parse_object_field(ARGS); MSG("expected: object field or '}'"); REQ
274 p = p->next;
275 }
276 parse_punct(ARGS, '}');
277 }
278 EXIT;
279}
280
281RET parse_default_value(PARAMS) {
282 INIT(default_value);

Callers 1

parse_valueFunction · 0.85

Calls 2

parse_punctFunction · 0.85
parse_object_fieldFunction · 0.85

Tested by

no test coverage detected