diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-09-05 13:58:48 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-09-05 19:13:29 +0000 |
commit | 95e4bdcd6263a8106eac25458a48517aaa4456f8 (patch) | |
tree | 70d8a5d29bd9aabb4644a2e72f8761dcf822933c /yarp | |
parent | 6c4df555fd879570cec152f7b378995e782dcd4f (diff) |
[ruby/yarp] Rename CallNode#operator_loc to CallNode#call_operator_loc
https://github.com/ruby/yarp/commit/fbcd307a54
Diffstat (limited to 'yarp')
-rw-r--r-- | yarp/config.yml | 2 | ||||
-rw-r--r-- | yarp/yarp.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/yarp/config.yml b/yarp/config.yml index b9e03b5fba..4c4ac81ac3 100644 --- a/yarp/config.yml +++ b/yarp/config.yml @@ -595,7 +595,7 @@ nodes: fields: - name: receiver type: node? - - name: operator_loc + - name: call_operator_loc type: location? - name: message_loc type: location? diff --git a/yarp/yarp.c b/yarp/yarp.c index a820751b42..2d609c7922 100644 --- a/yarp/yarp.c +++ b/yarp/yarp.c @@ -1250,7 +1250,7 @@ yp_call_node_create(yp_parser_t *parser) { .location = YP_LOCATION_NULL_VALUE(parser), }, .receiver = NULL, - .operator_loc = YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE, + .call_operator_loc = YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE, .message_loc = YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE, .opening_loc = YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE, .arguments = NULL, @@ -1323,7 +1323,7 @@ yp_call_node_call_create(yp_parser_t *parser, yp_node_t *receiver, yp_token_t *o } node->receiver = receiver; - node->operator_loc = YP_OPTIONAL_LOCATION_TOKEN_VALUE(operator); + node->call_operator_loc = YP_OPTIONAL_LOCATION_TOKEN_VALUE(operator); node->message_loc = YP_OPTIONAL_LOCATION_TOKEN_VALUE(message); node->opening_loc = arguments->opening_loc; node->arguments = arguments->arguments; @@ -1400,7 +1400,7 @@ yp_call_node_shorthand_create(yp_parser_t *parser, yp_node_t *receiver, yp_token } node->receiver = receiver; - node->operator_loc = YP_OPTIONAL_LOCATION_TOKEN_VALUE(operator); + node->call_operator_loc = YP_OPTIONAL_LOCATION_TOKEN_VALUE(operator); node->opening_loc = arguments->opening_loc; node->arguments = arguments->arguments; node->closing_loc = arguments->closing_loc; @@ -8073,7 +8073,7 @@ parse_target(yp_parser_t *parser, yp_node_t *target) { // an aref expression, and we can transform it into an aset // expression. if ( - (call->operator_loc.start == NULL) && + (call->call_operator_loc.start == NULL) && (call->message_loc.start[0] == '[') && (call->message_loc.end[-1] == ']') && (call->block == NULL) @@ -8229,7 +8229,7 @@ parse_write(yp_parser_t *parser, yp_node_t *target, yp_token_t *operator, yp_nod // an aref expression, and we can transform it into an aset // expression. if ( - (call->operator_loc.start == NULL) && + (call->call_operator_loc.start == NULL) && (call->message_loc.start[0] == '[') && (call->message_loc.end[-1] == ']') && (call->block == NULL) |