Skip to content

Commit ad0f9d3

Browse files
committed
Call shorthand should not result in a message location
1 parent c07ada8 commit ad0f9d3

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

src/yarp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ yp_call_node_create(yp_parser_t *parser) {
11971197
},
11981198
.receiver = NULL,
11991199
.operator_loc = YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE,
1200-
.message_loc = YP_LOCATION_NULL_VALUE(parser),
1200+
.message_loc = YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE,
12011201
.opening_loc = YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE,
12021202
.arguments = NULL,
12031203
.closing_loc = YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE,

test/snapshots/method_calls.txt

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/snapshots/seattlerb/call_colon_parens.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/snapshots/seattlerb/call_dot_parens.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/snapshots/seattlerb/safe_call_dot_parens.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/snapshots/seattlerb/thingy.txt

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/snapshots/whitequark/send_call.txt

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)