Lines Matching refs:emit
54 static void emit(struct json_lexer *lex, enum json_tokens token) in emit() function
100 emit(lex, JSON_TOK_ERROR); in lexer_string()
140 emit(lex, JSON_TOK_STRING); in lexer_string()
150 emit(lex, JSON_TOK_ERROR); in lexer_string()
172 emit(lex, JSON_TOK_TRUE); in lexer_boolean()
178 emit(lex, JSON_TOK_FALSE); in lexer_boolean()
184 emit(lex, JSON_TOK_ERROR); in lexer_boolean()
191 emit(lex, JSON_TOK_ERROR); in lexer_null()
195 emit(lex, JSON_TOK_NULL); in lexer_null()
209 emit(lex, JSON_TOK_NUMBER); in lexer_number()
222 emit(lex, JSON_TOK_EOF); in lexer_json()
230 emit(lex, (enum json_tokens)chr); in lexer_json()
255 emit(lex, JSON_TOK_ERROR); in lexer_json()