From 86cc82a1ab339914ed7ebe787cb76f954a19120d Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Wed, 9 Aug 2023 10:17:25 -0400 Subject: [PATCH] [ruby/yarp] Improved comments, moved flags after type https://github.com/ruby/yarp/commit/4815d77e82 --- yarp/yarp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yarp/yarp.c b/yarp/yarp.c index 71b7e2f895..6f3d875860 100644 --- a/yarp/yarp.c +++ b/yarp/yarp.c @@ -2289,8 +2289,8 @@ yp_if_node_create(yp_parser_t *parser, *node = (yp_if_node_t) { { - .flags = YP_NODE_FLAG_NEWLINE, .type = YP_NODE_IF_NODE, + .flags = YP_NODE_FLAG_NEWLINE, .location = { .start = if_keyword->start, .end = end @@ -2316,8 +2316,8 @@ yp_if_node_modifier_create(yp_parser_t *parser, yp_node_t *statement, const yp_t *node = (yp_if_node_t) { { - .flags = YP_NODE_FLAG_NEWLINE, .type = YP_NODE_IF_NODE, + .flags = YP_NODE_FLAG_NEWLINE, .location = { .start = statement->location.start, .end = predicate->location.end @@ -2349,8 +2349,8 @@ yp_if_node_ternary_create(yp_parser_t *parser, yp_node_t *predicate, yp_node_t * *node = (yp_if_node_t) { { - .flags = YP_NODE_FLAG_NEWLINE, .type = YP_NODE_IF_NODE, + .flags = YP_NODE_FLAG_NEWLINE, .location = { .start = predicate->location.start, .end = false_expression->location.end, @@ -3985,8 +3985,8 @@ yp_unless_node_create(yp_parser_t *parser, const yp_token_t *keyword, yp_node_t *node = (yp_unless_node_t) { { - .flags = YP_NODE_FLAG_NEWLINE, .type = YP_NODE_UNLESS_NODE, + .flags = YP_NODE_FLAG_NEWLINE, .location = { .start = keyword->start, .end = end @@ -4012,8 +4012,8 @@ yp_unless_node_modifier_create(yp_parser_t *parser, yp_node_t *statement, const *node = (yp_unless_node_t) { { - .flags = YP_NODE_FLAG_NEWLINE, .type = YP_NODE_UNLESS_NODE, + .flags = YP_NODE_FLAG_NEWLINE, .location = { .start = statement->location.start, .end = predicate->location.end