Lines Matching refs:toksuper
92 int toksuper; /* superior token node, e.g. parent object or array */ member
187 token->parent = parser->toksuper; in jsmn_parse_primitive()
221 token->parent = parser->toksuper; in jsmn_parse_string()
294 if (parser->toksuper != -1) { in jsmn_parse()
295 jsmntok_t *t = &tokens[parser->toksuper]; in jsmn_parse()
304 token->parent = parser->toksuper; in jsmn_parse()
309 parser->toksuper = parser->toknext - 1; in jsmn_parse()
328 parser->toksuper = token->parent; in jsmn_parse()
332 if (token->type != type || parser->toksuper == -1) { in jsmn_parse()
346 parser->toksuper = -1; in jsmn_parse()
358 parser->toksuper = i; in jsmn_parse()
370 if (parser->toksuper != -1 && tokens != NULL) { in jsmn_parse()
371 tokens[parser->toksuper].size++; in jsmn_parse()
380 parser->toksuper = parser->toknext - 1; in jsmn_parse()
383 if (tokens != NULL && parser->toksuper != -1 && in jsmn_parse()
384 tokens[parser->toksuper].type != JSMN_ARRAY && in jsmn_parse()
385 tokens[parser->toksuper].type != JSMN_OBJECT) { in jsmn_parse()
387 parser->toksuper = tokens[parser->toksuper].parent; in jsmn_parse()
392 parser->toksuper = i; in jsmn_parse()
417 if (tokens != NULL && parser->toksuper != -1) { in jsmn_parse()
418 const jsmntok_t *t = &tokens[parser->toksuper]; in jsmn_parse()
433 if (parser->toksuper != -1 && tokens != NULL) { in jsmn_parse()
434 tokens[parser->toksuper].size++; in jsmn_parse()
465 parser->toksuper = -1; in jsmn_init()