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

Function parse_enum_value

ccan/ccan/graphql/graphql.c:211–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211RET parse_enum_value(PARAMS) {
212 INIT(enum_value);
213 obj->val = parse_name(ARGS); REQ
214 struct graphql_token *tok = list_top(used, struct graphql_token, node);
215 if (streq(tok->token_string, "true")
216 || streq(tok->token_string, "false")
217 || streq(tok->token_string, "null")) {
218 *err = "enum value cannot be true, false, or null";
219 ROLLBACK(ARGS);
220 }
221 EXIT;
222}
223
224RET parse_null_value(PARAMS) {
225 INIT(null_value);

Callers 1

parse_valueFunction · 0.85

Calls 1

parse_nameFunction · 0.85

Tested by

no test coverage detected