Home
last modified time | relevance | path

Searched refs:AnnAssign (Results 1 – 8 of 8) sorted by relevance

/third_party/python/Python/
Dast.c713 if (stmt->v.AnnAssign.target->kind != Name_kind && in validate_stmt()
714 stmt->v.AnnAssign.simple) { in validate_stmt()
719 ret = validate_expr(state, stmt->v.AnnAssign.target, Store) && in validate_stmt()
720 (!stmt->v.AnnAssign.value || in validate_stmt()
721 validate_expr(state, stmt->v.AnnAssign.value, Load)) && in validate_stmt()
722 validate_expr(state, stmt->v.AnnAssign.annotation, Load); in validate_stmt()
Dsymtable.c1263 if (s->v.AnnAssign.target->kind == Name_kind) { in symtable_visit_stmt()
1264 expr_ty e_name = s->v.AnnAssign.target; in symtable_visit_stmt()
1271 && s->v.AnnAssign.simple) { in symtable_visit_stmt()
1282 if (s->v.AnnAssign.simple && in symtable_visit_stmt()
1288 if (s->v.AnnAssign.value in symtable_visit_stmt()
1295 VISIT(st, expr, s->v.AnnAssign.target); in symtable_visit_stmt()
1297 if (!symtable_visit_annotation(st, s->v.AnnAssign.annotation)) { in symtable_visit_stmt()
1301 if (s->v.AnnAssign.value) { in symtable_visit_stmt()
1302 VISIT(st, expr, s->v.AnnAssign.value); in symtable_visit_stmt()
Dast_opt.c698 CALL(astfold_expr, expr_ty, node_->v.AnnAssign.target); in astfold_stmt()
700 CALL(astfold_expr, expr_ty, node_->v.AnnAssign.annotation); in astfold_stmt()
702 CALL_OPT(astfold_expr, expr_ty, node_->v.AnnAssign.value); in astfold_stmt()
Dcompile.c5418 return check_ann_expr(c, s->v.AnnAssign.annotation); in check_annotation()
5458 expr_ty targ = s->v.AnnAssign.target; in compiler_annassign()
5464 if (s->v.AnnAssign.value) { in compiler_annassign()
5465 VISIT(c, expr, s->v.AnnAssign.value); in compiler_annassign()
5473 if (s->v.AnnAssign.simple && in compiler_annassign()
5477 VISIT(c, annexpr, s->v.AnnAssign.annotation) in compiler_annassign()
5480 VISIT(c, expr, s->v.AnnAssign.annotation); in compiler_annassign()
5491 if (!s->v.AnnAssign.value && in compiler_annassign()
5497 if (!s->v.AnnAssign.value && in compiler_annassign()
5510 if (!s->v.AnnAssign.simple && !check_annotation(c, s)) { in compiler_annassign()
DPython-ast.c2152 p->v.AnnAssign.target = target; in _PyAST_AnnAssign()
2153 p->v.AnnAssign.annotation = annotation; in _PyAST_AnnAssign()
2154 p->v.AnnAssign.value = value; in _PyAST_AnnAssign()
2155 p->v.AnnAssign.simple = simple; in _PyAST_AnnAssign()
3825 value = ast2obj_expr(state, o->v.AnnAssign.target); in ast2obj_stmt()
3830 value = ast2obj_expr(state, o->v.AnnAssign.annotation); in ast2obj_stmt()
3835 value = ast2obj_expr(state, o->v.AnnAssign.value); in ast2obj_stmt()
3840 value = ast2obj_int(state, o->v.AnnAssign.simple); in ast2obj_stmt()
/third_party/python/Parser/
DPython.asdl29 | AnnAssign(expr target, expr annotation, expr? value, int simple)
/third_party/python/Doc/library/
Dast.rst779 .. class:: AnnAssign(target, annotation, value, simple)
793 AnnAssign(
802 AnnAssign(
812 AnnAssign(
824 AnnAssign(
/third_party/python/Include/internal/
Dpycore_ast.h239 } AnnAssign; member