Home
last modified time | relevance | path

Searched refs:kwd_attrs (Results 1 – 9 of 9) sorted by relevance

/third_party/python/Python/
Dast.c563 … 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()
DPython-ast.c218 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 …]
Dcompile.c5915 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/
Dpycore_ast_state.h204 PyObject *kwd_attrs; member
Dpycore_ast.h590 asdl_identifier_seq *kwd_attrs; member
824 asdl_identifier_seq * kwd_attrs, asdl_pattern_seq
/third_party/python/Parser/
DPython.asdl133 | MatchClass(expr cls, pattern* patterns, identifier* kwd_attrs, pattern* kwd_patterns)
/third_party/python/Lib/test/
Dtest_ast.py1567 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/
Dast.rst1302 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/
Dast.py1638 attrs = node.kwd_attrs