Searched refs:kwd_patterns (Results 1 – 11 of 11) sorted by relevance
/third_party/python/Include/internal/ |
D | pycore_ast_state.h | 205 PyObject *kwd_patterns; member
|
D | pycore_ast.h | 591 asdl_pattern_seq *kwd_patterns; member 825 * kwd_patterns, int lineno, int col_offset, int
|
/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=[] 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/ |
D | ast.c | 563 … 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()
|
D | Python-ast.c | 219 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 …]
|
D | ast_opt.c | 822 CALL_SEQ(astfold_pattern, pattern, node_->v.MatchClass.kwd_patterns); in astfold_pattern()
|
D | compile.c | 5916 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()
|
D | symtable.c | 1775 VISIT_SEQ(st, pattern, p->v.MatchClass.kwd_patterns); in symtable_visit_pattern()
|
/third_party/python/Doc/library/ |
D | ast.rst | 1303 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/ |
D | ast.py | 1650 zip(attrs, node.kwd_patterns, strict=True),
|