зеркало из https://github.com/github/ruby.git
[ruby/yarp] Improved comments, moved flags after type
https://github.com/ruby/yarp/commit/4815d77e82
This commit is contained in:
Родитель
383c47f538
Коммит
86cc82a1ab
10
yarp/yarp.c
10
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче