Searched refs:keyword_type (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython3/Tools/peg_generator/pegen/ |
D | c_generator.py | 112 self.keyword_cache[keyword] = self.gen.keyword_type() 423 for keyword_str, keyword_type in self.callmakervisitor.keyword_cache.items(): 426 groups[length].append((keyword_str, keyword_type)) 428 groups[length] = [(keyword_str, keyword_type)] 447 for keyword_str, keyword_type in groups[keywords_length]:
|
D | parser_generator.py | 110 def keyword_type(self) -> int: member in ParserGenerator
|
/external/python/cpython3/Python/ |
D | Python-ast.c | 182 PyObject *keyword_type; member 427 Py_CLEAR(state->keyword_type); in _PyAST_Fini() 1839 state->keyword_type = make_type(state, "keyword", state->AST_type, in init_types() 1842 if (!state->keyword_type) return 0; in init_types() 1843 if (!add_attributes(state, state->keyword_type, keyword_attributes, 4)) in init_types() 1845 if (PyObject_SetAttr(state->keyword_type, state->arg, Py_None) == -1) in init_types() 1847 if (PyObject_SetAttr(state->keyword_type, state->end_lineno, Py_None) == -1) in init_types() 1849 if (PyObject_SetAttr(state->keyword_type, state->end_col_offset, Py_None) in init_types() 4752 tp = (PyTypeObject *)state->keyword_type; in ast2obj_keyword() 10059 if (PyModule_AddObject(m, "keyword", state->keyword_type) < 0) { in astmodule_exec() [all …]
|
/external/python/cpython2/Python/ |
D | Python-ast.c | 373 static PyTypeObject *keyword_type; variable 961 keyword_type = make_type("keyword", &AST_type, keyword_fields, 2); in init_types() 962 if (!keyword_type) return 0; in init_types() 3270 result = PyType_GenericNew(keyword_type, NULL, NULL); in ast2obj_keyword() 6916 if (PyDict_SetItemString(d, "keyword", (PyObject*)keyword_type) < 0) in init_ast()
|
/external/python/cpython3/Tools/c-analyzer/ |
D | known.tsv | 404 Python/Python-ast.c - keyword_type variable static PyTypeObject *keyword_type
|