Home
last modified time | relevance | path

Searched refs:MatchMapping (Results 1 – 10 of 10) sorted by relevance

/third_party/python/Python/
Dast.c529 if (asdl_seq_LEN(p->v.MatchMapping.keys) != asdl_seq_LEN(p->v.MatchMapping.patterns)) { in validate_pattern()
536 if (p->v.MatchMapping.rest && !validate_capture(p->v.MatchMapping.rest)) { in validate_pattern()
541 asdl_expr_seq *keys = p->v.MatchMapping.keys; in validate_pattern()
560 ret = validate_patterns(state, p->v.MatchMapping.patterns, /*star_ok=*/0); in validate_pattern()
Dsymtable.c1766 VISIT_SEQ(st, expr, p->v.MatchMapping.keys); in symtable_visit_pattern()
1767 VISIT_SEQ(st, pattern, p->v.MatchMapping.patterns); in symtable_visit_pattern()
1768 if (p->v.MatchMapping.rest) { in symtable_visit_pattern()
1769 symtable_add_def(st, p->v.MatchMapping.rest, DEF_LOCAL, LOCATION(p)); in symtable_visit_pattern()
Dast_opt.c816 CALL_SEQ(astfold_expr, expr, node_->v.MatchMapping.keys); in astfold_pattern()
817 CALL_SEQ(astfold_pattern, pattern, node_->v.MatchMapping.patterns); in astfold_pattern()
DPython-ast.c3461 p->v.MatchMapping.keys = keys; in _PyAST_MatchMapping()
3462 p->v.MatchMapping.patterns = patterns; in _PyAST_MatchMapping()
3463 p->v.MatchMapping.rest = rest; in _PyAST_MatchMapping()
5186 value = ast2obj_list(state, (asdl_seq*)o->v.MatchMapping.keys, in ast2obj_pattern()
5192 value = ast2obj_list(state, (asdl_seq*)o->v.MatchMapping.patterns, in ast2obj_pattern()
5198 value = ast2obj_identifier(state, o->v.MatchMapping.rest); in ast2obj_pattern()
Dcompile.c5977 asdl_expr_seq *keys = p->v.MatchMapping.keys; in compiler_pattern_mapping()
5978 asdl_pattern_seq *patterns = p->v.MatchMapping.patterns; in compiler_pattern_mapping()
5988 PyObject *star_target = p->v.MatchMapping.rest; in compiler_pattern_mapping()
/third_party/python/Parser/
DPython.asdl132 | MatchMapping(expr* keys, pattern* patterns, identifier? rest)
136 -- The optional "rest" MatchMapping parameter handles capturing extra mapping keys
/third_party/python/Lib/test/
Dtest_ast.py1547 ast.MatchMapping(
1551 ast.MatchMapping(
1556 ast.MatchMapping(
1619 ast.MatchMapping([], [], rest="_"),
/third_party/python/Include/internal/
Dpycore_ast.h585 } MatchMapping; member
/third_party/python/Doc/library/
Dast.rst1432 .. class:: MatchMapping(keys, patterns, rest)
1461 pattern=MatchMapping(
1472 pattern=MatchMapping(keys=[], patterns=[], rest='rest'),
/third_party/python/Misc/NEWS.d/
D3.10.0b1.rst237 ``MatchSingleton``, ``MatchSequence``, ``MatchStar``, ``MatchMapping``,