@@ -3517,7 +3517,7 @@ yp_rescue_node_create(yp_parser_t *parser, const yp_token_t *keyword) {
3517
3517
},
3518
3518
.keyword_loc = YP_LOCATION_TOKEN_VALUE(keyword),
3519
3519
.operator_loc = YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE,
3520
- .exception = NULL,
3520
+ .reference = NULL,
3521
3521
.statements = NULL,
3522
3522
.consequent = NULL,
3523
3523
.exceptions = YP_EMPTY_NODE_LIST
@@ -3531,11 +3531,11 @@ yp_rescue_node_operator_set(yp_rescue_node_t *node, const yp_token_t *operator)
3531
3531
node->operator_loc = YP_OPTIONAL_LOCATION_TOKEN_VALUE(operator);
3532
3532
}
3533
3533
3534
- // Set the exception of a rescue node, and update the location of the node.
3534
+ // Set the reference of a rescue node, and update the location of the node.
3535
3535
static void
3536
- yp_rescue_node_exception_set (yp_rescue_node_t *node, yp_node_t *exception ) {
3537
- node->exception = exception ;
3538
- node->base.location.end = exception ->location.end;
3536
+ yp_rescue_node_reference_set (yp_rescue_node_t *node, yp_node_t *reference ) {
3537
+ node->reference = reference ;
3538
+ node->base.location.end = reference ->location.end;
3539
3539
}
3540
3540
3541
3541
// Set the statements of a rescue node, and update the location of the node.
@@ -8610,11 +8610,11 @@ parse_rescues(yp_parser_t *parser, yp_begin_node_t *parent_node) {
8610
8610
parser_lex(parser);
8611
8611
yp_rescue_node_operator_set(rescue, &parser->previous);
8612
8612
8613
- yp_node_t *node = parse_expression(parser, YP_BINDING_POWER_INDEX, "Expected an exception variable after `=>` in rescue statement.");
8613
+ yp_node_t *reference = parse_expression(parser, YP_BINDING_POWER_INDEX, "Expected an exception variable after `=>` in rescue statement.");
8614
8614
yp_token_t operator = not_provided(parser);
8615
- node = parse_target(parser, node , &operator, NULL);
8615
+ reference = parse_target(parser, reference , &operator, NULL);
8616
8616
8617
- rescue->exception = node ;
8617
+ yp_rescue_node_reference_set( rescue, reference) ;
8618
8618
break;
8619
8619
}
8620
8620
case YP_TOKEN_NEWLINE:
@@ -8641,11 +8641,11 @@ parse_rescues(yp_parser_t *parser, yp_begin_node_t *parent_node) {
8641
8641
if (accept(parser, YP_TOKEN_EQUAL_GREATER)) {
8642
8642
yp_rescue_node_operator_set(rescue, &parser->previous);
8643
8643
8644
- yp_node_t *node = parse_expression(parser, YP_BINDING_POWER_INDEX, "Expected an exception variable after `=>` in rescue statement.");
8644
+ yp_node_t *reference = parse_expression(parser, YP_BINDING_POWER_INDEX, "Expected an exception variable after `=>` in rescue statement.");
8645
8645
yp_token_t operator = not_provided(parser);
8646
- node = parse_target(parser, node , &operator, NULL);
8646
+ reference = parse_target(parser, reference , &operator, NULL);
8647
8647
8648
- yp_rescue_node_exception_set (rescue, node );
8648
+ yp_rescue_node_reference_set (rescue, reference );
8649
8649
break;
8650
8650
}
8651
8651
} while (accept(parser, YP_TOKEN_COMMA));
0 commit comments