File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ compound_stmt[stmt_ty]:
82
82
| &'while' while_stmt
83
83
84
84
# NOTE: annotated_rhs may start with 'yield'; yield_expr must start with 'yield'
85
- assignment:
85
+ assignment[stmt_ty] :
86
86
| a=NAME ':' b=expression c=['=' d=annotated_rhs { d }] {
87
87
CHECK_VERSION(
88
88
6,
Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ static asdl_seq* statement_newline_rule(Parser *p);
378
378
static asdl_seq * simple_stmt_rule (Parser * p );
379
379
static stmt_ty small_stmt_rule (Parser * p );
380
380
static stmt_ty compound_stmt_rule (Parser * p );
381
- static void * assignment_rule (Parser * p );
381
+ static stmt_ty assignment_rule (Parser * p );
382
382
static AugOperator * augassign_rule (Parser * p );
383
383
static stmt_ty global_stmt_rule (Parser * p );
384
384
static stmt_ty nonlocal_stmt_rule (Parser * p );
@@ -1256,7 +1256,7 @@ small_stmt_rule(Parser *p)
1256
1256
int start_col_offset = p -> tokens [mark ]-> col_offset ;
1257
1257
UNUSED (start_col_offset ); // Only used by EXTRA macro
1258
1258
{ // assignment
1259
- void * assignment_var ;
1259
+ stmt_ty assignment_var ;
1260
1260
if (
1261
1261
(assignment_var = assignment_rule (p ))
1262
1262
)
@@ -1586,13 +1586,13 @@ compound_stmt_rule(Parser *p)
1586
1586
// | ((star_targets '='))+ (yield_expr | star_expressions) TYPE_COMMENT?
1587
1587
// | target augassign (yield_expr | star_expressions)
1588
1588
// | invalid_assignment
1589
- static void *
1589
+ static stmt_ty
1590
1590
assignment_rule (Parser * p )
1591
1591
{
1592
1592
if (p -> error_indicator ) {
1593
1593
return NULL ;
1594
1594
}
1595
- void * res = NULL ;
1595
+ stmt_ty res = NULL ;
1596
1596
int mark = p -> mark ;
1597
1597
if (p -> mark == p -> fill && _PyPegen_fill_token (p ) < 0 ) {
1598
1598
p -> error_indicator = 1 ;
You can’t perform that action at this time.
0 commit comments