Searched refs:MatchAs (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Python/ |
D | ast.c | 615 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()
|
D | symtable.c | 1778 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()
|
D | ast_opt.c | 827 if (node_->v.MatchAs.pattern) { in astfold_pattern() 828 CALL(astfold_pattern, pattern_ty, node_->v.MatchAs.pattern); in astfold_pattern()
|
D | compile.c | 5658 ((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()
|
D | Python-ast.c | 3524 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/ |
D | Python.asdl | 138 | MatchAs(pattern? pattern, identifier? name)
|
/third_party/python/Doc/library/ |
D | ast.rst | 1288 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/ |
D | pycore_ast.h | 601 } MatchAs; member
|
/third_party/python/Lib/test/ |
D | test_ast.py | 1604 ast.MatchAs( 1616 ast.MatchAs(name="_"),
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0b1.rst | 238 ``MatchClass``) rather than reusing expression AST nodes. ``MatchAs`` and
|