Home
last modified time | relevance | path

Searched refs:lit_location (Results 1 - 11 of 11) sorted by relevance

/third_party/jerryscript/jerry-core/parser/js/
H A Djs-parser-tagged-template-literal.c44 lexer_lit_location_t *lit_loc_p = &context_p->token.lit_location; in parser_tagged_template_literal_append_strings()
62 &context_p->token.lit_location, in parser_tagged_template_literal_append_strings()
72 context_p->source_p = context_p->token.lit_location.char_p - 1; in parser_tagged_template_literal_append_strings()
75 &context_p->token.lit_location, in parser_tagged_template_literal_append_strings()
H A Djs-parser-module.c369 || context_p->token.lit_location.type != LEXER_IDENT_LITERAL in parser_module_parse_export_clause()
378 lexer_construct_literal_object (context_p, &context_p->token.lit_location, LEXER_NEW_IDENT_LITERAL); in parser_module_parse_export_clause()
389 || context_p->token.lit_location.type != LEXER_IDENT_LITERAL) in parser_module_parse_export_clause()
394 lexer_construct_literal_object (context_p, &context_p->token.lit_location, LEXER_NEW_IDENT_LITERAL); in parser_module_parse_export_clause()
461 || context_p->token.lit_location.type != LEXER_IDENT_LITERAL) in parser_module_parse_import_clause()
477 lexer_construct_literal_object (context_p, &context_p->token.lit_location, LEXER_NEW_IDENT_LITERAL); in parser_module_parse_import_clause()
488 || context_p->token.lit_location.type != LEXER_IDENT_LITERAL) in parser_module_parse_import_clause()
501 lexer_construct_literal_object (context_p, &context_p->token.lit_location, LEXER_NEW_IDENT_LITERAL); in parser_module_parse_import_clause()
573 || context_p->token.lit_location.type != LEXER_STRING_LITERAL in parser_module_handle_module_specifier()
574 || context_p->token.lit_location in parser_module_handle_module_specifier()
[all...]
H A Djs-lexer.c774 context_p->token.lit_location.type = LEXER_IDENT_LITERAL; in lexer_parse_identifier()
775 context_p->token.lit_location.has_escape = has_escape; in lexer_parse_identifier()
778 context_p->token.lit_location.char_p = context_p->source_p; in lexer_parse_identifier()
779 context_p->token.lit_location.length = (prop_length_t) length; in lexer_parse_identifier()
793 if (JERRY_UNLIKELY (context_p->token.lit_location.has_escape)) in lexer_parse_identifier()
1229 context_p->token.lit_location.char_p = string_start_p; in lexer_parse_string()
1230 context_p->token.lit_location.length = (prop_length_t) length; in lexer_parse_string()
1231 context_p->token.lit_location.type = LEXER_STRING_LITERAL; in lexer_parse_string()
1232 context_p->token.lit_location.has_escape = has_escape; in lexer_parse_string()
1275 context_p->token.lit_location in lexer_parse_number()
[all...]
H A Djs-parser-expr.c563 && LEXER_IS_IDENT_OR_STRING (context_p->token.lit_location.type) in parser_parse_class_literal()
671 else if (LEXER_IS_IDENT_OR_STRING (context_p->token.lit_location.type)) in parser_parse_class_literal()
740 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL); in parser_parse_class()
749 lexer_construct_literal_object (context_p, &context_p->token.lit_location, LEXER_STRING_LITERAL); in parser_parse_class()
764 if (context_p->token.type == LEXER_LITERAL && context_p->token.lit_location.type == LEXER_IDENT_LITERAL) in parser_parse_class()
767 lexer_construct_literal_object (context_p, &context_p->token.lit_location, LEXER_STRING_LITERAL); in parser_parse_class()
870 /* context_p->token.lit_location.char_p is showing the character after the string start, in parser_reparse_as_common_identifier()
873 if (context_p->token.lit_location.type != LEXER_IDENT_LITERAL) in parser_reparse_as_common_identifier()
878 context_p->source_p = context_p->token.lit_location.char_p; in parser_reparse_as_common_identifier()
889 JERRY_ASSERT (context_p->token.lit_location in parser_reparse_as_common_identifier()
[all...]
H A Djs-scanner.c122 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL) in scanner_scan_primary_expression()
175 if (context_p->token.lit_location.type == LEXER_IDENT_LITERAL in scanner_scan_primary_expression()
189 if (context_p->token.lit_location.type == LEXER_IDENT_LITERAL) in scanner_scan_primary_expression()
209 if (context_p->token.type != LEXER_LITERAL || context_p->token.lit_location.type != LEXER_IDENT_LITERAL) in scanner_scan_primary_expression()
307 || context_p->token.lit_location.type != LEXER_IDENT_LITERAL) in scanner_scan_post_primary_expression()
1241 && (type != LEXER_LITERAL || context_p->token.lit_location.type != LEXER_IDENT_LITERAL)) in scanner_scan_statement()
1326 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL) in scanner_scan_statement()
1394 || context_p->token.lit_location.type != LEXER_IDENT_LITERAL) in scanner_scan_statement()
1431 if (context_p->token.type != LEXER_LITERAL || context_p->token.lit_location.type != LEXER_IDENT_LITERAL) in scanner_scan_statement()
1466 && context_p->token.lit_location in scanner_scan_statement()
[all...]
H A Djs-scanner-ops.c186 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL) in scanner_check_arrow_arg()
267 lexer_lit_location_t async_literal = context_p->token.lit_location; in scanner_check_async_function()
279 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL) in scanner_check_async_function()
380 if (context_p->token.lit_location.type != LEXER_IDENT_LITERAL) in scanner_scan_bracket()
547 && context_p->token.lit_location.type == LEXER_STRING_LITERAL) in scanner_check_directives()
H A Djs-parser-statm.c518 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL); in parser_parse_var_statement()
698 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL); in parser_parse_function_statement()
1347 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL); in parser_parse_for_statement_start()
1973 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL); in parser_parse_try_statement_end()
2131 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL) in parser_parse_break_statement()
2217 && context_p->token.lit_location.type == LEXER_IDENT_LITERAL) in parser_parse_continue_statement()
2328 || context_p->token.lit_location.type != LEXER_STRING_LITERAL) in parser_parse_import_statement()
2332 || (context_p->token.type == LEXER_LITERAL && context_p->token.lit_location.type == LEXER_IDENT_LITERAL))) in parser_parse_import_statement()
2340 lexer_construct_literal_object (context_p, &context_p->token.lit_location, LEXER_IDENT_LITERAL); in parser_parse_import_statement()
2389 lexer_construct_literal_object (context_p, &context_p->token.lit_location, LEXER_IDENT_LITERA in parser_parse_import_statement()
2641 lexer_lit_location_t lit_location; parser_parse_statements() local
[all...]
H A Djs-lexer.h303 lexer_lit_location_t lit_location; /**< extra data for character literals */ member
H A Djs-scanner-util.c1180 &context_p->token.lit_location); in scanner_add_literal()
1195 &context_p->token.lit_location); in scanner_add_reference()
1220 lexer_lit_location_t *literal_location_p = &context_p->token.lit_location; in scanner_append_argument()
1226 if (JERRY_LIKELY (!context_p->token.lit_location.has_escape)) in scanner_append_argument()
1273 *literal_p = context_p->token.lit_location; in scanner_append_argument()
1381 if (JERRY_LIKELY (!context_p->token.lit_location.has_escape)) in scanner_detect_invalid_var()
H A Djs-parser-util.c364 context_p->last_cbc.literal_type = context_p->token.lit_location.type; in parser_emit_cbc_literal_from_token()
H A Djs-parser.c1833 || context_p->token.lit_location.type != LEXER_IDENT_LITERAL) in parser_parse_function_arguments()
1839 &context_p->token.lit_location, in parser_parse_function_arguments()

Completed in 16 milliseconds