Searched refs:literal_type (Results 1 – 7 of 7) sorted by relevance
65 #define LEXER_IS_IDENT_OR_STRING(literal_type) ((literal_type) <= LEXER_STRING_LITERAL) argument
2341 uint8_t literal_type) /**< final literal type */ in lexer_construct_literal_object() argument2354 bool search_scope_stack = (literal_type == LEXER_IDENT_LITERAL); in lexer_construct_literal_object()2356 if (JERRY_UNLIKELY (literal_type == LEXER_NEW_IDENT_LITERAL)) in lexer_construct_literal_object()2358 literal_type = LEXER_IDENT_LITERAL; in lexer_construct_literal_object()2361 JERRY_ASSERT (literal_type == LEXER_IDENT_LITERAL in lexer_construct_literal_object()2362 || literal_type == LEXER_STRING_LITERAL); in lexer_construct_literal_object()2364 JERRY_ASSERT (literal_type != LEXER_IDENT_LITERAL || length <= PARSER_MAXIMUM_IDENT_LENGTH); in lexer_construct_literal_object()2365 JERRY_ASSERT (literal_type != LEXER_STRING_LITERAL || length <= PARSER_MAXIMUM_STRING_LENGTH); in lexer_construct_literal_object()2371 if (literal_p->type == literal_type in lexer_construct_literal_object()2415 literal_p->type = literal_type; in lexer_construct_literal_object()[all …]
120 JERRY_ASSERT (context_p->last_cbc.literal_type == LEXER_IDENT_LITERAL); in parser_check_invalid_assign()203 && context_p->last_cbc.literal_type == LEXER_IDENT_LITERAL) in parser_emit_unary_lvalue_opcode()1300 context_p->last_cbc.literal_type = LEXER_FUNCTION_LITERAL; in parser_parse_function_expression()1363 context_p->last_cbc.literal_type = context_p->token.lit_location.type; in parser_parse_template_literal()1707 context_p->last_cbc.literal_type = context_p->token.lit_location.type; in parser_parse_unary_expression()1716 context_p->last_cbc.literal_type = context_p->token.lit_location.type; in parser_parse_unary_expression()1798 context_p->last_cbc.literal_type = LEXER_REGEXP_LITERAL; in parser_parse_unary_expression()2029 && context_p->last_cbc.literal_type == LEXER_IDENT_LITERAL) in parser_process_unary_expression()2057 && context_p->last_cbc.literal_type == LEXER_IDENT_LITERAL) in parser_process_unary_expression()2317 && context_p->last_cbc.literal_type == LEXER_IDENT_LITERAL) in parser_process_unary_expression()[all …]
239 uint8_t literal_type; /**< last literal type */ member699 void lexer_expect_identifier (parser_context_t *context_p, uint8_t literal_type);708 uint8_t literal_type);
321 context_p->last_cbc.literal_type = LEXER_UNUSED_LITERAL; in parser_emit_cbc_literal()343 context_p->last_cbc.literal_type = LEXER_UNUSED_LITERAL; in parser_emit_cbc_literal_value()364 context_p->last_cbc.literal_type = context_p->token.lit_location.type; in parser_emit_cbc_literal_from_token()
1257 uint8_t literal_type = SCANNER_LITERAL_IS_ARG; in scanner_append_argument() local1266 literal_type = SCANNER_LITERAL_IS_ARG | SCANNER_LITERAL_EARLY_CREATE; in scanner_append_argument()1274 literal_p->type = literal_type; in scanner_append_argument()
1138 && context_p->last_cbc.literal_type == LEXER_IDENT_LITERAL) in parser_check_left_hand_side_expression()