Home
last modified time | relevance | path

Searched refs:keyword_type (Results 1 – 13 of 13) sorted by relevance

/third_party/jerryscript/jerry-core/parser/js/
Djs-lexer.c773 context_p->token.keyword_type = LEXER_EOS; in lexer_parse_identifier()
816 context_p->token.keyword_type = (uint8_t) keyword_p->type; in lexer_parse_identifier()
1273 context_p->token.keyword_type = LEXER_EOS; in lexer_parse_number()
2017 && context_p->token.keyword_type == LEXER_KEYW_YIELD) in lexer_update_await_yield()
2026 JERRY_ASSERT (context_p->token.keyword_type == LEXER_KEYW_YIELD); in lexer_update_await_yield()
2037 && context_p->token.keyword_type == LEXER_KEYW_AWAIT) in lexer_update_await_yield()
2046 JERRY_ASSERT (context_p->token.keyword_type == LEXER_KEYW_AWAIT); in lexer_update_await_yield()
2877 context_p->token.keyword_type = LEXER_EOS; in lexer_construct_regexp_object()
2918 if (context_p->token.keyword_type == LEXER_KEYW_EVAL) in lexer_expect_identifier()
2922 else if (context_p->token.keyword_type == LEXER_KEYW_ARGUMENTS) in lexer_expect_identifier()
[all …]
Djs-lexer.h298 uint8_t keyword_type; /**< keyword type for identifiers */ member
Djs-parser-expr.c1243 if (context_p->token.keyword_type >= LEXER_FIRST_NON_STRICT_ARGUMENTS) in parser_parse_function_expression()
1364 context_p->last_cbc.literal_keyword_type = context_p->token.keyword_type; in parser_parse_template_literal()
1701 if (context_p->token.keyword_type != LEXER_KEYW_EVAL) in parser_parse_unary_expression()
1708 context_p->last_cbc.literal_keyword_type = context_p->token.keyword_type; in parser_parse_unary_expression()
1717 context_p->last_cbc.literal_keyword_type = context_p->token.keyword_type; in parser_parse_unary_expression()
2938 && context_p->token.keyword_type == LEXER_KEYW_LET) in parser_pattern_process_assignment()
Djs-scanner-ops.c407 if (context_p->token.keyword_type == LEXER_KEYW_EVAL in scanner_scan_bracket()
Djs-parser-module.c370 || context_p->token.keyword_type >= LEXER_FIRST_FUTURE_STRICT_RESERVED_WORD) in parser_module_parse_export_clause()
Djs-parser-util.c365 context_p->last_cbc.literal_keyword_type = context_p->token.keyword_type; in parser_emit_cbc_literal_from_token()
Djs-parser-statm.c530 && context_p->token.keyword_type == LEXER_KEYW_LET) in parser_parse_var_statement()
715 if (context_p->token.keyword_type >= LEXER_FIRST_NON_STRICT_ARGUMENTS) in parser_parse_function_statement()
Djs-scanner-util.c1286 if (context_p->token.keyword_type == LEXER_KEYW_EVAL in scanner_detect_eval_call()
Djs-parser.c1842 if (context_p->token.keyword_type >= LEXER_FIRST_NON_STRICT_ARGUMENTS) in parser_parse_function_arguments()
/third_party/python/Tools/peg_generator/pegen/
Dc_generator.py121 self.keyword_cache[keyword] = self.gen.keyword_type()
458 for keyword_str, keyword_type in self.callmakervisitor.keyword_cache.items():
461 groups[length].append((keyword_str, keyword_type))
463 groups[length] = [(keyword_str, keyword_type)]
482 for keyword_str, keyword_type in groups[keywords_length]:
Dparser_generator.py110 def keyword_type(self) -> int: member in ParserGenerator
/third_party/python/Include/internal/
Dpycore_ast_state.h199 PyObject *keyword_type; member
/third_party/python/Python/
DPython-ast.c213 Py_CLEAR(state->keyword_type); in _PyAST_Fini()
1732 state->keyword_type = make_type(state, "keyword", state->AST_type, in init_types()
1735 if (!state->keyword_type) return 0; in init_types()
1736 if (!add_attributes(state, state->keyword_type, keyword_attributes, 4)) in init_types()
1738 if (PyObject_SetAttr(state->keyword_type, state->arg, Py_None) == -1) in init_types()
1740 if (PyObject_SetAttr(state->keyword_type, state->end_lineno, Py_None) == -1) in init_types()
1742 if (PyObject_SetAttr(state->keyword_type, state->end_col_offset, Py_None) in init_types()
4989 tp = (PyTypeObject *)state->keyword_type; in ast2obj_keyword()
11930 if (PyModule_AddObjectRef(m, "keyword", state->keyword_type) < 0) { in astmodule_exec()