src/postgres/src/backend/utils/adt/jsonapi.c
/*
 * lex_accept
 *
 * move the lexer to the next token if the current look_ahead token matches
 * the parameter token. Otherwise, report an error.
 */
lex_accept
move the lexer to the next token if the current look_ahead token matches
the parameter token. Otherwise, report an error.
lex_accept move the lexer to the next token if the current look_ahead token matches the parameter token . Otherwise report an error .
static inline void
lex_expect(JsonParseContext ctx, JsonLexContext *lex, JsonTokenType token)
{
	if (!lex_accept(lex, token, NULL))
		report_parse_error(ctx, lex);
}
static inline void lex_expect ( JsonParseContext ctx , JsonLexContext * lex , JsonTokenType token ) { if ( ! lex_accept ( lex , token , NULL ) ) report_parse_error ( ctx , lex ) ; }
lex_accept
 move the lexer to the next token if the current look_ahead token matches
 the parameter token.
lex_accept move the lexer to the next token if the current look_ahead token matches the parameter token .