Searched refs:kwd_attrs (Results 1 – 9 of 9) sorted by relevance
/third_party/python/Python/ |
D | ast.c | 563 … if (asdl_seq_LEN(p->v.MatchClass.kwd_attrs) != asdl_seq_LEN(p->v.MatchClass.kwd_patterns)) { in validate_pattern() 591 for (Py_ssize_t i = 0; i < asdl_seq_LEN(p->v.MatchClass.kwd_attrs); i++) { in validate_pattern() 592 PyObject *identifier = asdl_seq_GET(p->v.MatchClass.kwd_attrs, i); in validate_pattern()
|
D | Python-ast.c | 218 Py_CLEAR(state->kwd_attrs); in _PyAST_Fini() 320 if ((state->kwd_attrs = PyUnicode_InternFromString("kwd_attrs")) == NULL) return 0; in init_identifiers() 3473 * kwd_attrs, asdl_pattern_seq * kwd_patterns, int lineno, int in _PyAST_MatchClass() argument 3489 p->v.MatchClass.kwd_attrs = kwd_attrs; in _PyAST_MatchClass() 5219 value = ast2obj_list(state, (asdl_seq*)o->v.MatchClass.kwd_attrs, in ast2obj_pattern() 5222 if (PyObject_SetAttr(result, state->kwd_attrs, value) == -1) in ast2obj_pattern() 11257 asdl_identifier_seq* kwd_attrs; in obj2ast_pattern() local 11314 if (_PyObject_LookupAttr(obj, state->kwd_attrs, &tmp) < 0) { in obj2ast_pattern() 11330 kwd_attrs = _Py_asdl_identifier_seq_new(len, arena); in obj2ast_pattern() 11331 if (kwd_attrs == NULL) goto failed; in obj2ast_pattern() [all …]
|
D | compile.c | 5915 asdl_identifier_seq *kwd_attrs = p->v.MatchClass.kwd_attrs; in compiler_pattern_class() local 5918 Py_ssize_t nattrs = asdl_seq_LEN(kwd_attrs); in compiler_pattern_class() 5931 RETURN_IF_FALSE(!validate_kwd_attrs(c, kwd_attrs, kwd_patterns)); in compiler_pattern_class() 5939 PyObject *name = asdl_seq_GET(kwd_attrs, i); in compiler_pattern_class()
|
/third_party/python/Include/internal/ |
D | pycore_ast_state.h | 204 PyObject *kwd_attrs; member
|
D | pycore_ast.h | 590 asdl_identifier_seq *kwd_attrs; member 824 asdl_identifier_seq * kwd_attrs, asdl_pattern_seq
|
/third_party/python/Parser/ |
D | Python.asdl | 133 | MatchClass(expr cls, pattern* patterns, identifier* kwd_attrs, pattern* kwd_patterns)
|
/third_party/python/Lib/test/ |
D | test_ast.py | 1567 patterns=[], kwd_attrs=[], kwd_patterns=[] 1572 kwd_attrs=['True'], 1578 kwd_attrs=[], 1584 kwd_attrs=[], 1590 kwd_attrs=[], 1596 kwd_attrs=[],
|
/third_party/python/Doc/library/ |
D | ast.rst | 1302 kwd_attrs=[], 1478 .. class:: MatchClass(cls, patterns, kwd_attrs, kwd_patterns) 1482 the class defined sequence of pattern matching attributes. ``kwd_attrs`` is a 1517 kwd_attrs=[], 1526 kwd_attrs=[
|
/third_party/python/Lib/ |
D | ast.py | 1638 attrs = node.kwd_attrs
|