Home
last modified time | relevance | path

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

/third_party/python/Python/
Dast.c615 if (p->v.MatchAs.name && !validate_capture(p->v.MatchAs.name)) { in validate_pattern()
619 if (p->v.MatchAs.pattern == NULL) { in validate_pattern()
622 else if (p->v.MatchAs.name == NULL) { in validate_pattern()
628 ret = validate_pattern(state, p->v.MatchAs.pattern, /*star_ok=*/0); in validate_pattern()
Dsymtable.c1778 if (p->v.MatchAs.pattern) { in symtable_visit_pattern()
1779 VISIT(st, pattern, p->v.MatchAs.pattern); in symtable_visit_pattern()
1781 if (p->v.MatchAs.name) { in symtable_visit_pattern()
1782 symtable_add_def(st, p->v.MatchAs.name, DEF_LOCAL, LOCATION(p)); in symtable_visit_pattern()
Dast_opt.c827 if (node_->v.MatchAs.pattern) { in astfold_pattern()
828 CALL(astfold_pattern, pattern_ty, node_->v.MatchAs.pattern); in astfold_pattern()
Dcompile.c5658 ((N)->kind == MatchAs_kind && !(N)->v.MatchAs.name)
5856 if (p->v.MatchAs.pattern == NULL) { in compiler_pattern_as()
5859 if (p->v.MatchAs.name) { in compiler_pattern_as()
5861 return compiler_error(c, e, p->v.MatchAs.name); in compiler_pattern_as()
5866 return pattern_helper_store_name(c, p->v.MatchAs.name, pc); in compiler_pattern_as()
5871 RETURN_IF_FALSE(compiler_pattern(c, p->v.MatchAs.pattern, pc)); in compiler_pattern_as()
5874 RETURN_IF_FALSE(pattern_helper_store_name(c, p->v.MatchAs.name, pc)); in compiler_pattern_as()
DPython-ast.c3524 p->v.MatchAs.pattern = pattern; in _PyAST_MatchAs()
3525 p->v.MatchAs.name = name; in _PyAST_MatchAs()
5246 value = ast2obj_pattern(state, o->v.MatchAs.pattern); in ast2obj_pattern()
5251 value = ast2obj_identifier(state, o->v.MatchAs.name); in ast2obj_pattern()
/third_party/python/Parser/
DPython.asdl138 | MatchAs(pattern? pattern, identifier? name)
/third_party/python/Doc/library/
Dast.rst1288 MatchAs(name='x')]),
1466 MatchAs(),
1467 MatchAs()]),
1542 .. class:: MatchAs(pattern, name)
1568 pattern=MatchAs(
1571 MatchAs(name='x')]),
1577 pattern=MatchAs(),
1608 MatchAs(name='x')]),
1609 MatchAs(name='y')]),
/third_party/python/Include/internal/
Dpycore_ast.h601 } MatchAs; member
/third_party/python/Lib/test/
Dtest_ast.py1604 ast.MatchAs(
1616 ast.MatchAs(name="_"),
/third_party/python/Misc/NEWS.d/
D3.10.0b1.rst238 ``MatchClass``) rather than reusing expression AST nodes. ``MatchAs`` and