Searched refs:AnnAssign (Results 1 – 7 of 7) sorted by relevance
1173 if (s->v.AnnAssign.target->kind == Name_kind) { in symtable_visit_stmt()1174 expr_ty e_name = s->v.AnnAssign.target; in symtable_visit_stmt()1180 && s->v.AnnAssign.simple) { in symtable_visit_stmt()1189 if (s->v.AnnAssign.simple && in symtable_visit_stmt()1195 if (s->v.AnnAssign.value in symtable_visit_stmt()1202 VISIT(st, expr, s->v.AnnAssign.target); in symtable_visit_stmt()1204 VISIT(st, expr, s->v.AnnAssign.annotation); in symtable_visit_stmt()1205 if (s->v.AnnAssign.value) { in symtable_visit_stmt()1206 VISIT(st, expr, s->v.AnnAssign.value); in symtable_visit_stmt()
715 CALL(astfold_expr, expr_ty, node_->v.AnnAssign.target); in astfold_stmt()716 CALL(astfold_expr, expr_ty, node_->v.AnnAssign.annotation); in astfold_stmt()717 CALL_OPT(astfold_expr, expr_ty, node_->v.AnnAssign.value); in astfold_stmt()
4629 return check_ann_expr(c, s->v.AnnAssign.annotation); in check_annotation()4702 expr_ty targ = s->v.AnnAssign.target; in compiler_annassign()4708 if (s->v.AnnAssign.value) { in compiler_annassign()4709 VISIT(c, expr, s->v.AnnAssign.value); in compiler_annassign()4715 if (s->v.AnnAssign.simple && in compiler_annassign()4719 VISIT(c, annexpr, s->v.AnnAssign.annotation) in compiler_annassign()4722 VISIT(c, expr, s->v.AnnAssign.annotation); in compiler_annassign()4734 if (!s->v.AnnAssign.value && in compiler_annassign()4740 if (!s->v.AnnAssign.value && in compiler_annassign()4753 if (!s->v.AnnAssign.simple && !check_annotation(c, s)) { in compiler_annassign()
402 if (stmt->v.AnnAssign.target->kind != Name_kind && in validate_stmt()403 stmt->v.AnnAssign.simple) { in validate_stmt()408 return validate_expr(stmt->v.AnnAssign.target, Store) && in validate_stmt()409 (!stmt->v.AnnAssign.value || in validate_stmt()410 validate_expr(stmt->v.AnnAssign.value, Load)) && in validate_stmt()411 validate_expr(stmt->v.AnnAssign.annotation, Load); in validate_stmt()3002 return AnnAssign(expr1, expr2, NULL, simple, in ast_for_expr_stmt()3011 return AnnAssign(expr1, expr2, expr3, simple, in ast_for_expr_stmt()
1410 AnnAssign(expr_ty target, expr_ty annotation, expr_ty value, int simple, int in AnnAssign() function1428 p->v.AnnAssign.target = target; in AnnAssign()1429 p->v.AnnAssign.annotation = annotation; in AnnAssign()1430 p->v.AnnAssign.value = value; in AnnAssign()1431 p->v.AnnAssign.simple = simple; in AnnAssign()2774 value = ast2obj_expr(o->v.AnnAssign.target); in ast2obj_stmt()2779 value = ast2obj_expr(o->v.AnnAssign.annotation); in ast2obj_stmt()2784 value = ast2obj_expr(o->v.AnnAssign.value); in ast2obj_stmt()2789 value = ast2obj_int(o->v.AnnAssign.simple); in ast2obj_stmt()4759 *out = AnnAssign(target, annotation, value, simple, lineno, col_offset, in obj2ast_stmt()
32 | AnnAssign(expr target, expr annotation, expr? value, int simple)
125 } AnnAssign; member473 #define AnnAssign(a0, a1, a2, a3, a4, a5, a6) _Py_AnnAssign(a0, a1, a2, a3, a4, a5, a6) macro