Home
last modified time | relevance | path

Searched refs:kwd_patterns (Results 1 – 11 of 11) sorted by relevance

/third_party/python/Include/internal/
Dpycore_ast_state.h205 PyObject *kwd_patterns; member
Dpycore_ast.h591 asdl_pattern_seq *kwd_patterns; member
825 * kwd_patterns, int lineno, int col_offset, int
/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=[]
1573 kwd_patterns=[pattern_1]
1579 kwd_patterns=[pattern_1]
1585 kwd_patterns=[]
1591 kwd_patterns=[]
1597 kwd_patterns=[ast.MatchStar()]
/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()
604 ret = validate_patterns(state, p->v.MatchClass.kwd_patterns, /*star_ok=*/0); in validate_pattern()
DPython-ast.c219 Py_CLEAR(state->kwd_patterns); in _PyAST_Fini()
321 if ((state->kwd_patterns = PyUnicode_InternFromString("kwd_patterns")) == NULL) return 0; in init_identifiers()
3473 * kwd_attrs, asdl_pattern_seq * kwd_patterns, int lineno, int in _PyAST_MatchClass() argument
3490 p->v.MatchClass.kwd_patterns = kwd_patterns; in _PyAST_MatchClass()
5225 value = ast2obj_list(state, (asdl_seq*)o->v.MatchClass.kwd_patterns, in ast2obj_pattern()
5228 if (PyObject_SetAttr(result, state->kwd_patterns, value) == -1) in ast2obj_pattern()
11258 asdl_pattern_seq* kwd_patterns; in obj2ast_pattern() local
11351 if (_PyObject_LookupAttr(obj, state->kwd_patterns, &tmp) < 0) { in obj2ast_pattern()
11367 kwd_patterns = _Py_asdl_pattern_seq_new(len, arena); in obj2ast_pattern()
11368 if (kwd_patterns == NULL) goto failed; in obj2ast_pattern()
[all …]
Dast_opt.c822 CALL_SEQ(astfold_pattern, pattern, node_->v.MatchClass.kwd_patterns); in astfold_pattern()
Dcompile.c5916 asdl_pattern_seq *kwd_patterns = p->v.MatchClass.kwd_patterns; in compiler_pattern_class() local
5919 Py_ssize_t nkwd_patterns = asdl_seq_LEN(kwd_patterns); in compiler_pattern_class()
5931 RETURN_IF_FALSE(!validate_kwd_attrs(c, kwd_attrs, kwd_patterns)); in compiler_pattern_class()
5956 pattern = asdl_seq_GET(kwd_patterns, i - nargs); in compiler_pattern_class()
Dsymtable.c1775 VISIT_SEQ(st, pattern, p->v.MatchClass.kwd_patterns); in symtable_visit_pattern()
/third_party/python/Doc/library/
Dast.rst1303 kwd_patterns=[]),
1478 .. class:: MatchClass(cls, patterns, kwd_attrs, kwd_patterns)
1484 in the class pattern), ``kwd_patterns`` are the corresponding patterns
1518 kwd_patterns=[]),
1530 kwd_patterns=[
/third_party/python/Lib/
Dast.py1650 zip(attrs, node.kwd_patterns, strict=True),