Searched refs:MatchMapping (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Python/ |
D | ast.c | 529 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()
|
D | symtable.c | 1766 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()
|
D | ast_opt.c | 816 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()
|
D | Python-ast.c | 3461 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()
|
D | compile.c | 5977 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/ |
D | Python.asdl | 132 | MatchMapping(expr* keys, pattern* patterns, identifier? rest) 136 -- The optional "rest" MatchMapping parameter handles capturing extra mapping keys
|
/third_party/python/Lib/test/ |
D | test_ast.py | 1547 ast.MatchMapping( 1551 ast.MatchMapping( 1556 ast.MatchMapping( 1619 ast.MatchMapping([], [], rest="_"),
|
/third_party/python/Include/internal/ |
D | pycore_ast.h | 585 } MatchMapping; member
|
/third_party/python/Doc/library/ |
D | ast.rst | 1432 .. class:: MatchMapping(keys, patterns, rest) 1461 pattern=MatchMapping( 1472 pattern=MatchMapping(keys=[], patterns=[], rest='rest'),
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0b1.rst | 237 ``MatchSingleton``, ``MatchSequence``, ``MatchStar``, ``MatchMapping``,
|