diff options
584 files changed, 2871 insertions, 2848 deletions
diff --git a/prism/config.yml b/prism/config.yml index 3e05706f50..08b6961a0b 100644 --- a/prism/config.yml +++ b/prism/config.yml @@ -641,9 +641,9 @@ nodes: type: flags kind: CallNodeFlags - name: read_name - type: string + type: constant - name: write_name - type: string + type: constant - name: operator_loc type: location - name: value @@ -674,7 +674,7 @@ nodes: type: flags kind: CallNodeFlags - name: name - type: string + type: constant comment: | Represents a method call, in all of the various forms that can take. @@ -714,9 +714,9 @@ nodes: type: flags kind: CallNodeFlags - name: read_name - type: string + type: constant - name: write_name - type: string + type: constant - name: operator type: constant - name: operator_loc @@ -747,9 +747,9 @@ nodes: type: flags kind: CallNodeFlags - name: read_name - type: string + type: constant - name: write_name - type: string + type: constant - name: operator_loc type: location - name: value diff --git a/prism/prism.c b/prism/prism.c index d333e5e8f2..a082053d17 100644 --- a/prism/prism.c +++ b/prism/prism.c @@ -437,6 +437,22 @@ pm_parser_constant_id_owned(pm_parser_t *parser, const uint8_t *start, size_t le return pm_constant_pool_insert_owned(&parser->constant_pool, start, length); } +// Retrieve the constant pool id for the given static literal C string. +static inline pm_constant_id_t +pm_parser_constant_id_static(pm_parser_t *parser, const char *start, size_t length) { + uint8_t *owned_copy; + if (length > 0) { + owned_copy = malloc(length); + memcpy(owned_copy, start, length); + } else { + owned_copy = malloc(1); + owned_copy[0] = '\0'; + } + return pm_constant_pool_insert_owned(&parser->constant_pool, owned_copy, length); + // Does not work because the static literal cannot be serialized as an offset of source + // return pm_constant_pool_insert_shared(&parser->constant_pool, start, length); +} + // Retrieve the constant pool id for the given token. static inline pm_constant_id_t pm_parser_constant_id_token(pm_parser_t *parser, const pm_token_t *token) { @@ -1343,7 +1359,8 @@ pm_call_node_create(pm_parser_t *parser) { .opening_loc = PM_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE, .arguments = NULL, .closing_loc = PM_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE, - .block = NULL + .block = NULL, + .name = 0 }; return node; @@ -1371,7 +1388,7 @@ pm_call_node_aref_create(pm_parser_t *parser, pm_node_t *receiver, pm_arguments_ node->closing_loc = arguments->closing_loc; node->block = arguments->block; - pm_string_constant_init(&node->name, "[]", 2); + node->name = pm_parser_constant_id_static(parser, "[]", 2); return node; } @@ -1390,7 +1407,7 @@ pm_call_node_binary_create(pm_parser_t *parser, pm_node_t *receiver, pm_token_t pm_arguments_node_arguments_append(arguments, argument); node->arguments = arguments; - pm_string_shared_init(&node->name, operator->start, operator->end); + node->name = pm_parser_constant_id_token(parser, operator); return node; } @@ -1422,7 +1439,7 @@ pm_call_node_call_create(pm_parser_t *parser, pm_node_t *receiver, pm_token_t *o node->base.flags |= PM_CALL_NODE_FLAGS_SAFE_NAVIGATION; } - pm_string_shared_init(&node->name, message->start, message->end); + node->name = pm_parser_constant_id_token(parser, message); return node; } @@ -1449,7 +1466,7 @@ pm_call_node_fcall_create(pm_parser_t *parser, pm_token_t *message, pm_arguments node->closing_loc = arguments->closing_loc; node->block = arguments->block; - pm_string_shared_init(&node->name, message->start, message->end); + node->name = pm_parser_constant_id_token(parser, message); return node; } @@ -1471,7 +1488,7 @@ pm_call_node_not_create(pm_parser_t *parser, pm_node_t *receiver, pm_token_t *me node->arguments = arguments->arguments; node->closing_loc = arguments->closing_loc; - pm_string_constant_init(&node->name, "!", 1); + node->name = pm_parser_constant_id_static(parser, "!", 1); return node; } @@ -1498,7 +1515,7 @@ pm_call_node_shorthand_create(pm_parser_t *parser, pm_node_t *receiver, pm_token node->base.flags |= PM_CALL_NODE_FLAGS_SAFE_NAVIGATION; } - pm_string_constant_init(&node->name, "call", 4); + node->name = pm_parser_constant_id_static(parser, "call", 4); return node; } @@ -1513,7 +1530,7 @@ pm_call_node_unary_create(pm_parser_t *parser, pm_token_t *operator, pm_node_t * node->receiver = receiver; node->message_loc = PM_OPTIONAL_LOCATION_TOKEN_VALUE(operator); - pm_string_constant_init(&node->name, name, strlen(name)); + node->name = pm_parser_constant_id_static(parser, name, strlen(name)); return node; } @@ -1526,7 +1543,7 @@ pm_call_node_variable_call_create(pm_parser_t *parser, pm_token_t *message) { node->base.location = PM_LOCATION_TOKEN_VALUE(message); node->message_loc = PM_OPTIONAL_LOCATION_TOKEN_VALUE(message); - pm_string_shared_init(&node->name, message->start, message->end); + node->name = pm_parser_constant_id_token(parser, message); return node; } @@ -1539,17 +1556,18 @@ pm_call_node_variable_call_p(pm_call_node_t *node) { // Initialize the read name by reading the write name and chopping off the '='. static void -pm_call_write_read_name_init(pm_string_t *read_name, pm_string_t *write_name) { - if (write_name->length >= 1) { - size_t length = write_name->length - 1; +pm_call_write_read_name_init(pm_parser_t *parser, pm_constant_id_t *read_name, pm_constant_id_t *write_name) { + pm_constant_t *write_constant = pm_constant_pool_id_to_constant(&parser->constant_pool, *write_name); + if (write_constant->length >= 1) { + size_t length = write_constant->length - 1; void *memory = malloc(length); - memcpy(memory, write_name->source, length); + memcpy(memory, write_constant->start, length); - pm_string_owned_init(read_name, (uint8_t *) memory, length); + *read_name = pm_constant_pool_insert_owned(&parser->constant_pool, (uint8_t *) memory, length); } else { // We can get here if the message was missing because of a syntax error. - pm_string_constant_init(read_name, "", 0); + *read_name = pm_parser_constant_id_static(parser, "", 0); } } @@ -1575,13 +1593,13 @@ pm_call_and_write_node_create(pm_parser_t *parser, pm_call_node_t *target, const .opening_loc = target->opening_loc, .arguments = target->arguments, .closing_loc = target->closing_loc, - .read_name = PM_EMPTY_STRING, + .read_name = 0, .write_name = target->name, .operator_loc = PM_LOCATION_TOKEN_VALUE(operator), .value = value }; - pm_call_write_read_name_init(&node->read_name, &node->write_name); + pm_call_write_read_name_init(parser, &node->read_name, &node->write_name); // Here we're going to free the target, since it is no longer necessary. // However, we don't want to call `pm_node_destroy` because we want to keep @@ -1612,14 +1630,14 @@ pm_call_operator_write_node_create(pm_parser_t *parser, pm_call_node_t *target, .opening_loc = target->opening_loc, .arguments = target->arguments, .closing_loc = target->closing_loc, - .read_name = PM_EMPTY_STRING, + .read_name = 0, .write_name = target->name, .operator = pm_parser_constant_id_location(parser, operator->start, operator->end - 1), .operator_loc = PM_LOCATION_TOKEN_VALUE(operator), .value = value }; - pm_call_write_read_name_init(&node->read_name, &node->write_name); + pm_call_write_read_name_init(parser, &node->read_name, &node->write_name); // Here we're going to free the target, since it is no longer necessary. // However, we don't want to call `pm_node_destroy` because we want to keep @@ -1651,13 +1669,13 @@ pm_call_or_write_node_create(pm_parser_t *parser, pm_call_node_t *target, const .opening_loc = target->opening_loc, .arguments = target->arguments, .closing_loc = target->closing_loc, - .read_name = PM_EMPTY_STRING, + .read_name = 0, .write_name = target->name, .operator_loc = PM_LOCATION_TOKEN_VALUE(operator), .value = value }; - pm_call_write_read_name_init(&node->read_name, &node->write_name); + pm_call_write_read_name_init(parser, &node->read_name, &node->write_name); // Here we're going to free the target, since it is no longer necessary. // However, we don't want to call `pm_node_destroy` because we want to keep @@ -8388,23 +8406,23 @@ parse_starred_expression(pm_parser_t *parser, pm_binding_power_t binding_power, } // Convert the name of a method into the corresponding write method name. For -// exmaple, foo would be turned into foo=. +// example, foo would be turned into foo=. static void -parse_write_name(pm_string_t *string) { +parse_write_name(pm_parser_t *parser, pm_constant_id_t *name_field) { // The method name needs to change. If we previously had // foo, we now need foo=. In this case we'll allocate a new // owned string, copy the previous method name in, and // append an =. - size_t length = pm_string_length(string); + pm_constant_t *constant = pm_constant_pool_id_to_constant(&parser->constant_pool, *name_field); + size_t length = constant->length; uint8_t *name = calloc(length + 1, sizeof(uint8_t)); if (name == NULL) return; - memcpy(name, pm_string_source(string), length); + memcpy(name, constant->start, length); name[length] = '='; // Now switch the name to the new string. - pm_string_free(string); - pm_string_owned_init(string, name, length + 1); + *name_field = pm_constant_pool_insert_owned(&parser->constant_pool, name, length + 1); } // Convert the given node into a valid target node. @@ -8502,7 +8520,7 @@ parse_target(pm_parser_t *parser, pm_node_t *target) { } if (*call->message_loc.start == '_' || parser->encoding.alnum_char(call->message_loc.start, call->message_loc.end - call->message_loc.start)) { - parse_write_name(&call->name); + parse_write_name(parser, &call->name); return (pm_node_t *) call; } } @@ -8517,9 +8535,8 @@ parse_target(pm_parser_t *parser, pm_node_t *target) { (call->message_loc.end[-1] == ']') && (call->block == NULL) ) { - // Free the previous name and replace it with "[]=". - pm_string_free(&call->name); - pm_string_constant_init(&call->name, "[]=", 3); + // Replace the name with "[]=". + call->name = pm_parser_constant_id_static(parser, "[]=", 3); return target; } } @@ -8664,7 +8681,7 @@ parse_write(pm_parser_t *parser, pm_node_t *target, pm_token_t *operator, pm_nod pm_arguments_node_arguments_append(arguments, value); call->base.location.end = arguments->base.location.end; - parse_write_name(&call->name); + parse_write_name(parser, &call->name); return (pm_node_t *) call; } } @@ -8685,9 +8702,8 @@ parse_write(pm_parser_t *parser, pm_node_t *target, pm_token_t *operator, pm_nod pm_arguments_node_arguments_append(call->arguments, value); target->location.end = value->location.end; - // Free the previous name and replace it with "[]=". - pm_string_free(&call->name); - pm_string_constant_init(&call->name, "[]=", 3); + // Replace the name with "[]=". + call->name = pm_parser_constant_id_static(parser, "[]=", 3); return target; } diff --git a/prism/templates/lib/prism/serialize.rb.erb b/prism/templates/lib/prism/serialize.rb.erb index 52fe811a5a..9773160e0d 100644 --- a/prism/templates/lib/prism/serialize.rb.erb +++ b/prism/templates/lib/prism/serialize.rb.erb @@ -144,13 +144,14 @@ module Prism end def load_string - case io.getbyte + type = io.getbyte + case type when 1 input.byteslice(load_varint, load_varint).force_encoding(encoding) when 2 load_embedded_string else - raise + raise "Unknown serialized string type: #{type}" end end diff --git a/prism/util/pm_constant_pool.h b/prism/util/pm_constant_pool.h index c23628d999..3ea335ac52 100644 --- a/prism/util/pm_constant_pool.h +++ b/prism/util/pm_constant_pool.h @@ -63,6 +63,11 @@ typedef struct { // Initialize a new constant pool with a given capacity. bool pm_constant_pool_init(pm_constant_pool_t *pool, uint32_t capacity); +static inline pm_constant_t* pm_constant_pool_id_to_constant(pm_constant_pool_t *pool, pm_constant_id_t constant_id) { + assert(constant_id > 0 && constant_id <= pool->size); + return &pool->constants[constant_id - 1]; +} + // Insert a constant into a constant pool that is a slice of a source string. // Returns the id of the constant, or 0 if any potential calls to resize fail. pm_constant_id_t pm_constant_pool_insert_shared(pm_constant_pool_t *pool, const uint8_t *start, size_t length); diff --git a/prism/util/pm_string.h b/prism/util/pm_string.h index acc0fa5277..ec6985282b 100644 --- a/prism/util/pm_string.h +++ b/prism/util/pm_string.h @@ -11,9 +11,10 @@ // This struct represents a string value. typedef struct { - enum { PM_STRING_SHARED, PM_STRING_OWNED, PM_STRING_CONSTANT, PM_STRING_MAPPED } type; const uint8_t *source; size_t length; + // This field is not the first one, because otherwise things like .pm_string_t_field = 123/pm_constant_id_t does not warn or error + enum { PM_STRING_SHARED, PM_STRING_OWNED, PM_STRING_CONSTANT, PM_STRING_MAPPED } type; } pm_string_t; #define PM_EMPTY_STRING ((pm_string_t) { .type = PM_STRING_CONSTANT, .source = NULL, .length = 0 }) diff --git a/test/prism/encoding_test.rb b/test/prism/encoding_test.rb index b2e602b286..3cbcc3fe7d 100644 --- a/test/prism/encoding_test.rb +++ b/test/prism/encoding_test.rb @@ -39,28 +39,28 @@ module Prism CP1252 ].each do |encoding| define_method "test_encoding_#{encoding}" do - result = Prism.parse("# encoding: #{encoding}\nident") - actual = result.value.statements.body.first.name.encoding + result = Prism.parse("# encoding: #{encoding}\n'string'") + actual = result.value.statements.body.first.unescaped.encoding assert_equal Encoding.find(encoding), actual end end def test_coding - result = Prism.parse("# coding: utf-8\nident") - actual = result.value.statements.body.first.name.encoding + result = Prism.parse("# coding: utf-8\n'string'") + actual = result.value.statements.body.first.unescaped.encoding assert_equal Encoding.find("utf-8"), actual end def test_coding_with_whitespace - result = Prism.parse("# coding \t \r \v : \t \v \r ascii-8bit \nident") - actual = result.value.statements.body.first.name.encoding + result = Prism.parse("# coding \t \r \v : \t \v \r ascii-8bit \n'string'") + actual = result.value.statements.body.first.unescaped.encoding assert_equal Encoding.find("ascii-8bit"), actual end def test_emacs_style - result = Prism.parse("# -*- coding: utf-8 -*-\nident") - actual = result.value.statements.body.first.name.encoding + result = Prism.parse("# -*- coding: utf-8 -*-\n'string'") + actual = result.value.statements.body.first.unescaped.encoding assert_equal Encoding.find("utf-8"), actual end @@ -86,8 +86,8 @@ module Prism utf-8-mac utf-8-* ].each do |encoding| - result = Prism.parse("# coding: #{encoding}\nident") - actual = result.value.statements.body.first.name.encoding + result = Prism.parse("# coding: #{encoding}\n'string'") + actual = result.value.statements.body.first.unescaped.encoding assert_equal Encoding.find("utf-8"), actual end end diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb index a101dfa87e..399653ef3e 100644 --- a/test/prism/errors_test.rb +++ b/test/prism/errors_test.rb @@ -89,7 +89,7 @@ module Prism nil, nil, 0, - "+" + :+ ) ]), Location(), @@ -350,7 +350,7 @@ module Prism Location(), nil, 0, - "a" + :a ) assert_errors expected, "a(**kwargs, *args)", [ @@ -368,7 +368,7 @@ module Prism Location(), BlockArgumentNode(expression("block"), Location()), 0, - "a" + :a ) assert_errors expected, "a(&block, foo)", [ @@ -403,7 +403,7 @@ module Prism Location(), nil, 0, - "a" + :a ) assert_errors expected, "a(foo: bar, *args)", [ @@ -454,7 +454,7 @@ module Prism Location() ), 0, - "bar" + :bar )] ), [], @@ -1016,7 +1016,7 @@ module Prism Location() ), 0, - "a" + :a ) assert_errors expected, "a {|...|}", [ @@ -1176,7 +1176,7 @@ module Prism def test_invalid_message_name result = Prism.parse("+.@foo,+=foo") - assert_equal "", result.value.statements.body.first.write_name + assert_equal :"", result.value.statements.body.first.write_name end def test_invalid_operator_write_fcall diff --git a/test/prism/pattern_test.rb b/test/prism/pattern_test.rb index af1efa7560..e0aa079cb9 100644 --- a/test/prism/pattern_test.rb +++ b/test/prism/pattern_test.rb @@ -43,7 +43,7 @@ module Prism end def test_array_pattern - results = scan("1 + 2", "CallNode[name: \"+\", receiver: IntegerNode, arguments: [IntegerNode]]") + results = scan("1 + 2", "CallNode[name: :+, receiver: IntegerNode, arguments: [IntegerNode]]") assert_equal 1, results.length end @@ -75,7 +75,7 @@ module Prism end def test_hash_pattern_no_constant - results = scan("Foo + Bar + Baz", "{ name: \"+\" }") + results = scan("Foo + Bar + Baz", "{ name: :+ }") assert_equal 2, results.length end diff --git a/test/prism/snapshots/arithmetic.txt b/test/prism/snapshots/arithmetic.txt index 5ff36ffe84..1122360765 100644 --- a/test/prism/snapshots/arithmetic.txt +++ b/test/prism/snapshots/arithmetic.txt @@ -22,7 +22,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (1,4)-(1,5) = "!" │ │ ├── opening_loc: ∅ @@ -30,11 +30,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (3,0)-(3,8)) │ ├── receiver: │ │ @ CallNode (location: (3,0)-(3,4)) @@ -48,7 +48,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (3,0)-(3,1) = "-" │ │ ├── opening_loc: ∅ @@ -56,7 +56,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "-@" + │ │ └── name: :-@ │ ├── call_operator_loc: ∅ │ ├── message_loc: (3,4)-(3,5) = "*" │ ├── opening_loc: ∅ @@ -72,11 +72,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "*" + │ └── name: :* ├── @ CallNode (location: (5,0)-(5,9)) │ ├── receiver: │ │ @ CallNode (location: (5,0)-(5,4)) @@ -90,7 +90,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (5,0)-(5,1) = "+" │ │ ├── opening_loc: ∅ @@ -98,7 +98,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+@" + │ │ └── name: :+@ │ ├── call_operator_loc: ∅ │ ├── message_loc: (5,4)-(5,6) = "**" │ ├── opening_loc: ∅ @@ -114,11 +114,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "**" + │ └── name: :** ├── @ CallNode (location: (7,0)-(7,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -138,7 +138,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (7,4)-(7,5) = "~" │ │ ├── opening_loc: ∅ @@ -146,11 +146,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "~" + │ │ └── name: :~ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (9,0)-(9,17)) │ ├── receiver: │ │ @ CallNode (location: (9,0)-(9,10)) @@ -164,7 +164,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (9,4)-(9,6) = "<<" │ │ ├── opening_loc: ∅ @@ -180,11 +180,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "<<" + │ │ └── name: :<< │ ├── call_operator_loc: ∅ │ ├── message_loc: (9,11)-(9,13) = "<<" │ ├── opening_loc: ∅ @@ -200,11 +200,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<<" + │ └── name: :<< ├── @ CallNode (location: (11,0)-(11,5)) │ ├── receiver: │ │ @ CallNode (location: (11,1)-(11,5)) @@ -222,7 +222,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "**" + │ │ └── name: :** │ ├── call_operator_loc: ∅ │ ├── message_loc: (11,0)-(11,1) = "-" │ ├── opening_loc: ∅ @@ -230,7 +230,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "-@" + │ └── name: :-@ └── @ CallNode (location: (13,0)-(13,8)) ├── receiver: │ @ IntegerNode (location: (13,0)-(13,2)) @@ -242,4 +242,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "zero?" + └── name: :zero? diff --git a/test/prism/snapshots/arrays.txt b/test/prism/snapshots/arrays.txt index 8a7c98a839..c6f804b55e 100644 --- a/test/prism/snapshots/arrays.txt +++ b/test/prism/snapshots/arrays.txt @@ -17,7 +17,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── opening_loc: (1,0)-(1,1) = "[" │ └── closing_loc: (1,3)-(1,4) = "]" ├── @ CallNode (location: (3,0)-(3,23)) @@ -31,7 +31,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (3,3)-(3,13) = "[bar, baz]" │ ├── opening_loc: (3,3)-(3,4) = "[" @@ -47,7 +47,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── @ CallNode (location: (3,9)-(3,12)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ @@ -57,7 +57,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── @ ArrayNode (location: (3,16)-(3,23)) │ │ ├── elements: (length: 3) │ │ │ ├── @ IntegerNode (location: (3,16)-(3,17)) @@ -71,7 +71,7 @@ │ ├── closing_loc: (3,12)-(3,13) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ ArrayNode (location: (5,0)-(5,13)) │ ├── elements: (length: 1) │ │ └── @ KeywordHashNode (location: (5,1)-(5,12)) @@ -168,7 +168,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── value: │ │ │ @ CallNode (location: (28,8)-(28,11)) │ │ │ ├── receiver: ∅ @@ -179,7 +179,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── operator_loc: (28,5)-(28,7) = "=>" │ ├── opening_loc: (28,0)-(28,1) = "[" │ └── closing_loc: (28,11)-(28,12) = "]" @@ -196,7 +196,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (30,3)-(30,8) = "[bar]" │ │ ├── opening_loc: (30,3)-(30,4) = "[" @@ -212,11 +212,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── closing_loc: (30,7)-(30,8) = "]" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "[]" + │ │ └── name: :[] │ ├── call_operator_loc: ∅ │ ├── message_loc: (30,8)-(30,13) = "[baz]" │ ├── opening_loc: (30,8)-(30,9) = "[" @@ -232,7 +232,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── @ CallNode (location: (30,16)-(30,19)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -242,11 +242,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "qux" + │ │ └── name: :qux │ ├── closing_loc: (30,12)-(30,13) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallNode (location: (32,0)-(32,13)) │ ├── receiver: │ │ @ CallNode (location: (32,0)-(32,8)) @@ -260,7 +260,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (32,3)-(32,8) = "[bar]" │ │ ├── opening_loc: (32,3)-(32,4) = "[" @@ -276,11 +276,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── closing_loc: (32,7)-(32,8) = "]" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "[]" + │ │ └── name: :[] │ ├── call_operator_loc: ∅ │ ├── message_loc: (32,8)-(32,13) = "[baz]" │ ├── opening_loc: (32,8)-(32,9) = "[" @@ -296,11 +296,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── closing_loc: (32,12)-(32,13) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ ArrayNode (location: (34,0)-(35,1)) │ ├── elements: (length: 0) │ ├── opening_loc: (34,0)-(34,1) = "[" @@ -316,7 +316,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (37,3)-(37,13) = "[bar, baz]" │ ├── opening_loc: (37,3)-(37,4) = "[" @@ -332,7 +332,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── @ CallNode (location: (37,9)-(37,12)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -342,11 +342,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── closing_loc: (37,12)-(37,13) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ CallNode (location: (39,0)-(39,19)) │ ├── receiver: │ │ @ CallNode (location: (39,0)-(39,3)) @@ -358,7 +358,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (39,3)-(39,13) = "[bar, baz]" │ ├── opening_loc: (39,3)-(39,4) = "[" @@ -374,7 +374,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── @ CallNode (location: (39,9)-(39,12)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ @@ -384,7 +384,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── @ CallNode (location: (39,16)-(39,19)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -394,11 +394,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "qux" + │ │ └── name: :qux │ ├── closing_loc: (39,12)-(39,13) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ MultiWriteNode (location: (41,0)-(41,21)) │ ├── targets: (length: 2) │ │ ├── @ CallNode (location: (41,0)-(41,6)) @@ -412,7 +412,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (41,3)-(41,6) = "[0]" │ │ │ ├── opening_loc: (41,3)-(41,4) = "[" @@ -424,7 +424,7 @@ │ │ │ ├── closing_loc: (41,5)-(41,6) = "]" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "[]=" + │ │ │ └── name: :[]= │ │ └── @ CallNode (location: (41,8)-(41,14)) │ │ ├── receiver: │ │ │ @ CallNode (location: (41,8)-(41,11)) @@ -436,7 +436,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (41,11)-(41,14) = "[0]" │ │ ├── opening_loc: (41,11)-(41,12) = "[" @@ -448,7 +448,7 @@ │ │ ├── closing_loc: (41,13)-(41,14) = "]" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "[]=" + │ │ └── name: :[]= │ ├── lparen_loc: ∅ │ ├── rparen_loc: ∅ │ ├── operator_loc: (41,15)-(41,16) = "=" @@ -472,7 +472,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (43,3)-(43,19) = "[bar[baz] = qux]" │ ├── opening_loc: (43,3)-(43,4) = "[" @@ -490,7 +490,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (43,7)-(43,12) = "[baz]" │ │ ├── opening_loc: (43,7)-(43,8) = "[" @@ -506,7 +506,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "baz" + │ │ │ │ └── name: :baz │ │ │ └── @ CallNode (location: (43,15)-(43,18)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ @@ -516,15 +516,15 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "qux" + │ │ │ └── name: :qux │ │ ├── closing_loc: (43,11)-(43,12) = "]" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "[]=" + │ │ └── name: :[]= │ ├── closing_loc: (43,18)-(43,19) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ CallNode (location: (45,0)-(45,8)) │ ├── receiver: │ │ @ CallNode (location: (45,0)-(45,3)) @@ -536,7 +536,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (45,3)-(45,8) = "[bar]" │ ├── opening_loc: (45,3)-(45,4) = "[" @@ -552,11 +552,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (45,7)-(45,8) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ CallNode (location: (47,0)-(47,14)) │ ├── receiver: │ │ @ CallNode (location: (47,0)-(47,3)) @@ -568,7 +568,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (47,3)-(47,8) = "[bar]" │ ├── opening_loc: (47,3)-(47,4) = "[" @@ -584,7 +584,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── @ CallNode (location: (47,11)-(47,14)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -594,11 +594,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── closing_loc: (47,7)-(47,8) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ ArrayNode (location: (49,0)-(49,6)) │ ├── elements: (length: 1) │ │ └── @ KeywordHashNode (location: (49,1)-(49,5)) @@ -627,7 +627,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "kw" + │ │ │ └── name: :kw │ │ └── operator_loc: (51,1)-(51,3) = "**" │ ├── opening_loc: (51,0)-(51,1) = "[" │ └── closing_loc: (51,5)-(51,6) = "]" @@ -648,7 +648,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "kw" + │ │ │ └── name: :kw │ │ └── operator_loc: (53,4)-(53,6) = "**" │ ├── opening_loc: (53,0)-(53,1) = "[" │ └── closing_loc: (53,8)-(53,9) = "]" @@ -669,7 +669,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "kw" + │ │ │ │ └── name: :kw │ │ │ └── operator_loc: (55,4)-(55,6) = "**" │ │ ├── @ AssocSplatNode (location: (55,10)-(55,14)) │ │ │ ├── value: @@ -689,7 +689,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "kw" + │ │ │ └── name: :kw │ │ └── operator_loc: (55,16)-(55,18) = "**" │ ├── opening_loc: (55,0)-(55,1) = "[" │ └── closing_loc: (55,20)-(55,21) = "]" @@ -708,7 +708,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── value: │ │ │ @ CallNode (location: (58,9)-(58,12)) │ │ │ ├── receiver: ∅ @@ -719,7 +719,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── operator_loc: (58,6)-(58,8) = "=>" │ ├── opening_loc: (57,0)-(57,1) = "[" │ └── closing_loc: (59,0)-(59,1) = "]" diff --git a/test/prism/snapshots/begin_ensure.txt b/test/prism/snapshots/begin_ensure.txt index 42b97cd609..c2ff88a594 100644 --- a/test/prism/snapshots/begin_ensure.txt +++ b/test/prism/snapshots/begin_ensure.txt @@ -17,7 +17,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: @@ -35,7 +35,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── end_keyword_loc: (5,0)-(5,3) = "end" │ └── end_keyword_loc: (5,0)-(5,3) = "end" ├── @ BeginNode (location: (7,0)-(7,24)) @@ -52,7 +52,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: @@ -70,7 +70,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── end_keyword_loc: (7,21)-(7,24) = "end" │ └── end_keyword_loc: (7,21)-(7,24) = "end" ├── @ BeginNode (location: (9,0)-(11,4)) @@ -87,7 +87,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: @@ -105,7 +105,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── end_keyword_loc: (11,1)-(11,4) = "end" │ └── end_keyword_loc: (11,1)-(11,4) = "end" ├── @ BeginNode (location: (13,0)-(13,22)) @@ -122,7 +122,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: @@ -140,7 +140,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── end_keyword_loc: (13,19)-(13,22) = "end" │ └── end_keyword_loc: (13,19)-(13,22) = "end" └── @ BeginNode (location: (15,0)-(21,15)) @@ -226,19 +226,19 @@ │ │ │ │ │ │ │ │ │ │ ├── opening_loc: (18,22)-(18,24) = "do" │ │ │ │ │ │ │ │ │ │ └── closing_loc: (19,4)-(19,7) = "end" │ │ │ │ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ │ │ │ │ └── name: "new" + │ │ │ │ │ │ │ │ │ └── name: :new │ │ │ │ │ │ │ │ └── end_keyword_loc: (20,2)-(20,5) = "end" │ │ │ │ │ │ │ └── end_keyword_loc: (20,2)-(20,5) = "end" │ │ │ │ │ │ ├── opening_loc: (15,40)-(15,42) = "do" │ │ │ │ │ │ └── closing_loc: (21,0)-(21,3) = "end" │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "new" + │ │ │ │ │ └── name: :new │ │ │ │ └── end_keyword_loc: (21,4)-(21,7) = "end" │ │ │ └── end_keyword_loc: (21,4)-(21,7) = "end" │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "l" + │ │ └── name: :l │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/begin_rescue.txt b/test/prism/snapshots/begin_rescue.txt index 3812134fd1..d4e0c7fdc0 100644 --- a/test/prism/snapshots/begin_rescue.txt +++ b/test/prism/snapshots/begin_rescue.txt @@ -17,7 +17,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (1,10)-(1,19)) │ │ ├── keyword_loc: (1,10)-(1,16) = "rescue" @@ -36,7 +36,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: │ │ @ ElseNode (location: (1,21)-(1,33)) @@ -53,7 +53,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ └── end_keyword_loc: (1,30)-(1,33) = "end" │ ├── ensure_clause: ∅ │ └── end_keyword_loc: (1,30)-(1,33) = "end" @@ -71,7 +71,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (3,10)-(3,19)) │ │ ├── keyword_loc: (3,10)-(3,16) = "rescue" @@ -90,7 +90,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: │ │ @ ElseNode (location: (3,21)-(3,36)) @@ -107,7 +107,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ └── end_keyword_loc: (3,30)-(3,36) = "ensure" │ ├── ensure_clause: │ │ @ EnsureNode (location: (3,30)-(3,44)) @@ -124,7 +124,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ └── end_keyword_loc: (3,41)-(3,44) = "end" │ └── end_keyword_loc: (3,41)-(3,44) = "end" ├── @ BeginNode (location: (5,0)-(7,3)) @@ -141,7 +141,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -160,7 +160,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -179,7 +179,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -198,7 +198,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -217,7 +217,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (18,0)-(23,1)) │ │ ├── keyword_loc: (18,0)-(18,6) = "rescue" @@ -236,7 +236,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: │ │ @ RescueNode (location: (20,0)-(23,1)) │ │ ├── keyword_loc: (20,0)-(20,6) = "rescue" @@ -255,7 +255,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ └── consequent: │ │ @ RescueNode (location: (22,0)-(23,1)) │ │ ├── keyword_loc: (22,0)-(22,6) = "rescue" @@ -274,7 +274,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -293,7 +293,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (28,0)-(31,3)) │ │ ├── keyword_loc: (28,0)-(28,6) = "rescue" @@ -317,7 +317,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: │ │ @ RescueNode (location: (30,0)-(31,3)) │ │ ├── keyword_loc: (30,0)-(30,6) = "rescue" @@ -343,7 +343,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -362,7 +362,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (36,0)-(37,3)) │ │ ├── keyword_loc: (36,0)-(36,6) = "rescue" @@ -386,7 +386,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: @@ -404,7 +404,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── end_keyword_loc: (40,0)-(40,3) = "end" │ └── end_keyword_loc: (40,0)-(40,3) = "end" ├── @ StringNode (location: (42,0)-(42,6)) @@ -427,7 +427,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (46,0)-(47,1)) │ │ ├── keyword_loc: (46,0)-(46,6) = "rescue" @@ -446,7 +446,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -465,7 +465,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (50,8)-(50,16)) │ │ ├── keyword_loc: (50,8)-(50,14) = "rescue" @@ -484,7 +484,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -503,7 +503,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (53,2)-(54,1)) │ │ ├── keyword_loc: (53,2)-(53,8) = "rescue" @@ -522,7 +522,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -541,7 +541,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (58,0)-(59,1)) │ │ ├── keyword_loc: (58,0)-(58,6) = "rescue" @@ -562,7 +562,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -581,7 +581,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (64,0)-(65,1)) │ │ ├── keyword_loc: (64,0)-(64,6) = "rescue" @@ -604,7 +604,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -623,7 +623,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (70,0)-(71,3)) │ │ ├── keyword_loc: (70,0)-(70,6) = "rescue" @@ -649,7 +649,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -668,7 +668,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── rescue_clause: │ @ RescueNode (location: (76,0)-(77,3)) │ ├── keyword_loc: (76,0)-(76,6) = "rescue" @@ -692,7 +692,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── consequent: ∅ ├── else_clause: ∅ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/blocks.txt b/test/prism/snapshots/blocks.txt index 9a6fbbb925..ac93642213 100644 --- a/test/prism/snapshots/blocks.txt +++ b/test/prism/snapshots/blocks.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,3)-(1,8) = "[bar]" │ ├── opening_loc: (1,3)-(1,4) = "[" @@ -30,7 +30,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (1,7)-(1,8) = "]" │ ├── block: │ │ @ BlockNode (location: (1,9)-(1,16)) @@ -48,11 +48,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── opening_loc: (1,9)-(1,10) = "{" │ │ └── closing_loc: (1,15)-(1,16) = "}" │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ CallNode (location: (3,0)-(5,3)) │ ├── receiver: │ │ @ CallNode (location: (3,0)-(3,3)) @@ -64,7 +64,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (3,3)-(3,8) = "[bar]" │ ├── opening_loc: (3,3)-(3,4) = "[" @@ -80,7 +80,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (3,7)-(3,8) = "]" │ ├── block: │ │ @ BlockNode (location: (3,9)-(5,3)) @@ -98,11 +98,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── opening_loc: (3,9)-(3,11) = "do" │ │ └── closing_loc: (5,0)-(5,3) = "end" │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ CallNode (location: (7,0)-(7,35)) │ ├── receiver: │ │ @ CallNode (location: (7,0)-(7,1)) @@ -114,7 +114,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "x" + │ │ └── name: :x │ ├── call_operator_loc: (7,1)-(7,2) = "." │ ├── message_loc: (7,2)-(7,8) = "reduce" │ ├── opening_loc: (7,8)-(7,9) = "(" @@ -161,7 +161,7 @@ │ │ ├── opening_loc: (7,12)-(7,13) = "{" │ │ └── closing_loc: (7,34)-(7,35) = "}" │ ├── flags: ∅ - │ └── name: "reduce" + │ └── name: :reduce ├── @ CallNode (location: (9,0)-(9,10)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -177,7 +177,7 @@ │ │ ├── opening_loc: (9,4)-(9,6) = "do" │ │ └── closing_loc: (9,7)-(9,10) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (11,0)-(11,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -195,7 +195,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── @ ParenthesesNode (location: (11,9)-(11,21)) │ │ ├── body: │ │ │ @ StatementsNode (location: (11,10)-(11,20)) @@ -215,13 +215,13 @@ │ │ │ │ ├── opening_loc: (11,14)-(11,16) = "do" │ │ │ │ └── closing_loc: (11,17)-(11,20) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── opening_loc: (11,9)-(11,10) = "(" │ │ └── closing_loc: (11,20)-(11,21) = ")" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (13,0)-(13,14)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -239,7 +239,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (13,8)-(13,14)) @@ -249,7 +249,7 @@ │ │ ├── opening_loc: (13,8)-(13,10) = "do" │ │ └── closing_loc: (13,11)-(13,14) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (15,0)-(15,18)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -275,11 +275,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (15,12)-(15,18)) @@ -289,7 +289,7 @@ │ │ ├── opening_loc: (15,12)-(15,14) = "do" │ │ └── closing_loc: (15,15)-(15,18) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (17,0)-(18,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -322,7 +322,7 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "b" + │ │ │ │ │ │ └── name: :b │ │ │ │ │ ├── call_operator_loc: ∅ │ │ │ │ │ ├── message_loc: (17,13)-(17,16) = "[1]" │ │ │ │ │ ├── opening_loc: (17,13)-(17,14) = "[" @@ -334,7 +334,7 @@ │ │ │ │ │ ├── closing_loc: (17,15)-(17,16) = "]" │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "[]" + │ │ │ │ │ └── name: :[] │ │ │ │ ├── rest: ∅ │ │ │ │ ├── posts: (length: 0) │ │ │ │ ├── keywords: (length: 0) @@ -347,7 +347,7 @@ │ │ ├── opening_loc: (17,4)-(17,6) = "do" │ │ └── closing_loc: (18,0)-(18,3) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (20,0)-(22,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -377,7 +377,7 @@ │ │ ├── opening_loc: (20,4)-(20,6) = "do" │ │ └── closing_loc: (22,0)-(22,3) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (24,0)-(29,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -421,15 +421,15 @@ │ │ │ │ │ │ ├── opening_loc: (26,8)-(26,10) = "do" │ │ │ │ │ │ └── closing_loc: (27,4)-(27,7) = "end" │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "baz" + │ │ │ │ │ └── name: :baz │ │ │ │ ├── opening_loc: (25,6)-(25,8) = "do" │ │ │ │ └── closing_loc: (28,2)-(28,5) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── opening_loc: (24,4)-(24,6) = "do" │ │ └── closing_loc: (29,0)-(29,3) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (31,0)-(31,16)) │ ├── receiver: │ │ @ CallNode (location: (31,0)-(31,3)) @@ -441,7 +441,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (31,3)-(31,8) = "[bar]" │ ├── opening_loc: (31,3)-(31,4) = "[" @@ -457,7 +457,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (31,7)-(31,8) = "]" │ ├── block: │ │ @ BlockNode (location: (31,9)-(31,16)) @@ -475,11 +475,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── opening_loc: (31,9)-(31,10) = "{" │ │ └── closing_loc: (31,15)-(31,16) = "}" │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ CallNode (location: (33,0)-(33,24)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -526,7 +526,7 @@ │ │ ├── opening_loc: (33,4)-(33,5) = "{" │ │ └── closing_loc: (33,23)-(33,24) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (35,0)-(35,11)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -557,7 +557,7 @@ │ │ ├── opening_loc: (35,4)-(35,5) = "{" │ │ └── closing_loc: (35,10)-(35,11) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ LocalVariableWriteNode (location: (37,0)-(37,8)) │ ├── name: :fork │ ├── depth: 0 @@ -596,7 +596,7 @@ │ │ ├── opening_loc: (38,5)-(38,7) = "do" │ │ └── closing_loc: (39,0)-(39,3) = "end" │ ├── flags: ∅ - │ └── name: "fork" + │ └── name: :fork ├── @ CallNode (location: (41,0)-(41,12)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -627,7 +627,7 @@ │ │ ├── opening_loc: (41,5)-(41,6) = "{" │ │ └── closing_loc: (41,11)-(41,12) = "}" │ ├── flags: ∅ - │ └── name: "fork" + │ └── name: :fork ├── @ CallNode (location: (43,0)-(44,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -643,7 +643,7 @@ │ │ ├── opening_loc: (43,2)-(43,4) = "do" │ │ └── closing_loc: (44,0)-(44,3) = "end" │ ├── flags: ∅ - │ └── name: "C" + │ └── name: :C ├── @ CallNode (location: (46,0)-(46,4)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -659,7 +659,7 @@ │ │ ├── opening_loc: (46,2)-(46,3) = "{" │ │ └── closing_loc: (46,3)-(46,4) = "}" │ ├── flags: ∅ - │ └── name: "C" + │ └── name: :C ├── @ CallNode (location: (48,0)-(52,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -708,11 +708,11 @@ │ │ │ ├── opening_loc: (48,11)-(48,12) = "{" │ │ │ └── closing_loc: (52,0)-(52,1) = "}" │ │ ├── flags: ∅ - │ │ └── name: "lambda" + │ │ └── name: :lambda │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo └── @ CallNode (location: (54,0)-(54,17)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -747,4 +747,4 @@ │ ├── opening_loc: (54,4)-(54,6) = "do" │ └── closing_loc: (54,14)-(54,17) = "end" ├── flags: ∅ - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/boolean_operators.txt b/test/prism/snapshots/boolean_operators.txt index 4ed94c368d..6a5a8af6cb 100644 --- a/test/prism/snapshots/boolean_operators.txt +++ b/test/prism/snapshots/boolean_operators.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── name: :a │ └── depth: 0 ├── @ LocalVariableOperatorWriteNode (location: (3,0)-(3,6)) @@ -32,7 +32,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── name: :a │ ├── operator: :+ │ └── depth: 0 @@ -49,6 +49,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b ├── name: :a └── depth: 0 diff --git a/test/prism/snapshots/break.txt b/test/prism/snapshots/break.txt index 49e74d0904..3fc446d8f7 100644 --- a/test/prism/snapshots/break.txt +++ b/test/prism/snapshots/break.txt @@ -142,7 +142,7 @@ │ │ │ ├── opening_loc: (23,4)-(23,5) = "{" │ │ │ └── closing_loc: (23,15)-(23,16) = "}" │ │ ├── flags: ∅ - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (23,17)-(23,19) = "==" │ ├── opening_loc: ∅ @@ -154,7 +154,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "==" + │ └── name: :== └── @ CallNode (location: (25,0)-(25,23)) ├── receiver: │ @ CallNode (location: (25,0)-(25,17)) @@ -192,7 +192,7 @@ │ │ ├── opening_loc: (25,4)-(25,5) = "{" │ │ └── closing_loc: (25,16)-(25,17) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (25,18)-(25,20) = "==" ├── opening_loc: ∅ @@ -204,4 +204,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "==" + └── name: :== diff --git a/test/prism/snapshots/case.txt b/test/prism/snapshots/case.txt index 15386a794f..02f822584d 100644 --- a/test/prism/snapshots/case.txt +++ b/test/prism/snapshots/case.txt @@ -50,7 +50,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "puts" + │ │ │ └── name: :puts │ │ └── @ WhenNode (location: (5,32)-(5,53)) │ │ ├── keyword_loc: (5,32)-(5,36) = "when" │ │ ├── conditions: (length: 1) @@ -74,7 +74,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "puts" + │ │ └── name: :puts │ ├── consequent: ∅ │ ├── case_keyword_loc: (5,0)-(5,4) = "case" │ └── end_keyword_loc: (5,55)-(5,58) = "end" @@ -96,7 +96,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── statements: ∅ │ ├── consequent: ∅ │ ├── case_keyword_loc: (7,0)-(7,4) = "case" @@ -143,7 +143,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "this" + │ │ └── name: :this │ ├── conditions: (length: 1) │ │ └── @ WhenNode (location: (15,11)-(15,31)) │ │ ├── keyword_loc: (15,11)-(15,15) = "when" @@ -173,7 +173,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (18,9)-(18,11) = "==" │ │ │ ├── opening_loc: ∅ @@ -189,11 +189,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "==" + │ │ │ └── name: :== │ │ └── statements: ∅ │ ├── consequent: ∅ │ ├── case_keyword_loc: (17,0)-(17,4) = "case" @@ -213,7 +213,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ └── statements: ∅ │ ├── consequent: │ │ @ ElseNode (location: (23,0)-(25,3)) @@ -233,7 +233,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "type" + │ │ └── name: :type │ ├── conditions: (length: 1) │ │ └── @ WhenNode (location: (28,3)-(28,10)) │ │ ├── keyword_loc: (28,3)-(28,7) = "when" diff --git a/test/prism/snapshots/classes.txt b/test/prism/snapshots/classes.txt index e349da627d..ee85bd70ba 100644 --- a/test/prism/snapshots/classes.txt +++ b/test/prism/snapshots/classes.txt @@ -118,7 +118,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (11,9)-(11,12) = "not" │ │ ├── opening_loc: ∅ @@ -126,7 +126,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ ├── body: ∅ │ └── end_keyword_loc: (12,0)-(12,3) = "end" ├── @ ClassNode (location: (14,0)-(14,40)) @@ -220,7 +220,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: (18,12)-(18,13) = "." │ │ ├── message_loc: (18,13)-(18,16) = "bar" │ │ ├── opening_loc: ∅ @@ -228,7 +228,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── body: ∅ │ └── end_keyword_loc: (19,0)-(19,3) = "end" ├── @ SingletonClassNode (location: (21,0)-(21,20)) @@ -247,7 +247,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: (21,12)-(21,13) = "." │ │ ├── message_loc: (21,13)-(21,16) = "bar" │ │ ├── opening_loc: ∅ @@ -255,7 +255,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── body: ∅ │ └── end_keyword_loc: (21,17)-(21,20) = "end" ├── @ SingletonClassNode (location: (23,0)-(24,3)) @@ -298,7 +298,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+" + │ │ └── name: :+ │ └── end_keyword_loc: (30,0)-(30,3) = "end" ├── @ SingletonClassNode (location: (32,0)-(32,23)) │ ├── locals: [] @@ -324,7 +324,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+" + │ │ └── name: :+ │ └── end_keyword_loc: (32,20)-(32,23) = "end" └── @ ClassNode (location: (34,0)-(35,3)) ├── locals: [] @@ -349,7 +349,7 @@ │ ├── closing_loc: (34,13)-(34,14) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── body: ∅ ├── end_keyword_loc: (35,0)-(35,3) = "end" └── name: :A diff --git a/test/prism/snapshots/comments.txt b/test/prism/snapshots/comments.txt index 84cd210bb9..ee8f13651a 100644 --- a/test/prism/snapshots/comments.txt +++ b/test/prism/snapshots/comments.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (3,0)-(3,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -22,7 +22,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b ├── @ CallNode (location: (5,0)-(5,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -32,7 +32,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "c" + │ └── name: :c ├── @ CallNode (location: (6,0)-(6,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -42,7 +42,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "d" + │ └── name: :d ├── @ CallNode (location: (8,0)-(10,4)) │ ├── receiver: │ │ @ CallNode (location: (8,0)-(8,1)) @@ -54,7 +54,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "e" + │ │ └── name: :e │ ├── call_operator_loc: (10,2)-(10,3) = "." │ ├── message_loc: (10,3)-(10,4) = "f" │ ├── opening_loc: ∅ @@ -62,7 +62,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (12,0)-(14,2)) │ ├── receiver: │ │ @ CallNode (location: (12,0)-(12,1)) @@ -74,7 +74,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "g" + │ │ └── name: :g │ ├── call_operator_loc: (14,0)-(14,1) = "." │ ├── message_loc: (14,1)-(14,2) = "h" │ ├── opening_loc: ∅ @@ -82,7 +82,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "h" + │ └── name: :h ├── @ CallNode (location: (16,0)-(17,2)) │ ├── receiver: │ │ @ CallNode (location: (16,0)-(16,1)) @@ -94,7 +94,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "i" + │ │ └── name: :i │ ├── call_operator_loc: (17,0)-(17,1) = "." │ ├── message_loc: (17,1)-(17,2) = "j" │ ├── opening_loc: ∅ @@ -102,7 +102,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "j" + │ └── name: :j ├── @ CallNode (location: (19,0)-(20,4)) │ ├── receiver: │ │ @ CallNode (location: (19,0)-(19,1)) @@ -114,7 +114,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "k" + │ │ └── name: :k │ ├── call_operator_loc: (20,2)-(20,3) = "." │ ├── message_loc: (20,3)-(20,4) = "l" │ ├── opening_loc: ∅ @@ -122,7 +122,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "l" + │ └── name: :l └── @ CallNode (location: (22,0)-(24,5)) ├── receiver: │ @ CallNode (location: (22,0)-(22,1)) @@ -134,7 +134,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "m" + │ └── name: :m ├── call_operator_loc: (24,2)-(24,4) = "&." ├── message_loc: (24,4)-(24,5) = "n" ├── opening_loc: ∅ @@ -142,4 +142,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation - └── name: "n" + └── name: :n diff --git a/test/prism/snapshots/constants.txt b/test/prism/snapshots/constants.txt index 9b3105880b..f985d0f654 100644 --- a/test/prism/snapshots/constants.txt +++ b/test/prism/snapshots/constants.txt @@ -36,7 +36,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── child: │ │ @ ConstantReadNode (location: (5,3)-(5,4)) │ │ └── name: :B @@ -77,7 +77,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "Foo" + │ └── name: :Foo ├── @ CallNode (location: (15,0)-(15,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -98,11 +98,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "Foo" + │ └── name: :Foo ├── @ CallNode (location: (17,0)-(17,9)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -124,12 +124,12 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── operator_loc: (17,4)-(17,6) = "**" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "Foo" + │ └── name: :Foo ├── @ CallNode (location: (19,0)-(19,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -149,10 +149,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── operator_loc: (19,4)-(19,5) = "&" │ ├── flags: ∅ - │ └── name: "Foo" + │ └── name: :Foo ├── @ CallNode (location: (21,0)-(21,13)) │ ├── receiver: │ │ @ ConstantReadNode (location: (21,0)-(21,3)) @@ -175,11 +175,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "Bar" + │ └── name: :Bar ├── @ CallNode (location: (23,0)-(23,14)) │ ├── receiver: │ │ @ ConstantReadNode (location: (23,0)-(23,3)) @@ -203,12 +203,12 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── operator_loc: (23,9)-(23,11) = "**" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "Bar" + │ └── name: :Bar ├── @ CallNode (location: (25,0)-(25,13)) │ ├── receiver: │ │ @ ConstantReadNode (location: (25,0)-(25,3)) @@ -230,10 +230,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── operator_loc: (25,9)-(25,10) = "&" │ ├── flags: ∅ - │ └── name: "Bar" + │ └── name: :Bar ├── @ CallNode (location: (27,0)-(27,8)) │ ├── receiver: │ │ @ ConstantPathNode (location: (27,0)-(27,3)) @@ -249,7 +249,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ ConstantPathWriteNode (location: (29,0)-(29,7)) │ ├── target: │ │ @ ConstantPathNode (location: (29,0)-(29,3)) @@ -309,7 +309,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "false" + │ └── name: :false ├── @ CallNode (location: (39,0)-(39,10)) │ ├── receiver: │ │ @ ConstantPathNode (location: (39,0)-(39,4)) @@ -327,7 +327,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "true" + │ └── name: :true ├── @ CallNode (location: (41,0)-(41,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (41,0)-(41,1)) @@ -339,7 +339,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "&" + │ └── name: :& ├── @ CallNode (location: (43,0)-(43,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (43,0)-(43,1)) @@ -351,7 +351,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "`" + │ └── name: :` ├── @ CallNode (location: (45,0)-(45,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (45,0)-(45,1)) @@ -363,7 +363,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (47,0)-(47,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (47,0)-(47,1)) @@ -375,7 +375,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!=" + │ └── name: :!= ├── @ CallNode (location: (49,0)-(49,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (49,0)-(49,1)) @@ -387,7 +387,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "^" + │ └── name: :^ ├── @ CallNode (location: (51,0)-(51,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (51,0)-(51,1)) @@ -399,7 +399,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "==" + │ └── name: :== ├── @ CallNode (location: (53,0)-(53,6)) │ ├── receiver: │ │ @ ConstantReadNode (location: (53,0)-(53,1)) @@ -411,7 +411,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "===" + │ └── name: :=== ├── @ CallNode (location: (55,0)-(55,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (55,0)-(55,1)) @@ -423,7 +423,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "=~" + │ └── name: :=~ ├── @ CallNode (location: (57,0)-(57,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (57,0)-(57,1)) @@ -435,7 +435,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: ">" + │ └── name: :> ├── @ CallNode (location: (59,0)-(59,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (59,0)-(59,1)) @@ -447,7 +447,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: ">=" + │ └── name: :>= ├── @ CallNode (location: (61,0)-(61,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (61,0)-(61,1)) @@ -459,7 +459,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: ">>" + │ └── name: :>> ├── @ CallNode (location: (63,0)-(63,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (63,0)-(63,1)) @@ -471,7 +471,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<<" + │ └── name: :<< ├── @ ConstantPathNode (location: (65,0)-(67,1)) │ ├── parent: │ │ @ ConstantReadNode (location: (65,0)-(65,1)) @@ -491,7 +491,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "alias" + │ └── name: :alias ├── @ CallNode (location: (71,0)-(71,6)) │ ├── receiver: │ │ @ ConstantReadNode (location: (71,0)-(71,1)) @@ -503,7 +503,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "and" + │ └── name: :and ├── @ CallNode (location: (73,0)-(73,8)) │ ├── receiver: │ │ @ ConstantReadNode (location: (73,0)-(73,1)) @@ -515,7 +515,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "begin" + │ └── name: :begin ├── @ ConstantPathNode (location: (75,0)-(75,8)) │ ├── parent: │ │ @ ConstantReadNode (location: (75,0)-(75,1)) @@ -535,7 +535,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "break" + │ └── name: :break ├── @ CallNode (location: (79,0)-(79,8)) │ ├── receiver: │ │ @ ConstantReadNode (location: (79,0)-(79,1)) @@ -547,7 +547,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "class" + │ └── name: :class ├── @ CallNode (location: (81,0)-(81,6)) │ ├── receiver: │ │ @ ConstantReadNode (location: (81,0)-(81,1)) @@ -559,7 +559,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "def" + │ └── name: :def ├── @ CallNode (location: (83,0)-(83,10)) │ ├── receiver: │ │ @ ConstantReadNode (location: (83,0)-(83,1)) @@ -571,7 +571,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "defined" + │ └── name: :defined ├── @ CallNode (location: (85,0)-(85,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (85,0)-(85,1)) @@ -583,7 +583,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "do" + │ └── name: :do ├── @ CallNode (location: (87,0)-(87,7)) │ ├── receiver: │ │ @ ConstantReadNode (location: (87,0)-(87,1)) @@ -595,7 +595,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "else" + │ └── name: :else ├── @ CallNode (location: (89,0)-(89,8)) │ ├── receiver: │ │ @ ConstantReadNode (location: (89,0)-(89,1)) @@ -607,7 +607,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "elsif" + │ └── name: :elsif ├── @ CallNode (location: (91,0)-(91,6)) │ ├── receiver: │ │ @ ConstantReadNode (location: (91,0)-(91,1)) @@ -619,7 +619,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "end" + │ └── name: :end ├── @ ConstantPathNode (location: (93,0)-(93,6)) │ ├── parent: │ │ @ ConstantReadNode (location: (93,0)-(93,1)) @@ -639,7 +639,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "ensure" + │ └── name: :ensure ├── @ CallNode (location: (97,0)-(97,8)) │ ├── receiver: │ │ @ ConstantReadNode (location: (97,0)-(97,1)) @@ -651,7 +651,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "false" + │ └── name: :false ├── @ CallNode (location: (99,0)-(99,6)) │ ├── receiver: │ │ @ ConstantReadNode (location: (99,0)-(99,1)) @@ -663,7 +663,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "for" + │ └── name: :for ├── @ CallNode (location: (101,0)-(101,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (101,0)-(101,1)) @@ -675,7 +675,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "if" + │ └── name: :if ├── @ CallNode (location: (103,0)-(103,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (103,0)-(103,1)) @@ -687,7 +687,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "in" + │ └── name: :in ├── @ CallNode (location: (105,0)-(105,7)) │ ├── receiver: │ │ @ ConstantReadNode (location: (105,0)-(105,1)) @@ -699,7 +699,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "next" + │ └── name: :next ├── @ CallNode (location: (107,0)-(107,6)) │ ├── receiver: │ │ @ ConstantReadNode (location: (107,0)-(107,1)) @@ -711,7 +711,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "nil" + │ └── name: :nil ├── @ CallNode (location: (109,0)-(109,6)) │ ├── receiver: │ │ @ ConstantReadNode (location: (109,0)-(109,1)) @@ -723,7 +723,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "not" + │ └── name: :not ├── @ CallNode (location: (111,0)-(111,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (111,0)-(111,1)) @@ -735,7 +735,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "or" + │ └── name: :or ├── @ CallNode (location: (113,0)-(113,7)) │ ├── receiver: │ │ @ ConstantReadNode (location: (113,0)-(113,1)) @@ -747,7 +747,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "redo" + │ └── name: :redo ├── @ CallNode (location: (115,0)-(115,9)) │ ├── receiver: │ │ @ ConstantReadNode (location: (115,0)-(115,1)) @@ -759,7 +759,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "rescue" + │ └── name: :rescue ├── @ CallNode (location: (117,0)-(117,8)) │ ├── receiver: │ │ @ ConstantReadNode (location: (117,0)-(117,1)) @@ -771,7 +771,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "retry" + │ └── name: :retry ├── @ CallNode (location: (119,0)-(119,9)) │ ├── receiver: │ │ @ ConstantReadNode (location: (119,0)-(119,1)) @@ -783,7 +783,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "return" + │ └── name: :return ├── @ CallNode (location: (121,0)-(121,7)) │ ├── receiver: │ │ @ ConstantReadNode (location: (121,0)-(121,1)) @@ -795,7 +795,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "self" + │ └── name: :self ├── @ CallNode (location: (123,0)-(123,8)) │ ├── receiver: │ │ @ ConstantReadNode (location: (123,0)-(123,1)) @@ -807,7 +807,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "super" + │ └── name: :super ├── @ CallNode (location: (125,0)-(125,7)) │ ├── receiver: │ │ @ ConstantReadNode (location: (125,0)-(125,1)) @@ -819,7 +819,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "then" + │ └── name: :then ├── @ CallNode (location: (127,0)-(127,7)) │ ├── receiver: │ │ @ ConstantReadNode (location: (127,0)-(127,1)) @@ -831,7 +831,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "true" + │ └── name: :true ├── @ CallNode (location: (129,0)-(129,8)) │ ├── receiver: │ │ @ ConstantReadNode (location: (129,0)-(129,1)) @@ -843,7 +843,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "undef" + │ └── name: :undef ├── @ CallNode (location: (131,0)-(131,9)) │ ├── receiver: │ │ @ ConstantReadNode (location: (131,0)-(131,1)) @@ -855,7 +855,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "unless" + │ └── name: :unless ├── @ CallNode (location: (133,0)-(133,8)) │ ├── receiver: │ │ @ ConstantReadNode (location: (133,0)-(133,1)) @@ -867,7 +867,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "until" + │ └── name: :until ├── @ CallNode (location: (135,0)-(135,7)) │ ├── receiver: │ │ @ ConstantReadNode (location: (135,0)-(135,1)) @@ -879,7 +879,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "when" + │ └── name: :when ├── @ CallNode (location: (137,0)-(137,8)) │ ├── receiver: │ │ @ ConstantReadNode (location: (137,0)-(137,1)) @@ -891,7 +891,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "while" + │ └── name: :while ├── @ CallNode (location: (139,0)-(139,8)) │ ├── receiver: │ │ @ ConstantReadNode (location: (139,0)-(139,1)) @@ -903,7 +903,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "yield" + │ └── name: :yield ├── @ CallNode (location: (141,0)-(141,15)) │ ├── receiver: │ │ @ ConstantReadNode (location: (141,0)-(141,1)) @@ -915,7 +915,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "__ENCODING__" + │ └── name: :__ENCODING__ ├── @ CallNode (location: (143,0)-(143,11)) │ ├── receiver: │ │ @ ConstantReadNode (location: (143,0)-(143,1)) @@ -927,7 +927,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "__FILE__" + │ └── name: :__FILE__ ├── @ CallNode (location: (145,0)-(145,11)) │ ├── receiver: │ │ @ ConstantReadNode (location: (145,0)-(145,1)) @@ -939,7 +939,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "__LINE__" + │ └── name: :__LINE__ ├── @ CallNode (location: (147,0)-(147,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (147,0)-(147,1)) @@ -951,7 +951,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<" + │ └── name: :< ├── @ CallNode (location: (149,0)-(149,6)) │ ├── receiver: │ │ @ ConstantReadNode (location: (149,0)-(149,1)) @@ -963,7 +963,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<=>" + │ └── name: :<=> ├── @ CallNode (location: (151,0)-(151,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (151,0)-(151,1)) @@ -975,7 +975,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<<" + │ └── name: :<< ├── @ CallNode (location: (153,0)-(153,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (153,0)-(153,1)) @@ -987,7 +987,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "-" + │ └── name: :- ├── @ CallNode (location: (155,0)-(155,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (155,0)-(155,1)) @@ -999,7 +999,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "%" + │ └── name: :% ├── @ CallNode (location: (157,0)-(157,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (157,0)-(157,1)) @@ -1019,11 +1019,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "i" + │ │ └── name: :i │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "%" + │ └── name: :% ├── @ CallNode (location: (159,0)-(159,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (159,0)-(159,1)) @@ -1043,11 +1043,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "w" + │ │ └── name: :w │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "%" + │ └── name: :% ├── @ CallNode (location: (161,0)-(161,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (161,0)-(161,1)) @@ -1067,11 +1067,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "x" + │ │ └── name: :x │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "%" + │ └── name: :% ├── @ CallNode (location: (163,0)-(163,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (163,0)-(163,1)) @@ -1087,7 +1087,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "%" + │ └── name: :% ├── @ CallNode (location: (165,0)-(165,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (165,0)-(165,1)) @@ -1103,7 +1103,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "%" + │ └── name: :% ├── @ CallNode (location: (167,0)-(167,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (167,0)-(167,1)) @@ -1115,7 +1115,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "|" + │ └── name: :| ├── @ CallNode (location: (169,0)-(169,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (169,0)-(169,1)) @@ -1127,7 +1127,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ CallNode (location: (171,0)-(171,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (171,0)-(171,1)) @@ -1139,7 +1139,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "/" + │ └── name: :/ ├── @ CallNode (location: (173,0)-(173,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (173,0)-(173,1)) @@ -1151,7 +1151,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "*" + │ └── name: :* ├── @ CallNode (location: (175,0)-(175,5)) │ ├── receiver: │ │ @ ConstantReadNode (location: (175,0)-(175,1)) @@ -1163,7 +1163,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "**" + │ └── name: :** ├── @ CallNode (location: (177,0)-(177,4)) │ ├── receiver: │ │ @ ConstantReadNode (location: (177,0)-(177,1)) @@ -1175,7 +1175,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "~" + │ └── name: :~ ├── @ ConstantPathNode (location: (179,0)-(180,1)) │ ├── parent: │ │ @ CallNode (location: (179,0)-(179,4)) @@ -1189,7 +1189,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "_" + │ │ └── name: :_ │ ├── child: │ │ @ ConstantReadNode (location: (180,0)-(180,1)) │ │ └── name: :C @@ -1207,7 +1207,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "_" + │ └── name: :_ ├── right: │ @ CallNode (location: (184,0)-(184,10)) │ ├── receiver: @@ -1220,6 +1220,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "__END__" + │ └── name: :__END__ ├── operator_loc: (182,4)-(182,6) = ".." └── flags: ∅ diff --git a/test/prism/snapshots/dash_heredocs.txt b/test/prism/snapshots/dash_heredocs.txt index 929aa6c067..096ca385ed 100644 --- a/test/prism/snapshots/dash_heredocs.txt +++ b/test/prism/snapshots/dash_heredocs.txt @@ -32,7 +32,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ InterpolatedXStringNode (location: (11,0)-(11,8)) │ ├── opening_loc: (11,0)-(11,8) = "<<-`EOF`" │ ├── parts: (length: 3) @@ -56,7 +56,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── closing_loc: (13,3)-(13,4) = "}" │ │ └── @ StringNode (location: (13,4)-(13,0)) │ │ ├── flags: ∅ @@ -100,7 +100,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── closing_loc: (27,3)-(27,4) = "}" │ │ └── @ StringNode (location: (27,4)-(27,0)) │ │ ├── flags: ∅ @@ -132,7 +132,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── closing_loc: (32,3)-(32,4) = "}" │ │ └── @ StringNode (location: (32,4)-(32,0)) │ │ ├── flags: ∅ @@ -206,7 +206,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ └── @ CallNode (location: (57,0)-(57,11)) ├── receiver: │ @ StringNode (location: (57,0)-(57,4)) @@ -248,4 +248,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "+" + └── name: :+ diff --git a/test/prism/snapshots/defined.txt b/test/prism/snapshots/defined.txt index c6537b860c..1bedb73977 100644 --- a/test/prism/snapshots/defined.txt +++ b/test/prism/snapshots/defined.txt @@ -49,7 +49,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── right: │ │ │ @ CallNode (location: (5,17)-(5,20)) │ │ │ ├── receiver: ∅ @@ -60,7 +60,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── operator_loc: (5,13)-(5,16) = "and" │ ├── rparen_loc: (5,20)-(5,21) = ")" │ └── keyword_loc: (5,0)-(5,8) = "defined?" diff --git a/test/prism/snapshots/dos_endings.txt b/test/prism/snapshots/dos_endings.txt index fd9bc95609..73390ffad1 100644 --- a/test/prism/snapshots/dos_endings.txt +++ b/test/prism/snapshots/dos_endings.txt @@ -29,7 +29,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "puts" + │ └── name: :puts ├── @ ArrayNode (location: (4,0)-(5,2)) │ ├── elements: (length: 1) │ │ └── @ SymbolNode (location: (4,3)-(5,1)) @@ -85,9 +85,9 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "chop" + │ │ └── name: :chop │ ├── closing_loc: (17,19)-(17,20) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo └── operator_loc: (17,2)-(17,3) = "=" diff --git a/test/prism/snapshots/endless_methods.txt b/test/prism/snapshots/endless_methods.txt index 36d52673a8..eb9f830885 100644 --- a/test/prism/snapshots/endless_methods.txt +++ b/test/prism/snapshots/endless_methods.txt @@ -45,7 +45,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "A" + │ │ └── name: :A │ ├── locals: [] │ ├── def_keyword_loc: (3,0)-(3,3) = "def" │ ├── operator_loc: ∅ @@ -78,7 +78,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+" + │ │ └── name: :+ │ ├── call_operator_loc: ∅ │ ├── message_loc: (5,19)-(5,20) = "+" │ ├── opening_loc: ∅ @@ -90,7 +90,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── locals: [] ├── def_keyword_loc: (5,0)-(5,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/hashes.txt b/test/prism/snapshots/hashes.txt index ea8400635b..452747acc0 100644 --- a/test/prism/snapshots/hashes.txt +++ b/test/prism/snapshots/hashes.txt @@ -25,7 +25,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── value: │ │ │ │ @ CallNode (location: (6,7)-(6,8)) │ │ │ │ ├── receiver: ∅ @@ -36,7 +36,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── operator_loc: (6,4)-(6,6) = "=>" │ │ └── @ AssocNode (location: (6,10)-(6,16)) │ │ ├── key: @@ -49,7 +49,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ ├── value: │ │ │ @ CallNode (location: (6,15)-(6,16)) │ │ │ ├── receiver: ∅ @@ -60,7 +60,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ └── operator_loc: (6,12)-(6,14) = "=>" │ └── closing_loc: (6,17)-(6,18) = "}" ├── @ HashNode (location: (8,0)-(8,15)) @@ -77,7 +77,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── value: │ │ │ │ @ CallNode (location: (8,7)-(8,8)) │ │ │ │ ├── receiver: ∅ @@ -88,7 +88,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── operator_loc: (8,4)-(8,6) = "=>" │ │ └── @ AssocSplatNode (location: (8,10)-(8,13)) │ │ ├── value: @@ -101,7 +101,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ └── operator_loc: (8,10)-(8,12) = "**" │ └── closing_loc: (8,14)-(8,15) = "}" ├── @ HashNode (location: (10,0)-(16,5)) @@ -124,7 +124,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── operator_loc: ∅ │ │ └── @ AssocNode (location: (12,6)-(12,10)) │ │ ├── key: @@ -143,7 +143,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ └── operator_loc: ∅ │ └── closing_loc: (16,4)-(16,5) = "}" ├── @ HashNode (location: (18,0)-(18,25)) @@ -166,7 +166,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── operator_loc: ∅ │ │ ├── @ AssocNode (location: (18,8)-(18,12)) │ │ │ ├── key: @@ -185,7 +185,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "d" + │ │ │ │ └── name: :d │ │ │ └── operator_loc: ∅ │ │ ├── @ AssocSplatNode (location: (18,14)-(18,17)) │ │ │ ├── value: @@ -198,7 +198,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "e" + │ │ │ │ └── name: :e │ │ │ └── operator_loc: (18,14)-(18,16) = "**" │ │ └── @ AssocNode (location: (18,19)-(18,23)) │ │ ├── key: @@ -217,7 +217,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "g" + │ │ │ └── name: :g │ │ └── operator_loc: ∅ │ └── closing_loc: (18,24)-(18,25) = "}" ├── @ HashNode (location: (20,0)-(20,12)) @@ -242,7 +242,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "b?" + │ │ │ │ └── name: :b? │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (20,7)-(20,8) = "!" │ │ │ ├── opening_loc: ∅ @@ -250,7 +250,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "!" + │ │ │ └── name: :! │ │ └── operator_loc: ∅ │ └── closing_loc: (20,11)-(20,12) = "}" ├── @ LocalVariableWriteNode (location: (22,0)-(22,5)) @@ -333,7 +333,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ └── operator_loc: ∅ │ │ │ └── @ AssocNode (location: (25,16)-(25,18)) │ │ │ ├── key: @@ -352,4 +352,4 @@ │ ├── opening_loc: (23,4)-(23,6) = "do" │ └── closing_loc: (26,0)-(26,3) = "end" ├── flags: ∅ - └── name: "tap" + └── name: :tap diff --git a/test/prism/snapshots/heredoc_with_escaped_newline_at_start.txt b/test/prism/snapshots/heredoc_with_escaped_newline_at_start.txt index c4ec0d86ce..e158069bb6 100644 --- a/test/prism/snapshots/heredoc_with_escaped_newline_at_start.txt +++ b/test/prism/snapshots/heredoc_with_escaped_newline_at_start.txt @@ -32,7 +32,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "gsub" + │ └── name: :gsub └── @ CallNode (location: (5,0)-(5,25)) ├── receiver: │ @ StringNode (location: (5,0)-(5,9)) @@ -62,4 +62,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "gsub" + └── name: :gsub diff --git a/test/prism/snapshots/if.txt b/test/prism/snapshots/if.txt index 541549459f..66eb049023 100644 --- a/test/prism/snapshots/if.txt +++ b/test/prism/snapshots/if.txt @@ -129,7 +129,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "exit_loop" + │ │ └── name: :exit_loop │ ├── statements: │ │ @ StatementsNode (location: (16,18)-(16,26)) │ │ └── body: (length: 1) @@ -154,7 +154,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── statements: │ │ @ StatementsNode (location: (19,5)-(19,8)) │ │ └── body: (length: 1) @@ -167,7 +167,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── consequent: ∅ │ └── end_keyword_loc: (20,0)-(20,3) = "end" ├── @ IfNode (location: (22,0)-(22,11)) @@ -182,7 +182,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── statements: │ │ @ StatementsNode (location: (22,0)-(22,6)) │ │ └── body: (length: 1) @@ -198,7 +198,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── statements: │ │ │ @ StatementsNode (location: (22,0)-(22,1)) │ │ │ └── body: (length: 1) @@ -211,7 +211,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── consequent: ∅ │ │ └── end_keyword_loc: ∅ │ ├── consequent: ∅ @@ -252,12 +252,12 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── operator_loc: ∅ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "a" + │ │ └── name: :a │ ├── consequent: │ │ @ ElseNode (location: (26,0)-(27,3)) │ │ ├── else_keyword_loc: (26,0)-(26,4) = "else" @@ -278,7 +278,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "type" + │ │ │ └── name: :type │ │ ├── pattern: │ │ │ @ IntegerNode (location: (29,11)-(29,12)) │ │ │ └── flags: decimal @@ -299,7 +299,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "type" + │ │ │ │ └── name: :type │ │ │ ├── pattern: │ │ │ │ @ ConstantReadNode (location: (30,14)-(30,15)) │ │ │ │ └── name: :B @@ -346,7 +346,7 @@ │ │ ├── opening_loc: (34,9)-(34,11) = "do" │ │ └── closing_loc: (35,2)-(35,5) = "end" │ ├── flags: ∅ - │ └── name: "lambda" + │ └── name: :lambda ├── consequent: │ @ IfNode (location: (36,0)-(42,3)) │ ├── if_keyword_loc: (36,0)-(36,5) = "elsif" @@ -386,7 +386,7 @@ │ │ │ ├── opening_loc: (37,9)-(37,11) = "do" │ │ │ └── closing_loc: (38,2)-(38,5) = "end" │ │ ├── flags: ∅ - │ │ └── name: "lambda" + │ │ └── name: :lambda │ ├── consequent: │ │ @ ElseNode (location: (39,0)-(42,3)) │ │ ├── else_keyword_loc: (39,0)-(39,4) = "else" @@ -423,7 +423,7 @@ │ │ │ │ ├── opening_loc: (40,9)-(40,11) = "do" │ │ │ │ └── closing_loc: (41,2)-(41,5) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "lambda" + │ │ │ └── name: :lambda │ │ └── end_keyword_loc: (42,0)-(42,3) = "end" │ └── end_keyword_loc: (42,0)-(42,3) = "end" └── end_keyword_loc: (42,0)-(42,3) = "end" diff --git a/test/prism/snapshots/integer_operations.txt b/test/prism/snapshots/integer_operations.txt index 74f02b9600..a28158d63e 100644 --- a/test/prism/snapshots/integer_operations.txt +++ b/test/prism/snapshots/integer_operations.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (3,0)-(3,2)) │ ├── receiver: │ │ @ IntegerNode (location: (3,1)-(3,2)) @@ -26,7 +26,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "~" + │ └── name: :~ ├── @ CallNode (location: (5,0)-(5,6)) │ ├── receiver: │ │ @ IntegerNode (location: (5,0)-(5,1)) @@ -42,7 +42,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!=" + │ └── name: :!= ├── @ CallNode (location: (7,0)-(7,6)) │ ├── receiver: │ │ @ IntegerNode (location: (7,0)-(7,1)) @@ -58,7 +58,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!~" + │ └── name: :!~ ├── @ CallNode (location: (9,0)-(9,5)) │ ├── receiver: │ │ @ IntegerNode (location: (9,0)-(9,1)) @@ -74,7 +74,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "%" + │ └── name: :% ├── @ CallNode (location: (11,0)-(11,5)) │ ├── receiver: │ │ @ IntegerNode (location: (11,0)-(11,1)) @@ -90,7 +90,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "&" + │ └── name: :& ├── @ CallNode (location: (13,0)-(13,5)) │ ├── receiver: │ │ @ IntegerNode (location: (13,0)-(13,1)) @@ -106,7 +106,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "*" + │ └── name: :* ├── @ CallNode (location: (15,0)-(15,4)) │ ├── receiver: │ │ @ IntegerNode (location: (15,0)-(15,1)) @@ -122,7 +122,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "**" + │ └── name: :** ├── @ CallNode (location: (17,0)-(17,5)) │ ├── receiver: │ │ @ IntegerNode (location: (17,0)-(17,1)) @@ -138,7 +138,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ CallNode (location: (19,0)-(19,5)) │ ├── receiver: │ │ @ IntegerNode (location: (19,0)-(19,1)) @@ -154,7 +154,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "-" + │ └── name: :- ├── @ CallNode (location: (21,0)-(21,5)) │ ├── receiver: │ │ @ IntegerNode (location: (21,0)-(21,1)) @@ -170,7 +170,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "/" + │ └── name: :/ ├── @ CallNode (location: (23,0)-(23,5)) │ ├── receiver: │ │ @ CallNode (location: (23,0)-(23,3)) @@ -188,7 +188,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "/" + │ │ └── name: :/ │ ├── call_operator_loc: ∅ │ ├── message_loc: (23,3)-(23,4) = "/" │ ├── opening_loc: ∅ @@ -200,7 +200,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "/" + │ └── name: :/ ├── @ CallNode (location: (25,0)-(25,5)) │ ├── receiver: │ │ @ IntegerNode (location: (25,0)-(25,1)) @@ -216,7 +216,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<" + │ └── name: :< ├── @ CallNode (location: (27,0)-(27,6)) │ ├── receiver: │ │ @ IntegerNode (location: (27,0)-(27,1)) @@ -232,7 +232,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<<" + │ └── name: :<< ├── @ CallNode (location: (29,0)-(29,6)) │ ├── receiver: │ │ @ IntegerNode (location: (29,0)-(29,1)) @@ -248,7 +248,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<=" + │ └── name: :<= ├── @ CallNode (location: (31,0)-(31,7)) │ ├── receiver: │ │ @ IntegerNode (location: (31,0)-(31,1)) @@ -264,7 +264,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<=>" + │ └── name: :<=> ├── @ CallNode (location: (33,0)-(33,6)) │ ├── receiver: │ │ @ IntegerNode (location: (33,0)-(33,1)) @@ -280,7 +280,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "==" + │ └── name: :== ├── @ CallNode (location: (35,0)-(35,7)) │ ├── receiver: │ │ @ IntegerNode (location: (35,0)-(35,1)) @@ -296,7 +296,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "===" + │ └── name: :=== ├── @ CallNode (location: (37,0)-(37,6)) │ ├── receiver: │ │ @ IntegerNode (location: (37,0)-(37,1)) @@ -312,7 +312,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "=~" + │ └── name: :=~ ├── @ CallNode (location: (39,0)-(39,5)) │ ├── receiver: │ │ @ IntegerNode (location: (39,0)-(39,1)) @@ -328,7 +328,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: ">" + │ └── name: :> ├── @ CallNode (location: (41,0)-(41,6)) │ ├── receiver: │ │ @ IntegerNode (location: (41,0)-(41,1)) @@ -344,7 +344,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: ">=" + │ └── name: :>= ├── @ CallNode (location: (43,0)-(43,6)) │ ├── receiver: │ │ @ IntegerNode (location: (43,0)-(43,1)) @@ -360,7 +360,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: ">>" + │ └── name: :>> ├── @ CallNode (location: (45,0)-(45,5)) │ ├── receiver: │ │ @ IntegerNode (location: (45,0)-(45,1)) @@ -376,7 +376,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "^" + │ └── name: :^ ├── @ CallNode (location: (47,0)-(47,5)) │ ├── receiver: │ │ @ IntegerNode (location: (47,0)-(47,1)) @@ -392,7 +392,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "|" + │ └── name: :| ├── @ AndNode (location: (49,0)-(49,6)) │ ├── left: │ │ @ IntegerNode (location: (49,0)-(49,1)) @@ -434,11 +434,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "**" + │ │ └── name: :** │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "*" + │ └── name: :* ├── @ CallNode (location: (55,0)-(55,9)) │ ├── receiver: │ │ @ CallNode (location: (55,0)-(55,5)) @@ -456,7 +456,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "*" + │ │ └── name: :* │ ├── call_operator_loc: ∅ │ ├── message_loc: (55,6)-(55,7) = "+" │ ├── opening_loc: ∅ @@ -468,7 +468,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ OrNode (location: (57,0)-(57,6)) │ ├── left: │ │ @ IntegerNode (location: (57,0)-(57,1)) @@ -510,11 +510,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "*" + │ │ └── name: :* │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ └── @ ParenthesesNode (location: (63,0)-(63,7)) ├── body: │ @ StatementsNode (location: (63,1)-(63,6)) @@ -534,6 +534,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── opening_loc: (63,0)-(63,1) = "(" └── closing_loc: (63,6)-(63,7) = ")" diff --git a/test/prism/snapshots/keyword_method_names.txt b/test/prism/snapshots/keyword_method_names.txt index 9ecd52585a..633f120ba0 100644 --- a/test/prism/snapshots/keyword_method_names.txt +++ b/test/prism/snapshots/keyword_method_names.txt @@ -61,7 +61,7 @@ │ │ │ │ ├── opening_loc: (8,6)-(8,8) = "do" │ │ │ │ └── closing_loc: (9,2)-(9,5) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── locals: [] │ │ ├── def_keyword_loc: (7,8)-(7,11) = "def" │ │ ├── operator_loc: ∅ @@ -72,7 +72,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "private" + │ └── name: :private ├── @ DefNode (location: (12,0)-(13,3)) │ ├── name: :m │ ├── name_loc: (12,4)-(12,5) = "m" diff --git a/test/prism/snapshots/lambda.txt b/test/prism/snapshots/lambda.txt index ed622f6739..c3fd27d36a 100644 --- a/test/prism/snapshots/lambda.txt +++ b/test/prism/snapshots/lambda.txt @@ -66,7 +66,7 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "a" + │ │ │ │ │ │ └── name: :a │ │ │ │ │ └── closing_loc: (5,11)-(5,12) = "}" │ │ │ │ └── closing_loc: (5,12)-(5,13) = "\"" │ │ │ ├── keyword_rest: ∅ @@ -104,7 +104,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "b" + │ │ │ │ │ └── name: :b │ │ │ │ ├── call_operator_loc: ∅ │ │ │ │ ├── message_loc: (7,8)-(7,9) = "*" │ │ │ │ ├── opening_loc: ∅ @@ -116,7 +116,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "*" + │ │ │ │ └── name: :* │ │ │ ├── keyword_rest: ∅ │ │ │ └── block: ∅ │ │ ├── locals: (length: 0) @@ -148,7 +148,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── rest: ∅ │ │ │ ├── posts: (length: 0) │ │ │ ├── keywords: (length: 0) @@ -185,7 +185,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── keyword_rest: ∅ │ │ └── block: ∅ │ ├── locals: (length: 0) diff --git a/test/prism/snapshots/method_calls.txt b/test/prism/snapshots/method_calls.txt index 9019ef1798..3cd12e527d 100644 --- a/test/prism/snapshots/method_calls.txt +++ b/test/prism/snapshots/method_calls.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: (1,4)-(1,7) = "bar" │ ├── opening_loc: ∅ @@ -30,7 +30,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (3,0)-(3,9)) │ ├── receiver: │ │ @ CallNode (location: (3,0)-(3,1)) @@ -42,7 +42,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (3,1)-(3,2) = "." │ ├── message_loc: (3,2)-(3,3) = "b" │ ├── opening_loc: (3,3)-(3,4) = "(" @@ -58,7 +58,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ └── @ CallNode (location: (3,7)-(3,8)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -68,11 +68,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "d" + │ │ └── name: :d │ ├── closing_loc: (3,8)-(3,9) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── @ CallNode (location: (5,0)-(5,5)) │ ├── receiver: │ │ @ CallNode (location: (5,0)-(5,1)) @@ -84,7 +84,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (5,1)-(5,2) = "." │ ├── message_loc: (5,2)-(5,3) = "b" │ ├── opening_loc: (5,3)-(5,4) = "(" @@ -92,7 +92,7 @@ │ ├── closing_loc: (5,4)-(5,5) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── @ CallNode (location: (7,0)-(9,7)) │ ├── receiver: │ │ @ CallNode (location: (7,0)-(8,6)) @@ -106,7 +106,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: (8,2)-(8,3) = "." │ │ ├── message_loc: (8,3)-(8,6) = "bar" │ │ ├── opening_loc: ∅ @@ -114,7 +114,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── call_operator_loc: (9,2)-(9,4) = "&." │ ├── message_loc: (9,4)-(9,7) = "baz" │ ├── opening_loc: ∅ @@ -122,7 +122,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "baz" + │ └── name: :baz ├── @ CallNode (location: (11,0)-(11,2)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -132,7 +132,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a!" + │ └── name: :a! ├── @ CallNode (location: (13,0)-(13,4)) │ ├── receiver: │ │ @ CallNode (location: (13,0)-(13,1)) @@ -144,7 +144,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (13,1)-(13,2) = "." │ ├── message_loc: ∅ │ ├── opening_loc: (13,2)-(13,3) = "(" @@ -152,7 +152,7 @@ │ ├── closing_loc: (13,3)-(13,4) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "call" + │ └── name: :call ├── @ CallNode (location: (15,0)-(15,11)) │ ├── receiver: │ │ @ CallNode (location: (15,0)-(15,1)) @@ -164,7 +164,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (15,1)-(15,2) = "." │ ├── message_loc: ∅ │ ├── opening_loc: (15,2)-(15,3) = "(" @@ -180,7 +180,7 @@ │ ├── closing_loc: (15,10)-(15,11) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "call" + │ └── name: :call ├── @ CallNode (location: (17,0)-(17,4)) │ ├── receiver: │ │ @ CallNode (location: (17,0)-(17,1)) @@ -192,7 +192,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (17,1)-(17,3) = "::" │ ├── message_loc: (17,3)-(17,4) = "b" │ ├── opening_loc: ∅ @@ -200,7 +200,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── @ CallNode (location: (19,0)-(19,6)) │ ├── receiver: │ │ @ CallNode (location: (19,0)-(19,1)) @@ -212,7 +212,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (19,1)-(19,3) = "::" │ ├── message_loc: (19,3)-(19,4) = "b" │ ├── opening_loc: ∅ @@ -228,11 +228,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── @ CallNode (location: (21,0)-(21,11)) │ ├── receiver: │ │ @ CallNode (location: (21,0)-(21,3)) @@ -244,7 +244,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (21,3)-(21,4) = "." │ ├── message_loc: (21,4)-(21,7) = "bar" │ ├── opening_loc: ∅ @@ -256,7 +256,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar=" + │ └── name: :bar= ├── @ CallNode (location: (23,0)-(23,2)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -266,7 +266,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a?" + │ └── name: :a? ├── @ CallNode (location: (25,0)-(25,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -286,10 +286,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "block" + │ │ │ └── name: :block │ │ └── operator_loc: (25,2)-(25,3) = "&" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (27,0)-(27,11)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -311,12 +311,12 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "kwargs" + │ │ │ └── name: :kwargs │ │ └── operator_loc: (27,2)-(27,4) = "**" │ ├── closing_loc: (27,10)-(27,11) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (29,0)-(29,5)) │ ├── receiver: │ │ @ CallNode (location: (29,0)-(29,3)) @@ -330,7 +330,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── call_operator_loc: (29,1)-(29,2) = "." │ │ ├── message_loc: (29,2)-(29,3) = "b" │ │ ├── opening_loc: ∅ @@ -338,7 +338,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── call_operator_loc: (29,3)-(29,4) = "." │ ├── message_loc: (29,4)-(29,5) = "c" │ ├── opening_loc: ∅ @@ -346,7 +346,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "c" + │ └── name: :c ├── @ CallNode (location: (31,0)-(31,7)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -364,7 +364,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ CallNode (location: (31,5)-(31,6)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -374,11 +374,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── closing_loc: (31,6)-(31,7) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (33,0)-(33,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -388,7 +388,7 @@ │ ├── closing_loc: (33,2)-(33,3) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (35,0)-(35,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -409,11 +409,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "args" + │ │ └── name: :args │ ├── closing_loc: (35,7)-(35,8) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (37,0)-(37,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -431,7 +431,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ CallNode (location: (37,5)-(37,6)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -441,11 +441,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (39,0)-(39,8)) │ ├── receiver: │ │ @ CallNode (location: (39,0)-(39,1)) @@ -457,7 +457,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (39,1)-(39,2) = "." │ ├── message_loc: (39,2)-(39,3) = "b" │ ├── opening_loc: ∅ @@ -473,7 +473,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ └── @ CallNode (location: (39,7)-(39,8)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -483,11 +483,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "d" + │ │ └── name: :d │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── @ MultiWriteNode (location: (41,0)-(41,23)) │ ├── targets: (length: 2) │ │ ├── @ CallNode (location: (41,0)-(41,7)) @@ -501,7 +501,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ ├── call_operator_loc: (41,3)-(41,4) = "." │ │ │ ├── message_loc: (41,4)-(41,7) = "foo" │ │ │ ├── opening_loc: ∅ @@ -509,7 +509,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "foo=" + │ │ │ └── name: :foo= │ │ └── @ CallNode (location: (41,9)-(41,16)) │ │ ├── receiver: │ │ │ @ CallNode (location: (41,9)-(41,12)) @@ -521,7 +521,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── call_operator_loc: (41,12)-(41,13) = "." │ │ ├── message_loc: (41,13)-(41,16) = "bar" │ │ ├── opening_loc: ∅ @@ -529,7 +529,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar=" + │ │ └── name: :bar= │ ├── lparen_loc: ∅ │ ├── rparen_loc: ∅ │ ├── operator_loc: (41,17)-(41,18) = "=" @@ -553,7 +553,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (43,1)-(43,3) = "&." │ ├── message_loc: (43,3)-(43,4) = "b" │ ├── opening_loc: ∅ @@ -561,7 +561,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "b" + │ └── name: :b ├── @ CallNode (location: (45,0)-(45,5)) │ ├── receiver: │ │ @ CallNode (location: (45,0)-(45,1)) @@ -573,7 +573,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (45,1)-(45,3) = "&." │ ├── message_loc: ∅ │ ├── opening_loc: (45,3)-(45,4) = "(" @@ -581,7 +581,7 @@ │ ├── closing_loc: (45,4)-(45,5) = ")" │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "call" + │ └── name: :call ├── @ CallNode (location: (47,0)-(47,7)) │ ├── receiver: │ │ @ CallNode (location: (47,0)-(47,1)) @@ -593,7 +593,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (47,1)-(47,3) = "&." │ ├── message_loc: (47,3)-(47,4) = "b" │ ├── opening_loc: (47,4)-(47,5) = "(" @@ -609,11 +609,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── closing_loc: (47,6)-(47,7) = ")" │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "b" + │ └── name: :b ├── @ CallNode (location: (49,0)-(49,6)) │ ├── receiver: │ │ @ CallNode (location: (49,0)-(49,1)) @@ -625,7 +625,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (49,1)-(49,3) = "&." │ ├── message_loc: (49,3)-(49,4) = "b" │ ├── opening_loc: (49,4)-(49,5) = "(" @@ -633,7 +633,7 @@ │ ├── closing_loc: (49,5)-(49,6) = ")" │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "b" + │ └── name: :b ├── @ IfNode (location: (51,0)-(51,33)) │ ├── if_keyword_loc: (51,11)-(51,13) = "if" │ ├── predicate: @@ -650,7 +650,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "bar?" + │ │ │ │ └── name: :bar? │ │ │ ├── right: │ │ │ │ @ CallNode (location: (51,22)-(51,25)) │ │ │ │ ├── receiver: ∅ @@ -661,7 +661,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "baz" + │ │ │ │ └── name: :baz │ │ │ └── operator_loc: (51,19)-(51,21) = "or" │ │ ├── right: │ │ │ @ CallNode (location: (51,30)-(51,33)) @@ -673,7 +673,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "qux" + │ │ │ └── name: :qux │ │ └── operator_loc: (51,26)-(51,29) = "and" │ ├── statements: │ │ @ StatementsNode (location: (51,0)-(51,10)) @@ -699,7 +699,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── consequent: ∅ │ └── end_keyword_loc: ∅ ├── @ CallNode (location: (53,0)-(56,1)) @@ -723,7 +723,7 @@ │ ├── closing_loc: (56,0)-(56,1) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (58,0)-(58,10)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -744,11 +744,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "rest" + │ │ └── name: :rest │ ├── closing_loc: (58,9)-(58,10) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (60,0)-(60,39)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -812,7 +812,7 @@ │ │ │ └── unescaped: "bar" │ │ └── operator_loc: (60,34)-(60,35) = "&" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (62,0)-(62,49)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -865,7 +865,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "hi" + │ └── name: :hi ├── @ CallNode (location: (64,0)-(64,36)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -930,11 +930,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "puts" + │ │ │ └── name: :puts │ │ ├── opening_loc: (64,16)-(64,18) = "do" │ │ └── closing_loc: (64,33)-(64,36) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (66,0)-(66,17)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -962,7 +962,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "hi" + │ └── name: :hi ├── @ CallNode (location: (68,0)-(68,40)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1011,7 +1011,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "hi" + │ └── name: :hi ├── @ CallNode (location: (70,0)-(70,41)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1060,7 +1060,7 @@ │ ├── closing_loc: (70,40)-(70,41) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "hi" + │ └── name: :hi ├── @ CallNode (location: (72,0)-(72,35)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1104,7 +1104,7 @@ │ │ │ └── unescaped: "block" │ │ └── operator_loc: (72,28)-(72,29) = "&" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (74,0)-(74,20)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1132,7 +1132,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "hi" + │ └── name: :hi ├── @ CallNode (location: (76,0)-(78,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1154,7 +1154,7 @@ │ ├── closing_loc: (78,0)-(78,1) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (80,0)-(83,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1187,7 +1187,7 @@ │ ├── closing_loc: (83,0)-(83,1) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (85,0)-(85,11)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1205,7 +1205,7 @@ │ │ │ └── unescaped: "block" │ │ └── operator_loc: (85,4)-(85,5) = "&" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (87,0)-(87,30)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1247,7 +1247,7 @@ │ │ │ └── unescaped: "block" │ │ └── operator_loc: (87,23)-(87,24) = "&" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (89,0)-(89,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1274,7 +1274,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "some_func" + │ └── name: :some_func ├── @ CallNode (location: (91,0)-(91,18)) │ ├── receiver: │ │ @ ConstantReadNode (location: (91,0)-(91,6)) @@ -1290,7 +1290,7 @@ │ ├── closing_loc: (91,17)-(91,18) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "Integer" + │ └── name: :Integer ├── @ CallNode (location: (93,0)-(93,10)) │ ├── receiver: │ │ @ CallNode (location: (93,0)-(93,1)) @@ -1302,7 +1302,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "x" + │ │ └── name: :x │ ├── call_operator_loc: (93,1)-(93,2) = "." │ ├── message_loc: (93,2)-(93,6) = "each" │ ├── opening_loc: ∅ @@ -1316,7 +1316,7 @@ │ │ ├── opening_loc: (93,7)-(93,8) = "{" │ │ └── closing_loc: (93,9)-(93,10) = "}" │ ├── flags: ∅ - │ └── name: "each" + │ └── name: :each ├── @ CallNode (location: (95,0)-(95,14)) │ ├── receiver: │ │ @ CallNode (location: (95,0)-(95,3)) @@ -1328,7 +1328,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (95,3)-(95,4) = "." │ ├── message_loc: (95,4)-(95,7) = "map" │ ├── opening_loc: ∅ @@ -1345,7 +1345,7 @@ │ │ ├── opening_loc: (95,8)-(95,9) = "{" │ │ └── closing_loc: (95,13)-(95,14) = "}" │ ├── flags: ∅ - │ └── name: "map" + │ └── name: :map ├── @ CallNode (location: (97,0)-(97,12)) │ ├── receiver: │ │ @ ConstantPathNode (location: (97,0)-(97,4)) @@ -1370,7 +1370,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "C" + │ └── name: :C ├── @ CallNode (location: (99,0)-(99,13)) │ ├── receiver: │ │ @ ConstantPathNode (location: (99,0)-(99,4)) @@ -1395,7 +1395,7 @@ │ ├── closing_loc: (99,12)-(99,13) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "C" + │ └── name: :C ├── @ CallNode (location: (101,0)-(101,17)) │ ├── receiver: │ │ @ ConstantPathNode (location: (101,0)-(101,4)) @@ -1426,7 +1426,7 @@ │ │ ├── opening_loc: (101,14)-(101,15) = "{" │ │ └── closing_loc: (101,16)-(101,17) = "}" │ ├── flags: ∅ - │ └── name: "C" + │ └── name: :C ├── @ CallNode (location: (103,0)-(103,12)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1451,7 +1451,7 @@ │ ├── closing_loc: (103,11)-(103,12) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (105,0)-(105,28)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1496,14 +1496,14 @@ │ │ │ │ │ │ ├── opening_loc: (105,20)-(105,22) = "do" │ │ │ │ │ │ └── closing_loc: (105,23)-(105,26) = "end" │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "qux" + │ │ │ │ │ └── name: :qux │ │ │ │ └── operator_loc: ∅ │ │ │ └── closing_loc: (105,27)-(105,28) = "}" │ │ └── operator_loc: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (107,0)-(107,24)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1542,14 +1542,14 @@ │ │ │ │ │ │ ├── opening_loc: (107,16)-(107,18) = "do" │ │ │ │ │ │ └── closing_loc: (107,19)-(107,22) = "end" │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "kw" + │ │ │ │ │ └── name: :kw │ │ │ │ └── operator_loc: (107,11)-(107,13) = "**" │ │ │ └── closing_loc: (107,23)-(107,24) = "}" │ │ └── operator_loc: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (109,0)-(109,36)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1577,7 +1577,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "bar" + │ │ │ │ │ └── name: :bar │ │ │ │ ├── call_operator_loc: (109,10)-(109,11) = "." │ │ │ │ ├── message_loc: (109,11)-(109,14) = "map" │ │ │ │ ├── opening_loc: ∅ @@ -1599,7 +1599,7 @@ │ │ │ │ │ ├── opening_loc: (109,15)-(109,17) = "do" │ │ │ │ │ └── closing_loc: (109,24)-(109,27) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "map" + │ │ │ │ └── name: :map │ │ │ └── closing_loc: (109,27)-(109,28) = "}" │ │ └── closing_loc: (109,28)-(109,29) = "\"" │ ├── closing_loc: ∅ @@ -1611,7 +1611,7 @@ │ │ ├── opening_loc: (109,30)-(109,32) = "do" │ │ └── closing_loc: (109,33)-(109,36) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (111,0)-(111,28)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1646,13 +1646,13 @@ │ │ │ │ ├── opening_loc: (111,18)-(111,20) = "do" │ │ │ │ └── closing_loc: (111,21)-(111,24) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── end_keyword_loc: (111,25)-(111,28) = "end" │ │ └── name: :Bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (113,0)-(113,29)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1685,13 +1685,13 @@ │ │ │ │ ├── opening_loc: (113,19)-(113,21) = "do" │ │ │ │ └── closing_loc: (113,22)-(113,25) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── end_keyword_loc: (113,26)-(113,29) = "end" │ │ └── name: :Bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (115,0)-(115,16)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1717,13 +1717,13 @@ │ │ │ │ ├── opening_loc: (115,9)-(115,11) = "do" │ │ │ │ └── closing_loc: (115,12)-(115,15) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── opening_loc: (115,4)-(115,5) = "[" │ │ └── closing_loc: (115,15)-(115,16) = "]" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (117,0)-(117,28)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1758,7 +1758,7 @@ │ │ │ │ ├── opening_loc: (117,16)-(117,18) = "do" │ │ │ │ └── closing_loc: (117,21)-(117,24) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "times" + │ │ │ └── name: :times │ │ ├── rescue_clause: ∅ │ │ ├── else_clause: ∅ │ │ ├── ensure_clause: ∅ @@ -1766,7 +1766,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (119,0)-(124,5)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1792,7 +1792,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "x" + │ │ │ └── name: :x │ │ ├── statements: │ │ │ @ StatementsNode (location: (121,4)-(123,7)) │ │ │ └── body: (length: 1) @@ -1831,13 +1831,13 @@ │ │ │ │ ├── opening_loc: (121,8)-(121,10) = "do" │ │ │ │ └── closing_loc: (123,4)-(123,7) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── consequent: ∅ │ │ └── end_keyword_loc: (124,2)-(124,5) = "end" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (126,0)-(135,5)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1864,7 +1864,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "x" + │ │ │ │ └── name: :x │ │ │ ├── statements: │ │ │ │ @ StatementsNode (location: (128,4)-(130,7)) │ │ │ │ └── body: (length: 1) @@ -1903,7 +1903,7 @@ │ │ │ │ │ ├── opening_loc: (128,8)-(128,10) = "do" │ │ │ │ │ └── closing_loc: (130,4)-(130,7) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── flags: ∅ │ │ └── @ UntilNode (location: (132,2)-(135,5)) │ │ ├── keyword_loc: (132,2)-(132,7) = "until" @@ -1918,7 +1918,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "x" + │ │ │ └── name: :x │ │ ├── statements: │ │ │ @ StatementsNode (location: (133,4)-(134,7)) │ │ │ └── body: (length: 1) @@ -1937,12 +1937,12 @@ │ │ │ │ ├── opening_loc: (133,8)-(133,10) = "do" │ │ │ │ └── closing_loc: (134,4)-(134,7) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── flags: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (137,0)-(137,9)) │ ├── receiver: │ │ @ HashNode (location: (137,0)-(137,2)) @@ -1970,11 +1970,11 @@ │ │ │ ├── opening_loc: (137,7)-(137,8) = "{" │ │ │ └── closing_loc: (137,8)-(137,9) = "}" │ │ ├── flags: ∅ - │ │ └── name: "A" + │ │ └── name: :A │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ CallNode (location: (139,0)-(139,16)) │ ├── receiver: │ │ @ HashNode (location: (139,0)-(139,2)) @@ -2022,11 +2022,11 @@ │ │ │ ├── opening_loc: (139,7)-(139,8) = "{" │ │ │ └── closing_loc: (139,15)-(139,16) = "}" │ │ ├── flags: ∅ - │ │ └── name: "A" + │ │ └── name: :A │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ CallNode (location: (141,0)-(141,11)) │ ├── receiver: │ │ @ CallNode (location: (141,0)-(141,4)) @@ -2044,7 +2044,7 @@ │ │ │ ├── opening_loc: (141,2)-(141,3) = "{" │ │ │ └── closing_loc: (141,3)-(141,4) = "}" │ │ ├── flags: ∅ - │ │ └── name: "A" + │ │ └── name: :A │ ├── call_operator_loc: ∅ │ ├── message_loc: (141,5)-(141,6) = "+" │ ├── opening_loc: ∅ @@ -2066,11 +2066,11 @@ │ │ │ ├── opening_loc: (141,9)-(141,10) = "{" │ │ │ └── closing_loc: (141,10)-(141,11) = "}" │ │ ├── flags: ∅ - │ │ └── name: "A" + │ │ └── name: :A │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ CallNode (location: (143,0)-(143,11)) │ ├── receiver: │ │ @ CallNode (location: (143,0)-(143,3)) @@ -2082,7 +2082,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "lst" + │ │ └── name: :lst │ ├── call_operator_loc: ∅ │ ├── message_loc: (143,4)-(143,6) = "<<" │ ├── opening_loc: ∅ @@ -2104,11 +2104,11 @@ │ │ │ ├── opening_loc: (143,9)-(143,10) = "{" │ │ │ └── closing_loc: (143,10)-(143,11) = "}" │ │ ├── flags: ∅ - │ │ └── name: "A" + │ │ └── name: :A │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<<" + │ └── name: :<< ├── @ InterpolatedStringNode (location: (145,0)-(145,17)) │ ├── opening_loc: (145,0)-(145,1) = "\"" │ ├── parts: (length: 1) @@ -2140,7 +2140,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "join" + │ │ │ └── name: :join │ │ └── closing_loc: (145,15)-(145,16) = "}" │ └── closing_loc: (145,16)-(145,17) = "\"" └── @ InterpolatedStringNode (location: (147,0)-(147,8)) @@ -2164,7 +2164,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "v" + │ │ │ └── name: :v │ │ ├── opening_loc: (147,3)-(147,4) = "(" │ │ └── closing_loc: (147,5)-(147,6) = ")" │ └── closing_loc: (147,6)-(147,7) = "}" diff --git a/test/prism/snapshots/methods.txt b/test/prism/snapshots/methods.txt index 7e8091b4d5..73db4ae562 100644 --- a/test/prism/snapshots/methods.txt +++ b/test/prism/snapshots/methods.txt @@ -115,7 +115,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── opening_loc: (10,4)-(10,5) = "(" │ │ └── closing_loc: (10,6)-(10,7) = ")" │ ├── parameters: ∅ @@ -142,7 +142,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── opening_loc: (13,4)-(13,5) = "(" │ │ └── closing_loc: (13,6)-(13,7) = ")" │ ├── parameters: ∅ @@ -218,7 +218,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── parameters: ∅ │ ├── body: ∅ │ ├── locals: [] @@ -911,7 +911,7 @@ │ │ ├── closing_loc: (110,13)-(110,14) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── locals: [:*] │ ├── def_keyword_loc: (110,0)-(110,3) = "def" │ ├── operator_loc: ∅ @@ -948,7 +948,7 @@ │ │ ├── closing_loc: (112,17)-(112,18) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── locals: [:"..."] │ ├── def_keyword_loc: (112,0)-(112,3) = "def" │ ├── operator_loc: ∅ @@ -989,7 +989,7 @@ │ │ ├── closing_loc: (114,23)-(114,24) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── locals: [:"..."] │ ├── def_keyword_loc: (114,0)-(114,3) = "def" │ ├── operator_loc: ∅ @@ -1017,7 +1017,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── operator_loc: (116,7)-(116,8) = "=" │ │ ├── opening_loc: (116,4)-(116,5) = "(" │ │ └── closing_loc: (116,10)-(116,11) = ")" @@ -1115,7 +1115,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── operator_loc: (128,7)-(128,8) = "=" │ │ ├── opening_loc: (128,4)-(128,5) = "(" │ │ └── closing_loc: (128,10)-(128,11) = ")" @@ -1207,7 +1207,7 @@ │ │ │ │ ├── closing_loc: (136,23)-(136,24) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── closing_loc: (136,24)-(136,25) = "}" │ │ └── closing_loc: (136,25)-(136,26) = "\"" │ ├── locals: [:"..."] @@ -1250,7 +1250,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "bar" + │ │ │ │ │ └── name: :bar │ │ │ │ └── operator_loc: (139,11)-(139,13) = "**" │ │ │ ├── @ AssocSplatNode (location: (139,18)-(139,23)) │ │ │ │ ├── value: @@ -1263,7 +1263,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "baz" + │ │ │ │ │ └── name: :baz │ │ │ │ └── operator_loc: (139,18)-(139,20) = "**" │ │ │ └── @ AssocSplatNode (location: (139,25)-(139,30)) │ │ │ ├── value: @@ -1276,12 +1276,12 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "qux" + │ │ │ │ └── name: :qux │ │ │ └── operator_loc: (139,25)-(139,27) = "**" │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "merge" + │ │ └── name: :merge │ ├── locals: [] │ ├── def_keyword_loc: (138,0)-(138,3) = "def" │ ├── operator_loc: ∅ @@ -1553,7 +1553,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "item" + │ │ │ └── name: :item │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (161,7)-(161,9) = ">>" │ │ ├── opening_loc: ∅ @@ -1575,11 +1575,11 @@ │ │ │ │ ├── opening_loc: (161,12)-(161,13) = "{" │ │ │ │ └── closing_loc: (161,13)-(161,14) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: ">>" + │ │ └── name: :>> │ ├── locals: [:a] │ ├── def_keyword_loc: (160,0)-(160,3) = "def" │ ├── operator_loc: ∅ diff --git a/test/prism/snapshots/modules.txt b/test/prism/snapshots/modules.txt index 94f4bdb8eb..bac21e9368 100644 --- a/test/prism/snapshots/modules.txt +++ b/test/prism/snapshots/modules.txt @@ -45,7 +45,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bbb" + │ │ │ │ └── name: :bbb │ │ │ └── closing_loc: (3,12)-(3,13) = "}" │ │ └── @ StringNode (location: (3,13)-(3,17)) │ │ ├── flags: ∅ @@ -69,7 +69,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "m" + │ │ │ └── name: :m │ │ ├── child: │ │ │ @ ConstantReadNode (location: (5,10)-(5,11)) │ │ │ └── name: :M @@ -140,7 +140,7 @@ │ │ │ ├── closing_loc: (14,9)-(14,10) = "]" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "[]" + │ │ │ └── name: :[] │ │ ├── child: │ │ │ @ ConstantReadNode (location: (14,12)-(14,13)) │ │ │ └── name: :B @@ -169,7 +169,7 @@ │ │ ├── closing_loc: (17,10)-(17,11) = "]" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "[]" + │ │ └── name: :[] │ ├── child: │ │ @ ConstantReadNode (location: (17,13)-(17,14)) │ │ └── name: :B diff --git a/test/prism/snapshots/non_alphanumeric_methods.txt b/test/prism/snapshots/non_alphanumeric_methods.txt index 725b94c4e5..acf46d6242 100644 --- a/test/prism/snapshots/non_alphanumeric_methods.txt +++ b/test/prism/snapshots/non_alphanumeric_methods.txt @@ -241,7 +241,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── parameters: ∅ │ ├── body: ∅ │ ├── locals: [] diff --git a/test/prism/snapshots/not.txt b/test/prism/snapshots/not.txt index 6f4255b48a..b41d65a87c 100644 --- a/test/prism/snapshots/not.txt +++ b/test/prism/snapshots/not.txt @@ -16,7 +16,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (1,0)-(1,3) = "not" │ │ ├── opening_loc: ∅ @@ -24,7 +24,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ ├── right: │ │ @ CallNode (location: (1,12)-(1,19)) │ │ ├── receiver: @@ -37,7 +37,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (1,12)-(1,15) = "not" │ │ ├── opening_loc: ∅ @@ -45,7 +45,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ └── operator_loc: (1,8)-(1,11) = "and" ├── @ CallNode (location: (3,0)-(3,16)) │ ├── receiver: @@ -60,7 +60,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── right: │ │ │ @ CallNode (location: (3,12)-(3,15)) │ │ │ ├── receiver: ∅ @@ -71,7 +71,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── operator_loc: (3,8)-(3,11) = "and" │ ├── call_operator_loc: ∅ │ ├── message_loc: (3,0)-(3,3) = "not" @@ -80,7 +80,7 @@ │ ├── closing_loc: (3,15)-(3,16) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (5,0)-(5,7)) │ ├── receiver: │ │ @ CallNode (location: (5,4)-(5,7)) @@ -92,7 +92,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (5,0)-(5,3) = "not" │ ├── opening_loc: ∅ @@ -100,7 +100,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ AndNode (location: (7,0)-(8,5)) │ ├── left: │ │ @ CallNode (location: (7,0)-(7,7)) @@ -114,7 +114,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (7,0)-(7,3) = "not" │ │ ├── opening_loc: ∅ @@ -122,7 +122,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ ├── right: │ │ @ CallNode (location: (7,12)-(8,5)) │ │ ├── receiver: @@ -135,7 +135,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (7,12)-(7,15) = "not" │ │ ├── opening_loc: ∅ @@ -143,7 +143,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ └── operator_loc: (7,8)-(7,11) = "and" ├── @ AndNode (location: (11,0)-(13,5)) │ ├── left: @@ -158,7 +158,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (11,0)-(11,3) = "not" │ │ ├── opening_loc: ∅ @@ -166,7 +166,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ ├── right: │ │ @ CallNode (location: (12,4)-(13,5)) │ │ ├── receiver: @@ -179,7 +179,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (12,4)-(12,7) = "not" │ │ ├── opening_loc: ∅ @@ -187,7 +187,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ └── operator_loc: (11,8)-(11,11) = "and" ├── @ AndNode (location: (16,0)-(20,5)) │ ├── left: @@ -202,7 +202,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (16,0)-(16,3) = "not" │ │ ├── opening_loc: ∅ @@ -210,7 +210,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ ├── right: │ │ @ CallNode (location: (17,2)-(20,5)) │ │ ├── receiver: @@ -223,7 +223,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (17,2)-(17,5) = "not" │ │ ├── opening_loc: ∅ @@ -231,7 +231,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ └── operator_loc: (16,8)-(16,11) = "and" ├── @ CallNode (location: (22,0)-(25,1)) │ ├── receiver: @@ -244,7 +244,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (22,0)-(22,3) = "not" │ ├── opening_loc: (22,3)-(22,4) = "(" @@ -252,7 +252,7 @@ │ ├── closing_loc: (25,0)-(25,1) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (27,0)-(33,3)) │ ├── receiver: │ │ @ CallNode (location: (30,0)-(30,3)) @@ -264,7 +264,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (27,0)-(27,3) = "not" │ ├── opening_loc: (27,3)-(27,4) = "(" @@ -272,7 +272,7 @@ │ ├── closing_loc: (33,2)-(33,3) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (35,0)-(35,14)) │ ├── receiver: │ │ @ FlipFlopNode (location: (35,4)-(35,14)) @@ -286,7 +286,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── right: │ │ │ @ CallNode (location: (35,11)-(35,14)) │ │ │ ├── receiver: ∅ @@ -297,7 +297,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── operator_loc: (35,8)-(35,10) = ".." │ │ └── flags: ∅ │ ├── call_operator_loc: ∅ @@ -307,7 +307,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! └── @ CallNode (location: (37,0)-(37,16)) ├── receiver: │ @ ParenthesesNode (location: (37,4)-(37,16)) @@ -325,7 +325,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── right: │ │ │ @ CallNode (location: (37,12)-(37,15)) │ │ │ ├── receiver: ∅ @@ -336,7 +336,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── operator_loc: (37,9)-(37,11) = ".." │ │ └── flags: ∅ │ ├── opening_loc: (37,4)-(37,5) = "(" @@ -348,4 +348,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/patterns.txt b/test/prism/snapshots/patterns.txt index 2cb524e1e0..7d855810e3 100644 --- a/test/prism/snapshots/patterns.txt +++ b/test/prism/snapshots/patterns.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ LocalVariableTargetNode (location: (1,7)-(1,10)) │ │ ├── name: :bar @@ -31,7 +31,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ IntegerNode (location: (2,7)-(2,8)) │ │ └── flags: decimal @@ -47,7 +47,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ FloatNode (location: (3,7)-(3,10)) │ └── operator_loc: (3,4)-(3,6) = "=>" @@ -62,7 +62,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ImaginaryNode (location: (4,7)-(4,9)) │ │ └── numeric: @@ -80,7 +80,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RationalNode (location: (5,7)-(5,9)) │ │ └── numeric: @@ -98,7 +98,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SymbolNode (location: (6,7)-(6,11)) │ │ ├── opening_loc: (6,7)-(6,8) = ":" @@ -117,7 +117,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SymbolNode (location: (7,7)-(7,14)) │ │ ├── opening_loc: (7,7)-(7,10) = "%s[" @@ -136,7 +136,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SymbolNode (location: (8,7)-(8,13)) │ │ ├── opening_loc: (8,7)-(8,9) = ":\"" @@ -155,7 +155,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RegularExpressionNode (location: (9,7)-(9,12)) │ │ ├── opening_loc: (9,7)-(9,8) = "/" @@ -175,7 +175,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ XStringNode (location: (10,7)-(10,12)) │ │ ├── opening_loc: (10,7)-(10,8) = "`" @@ -194,7 +194,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ XStringNode (location: (11,7)-(11,14)) │ │ ├── opening_loc: (11,7)-(11,10) = "%x[" @@ -213,7 +213,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayNode (location: (12,7)-(12,14)) │ │ ├── elements: (length: 1) @@ -236,7 +236,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayNode (location: (13,7)-(13,14)) │ │ ├── elements: (length: 1) @@ -259,7 +259,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayNode (location: (14,7)-(14,14)) │ │ ├── elements: (length: 1) @@ -283,7 +283,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayNode (location: (15,7)-(15,14)) │ │ ├── elements: (length: 1) @@ -307,7 +307,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ StringNode (location: (16,7)-(16,14)) │ │ ├── flags: ∅ @@ -327,7 +327,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ StringNode (location: (17,7)-(17,14)) │ │ ├── flags: ∅ @@ -347,7 +347,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ StringNode (location: (18,7)-(18,12)) │ │ ├── flags: ∅ @@ -367,7 +367,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ NilNode (location: (19,7)-(19,10)) │ └── operator_loc: (19,4)-(19,6) = "=>" @@ -382,7 +382,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SelfNode (location: (20,7)-(20,11)) │ └── operator_loc: (20,4)-(20,6) = "=>" @@ -397,7 +397,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ TrueNode (location: (21,7)-(21,11)) │ └── operator_loc: (21,4)-(21,6) = "=>" @@ -412,7 +412,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ FalseNode (location: (22,7)-(22,12)) │ └── operator_loc: (22,4)-(22,6) = "=>" @@ -427,7 +427,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SourceFileNode (location: (23,7)-(23,15)) │ │ └── filepath: "patterns.txt" @@ -443,7 +443,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SourceLineNode (location: (24,7)-(24,15)) │ └── operator_loc: (24,4)-(24,6) = "=>" @@ -458,7 +458,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SourceEncodingNode (location: (25,7)-(25,19)) │ └── operator_loc: (25,4)-(25,6) = "=>" @@ -473,7 +473,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ LambdaNode (location: (26,7)-(26,17)) │ │ ├── locals: [] @@ -499,7 +499,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (28,7)-(28,13)) │ │ ├── left: @@ -522,7 +522,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (29,7)-(29,17)) │ │ ├── left: @@ -543,7 +543,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (30,7)-(30,15)) │ │ ├── left: @@ -570,7 +570,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (31,7)-(31,15)) │ │ ├── left: @@ -597,7 +597,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (32,7)-(32,19)) │ │ ├── left: @@ -626,7 +626,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (33,7)-(33,25)) │ │ ├── left: @@ -655,7 +655,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (34,7)-(34,23)) │ │ ├── left: @@ -684,7 +684,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (35,7)-(35,21)) │ │ ├── left: @@ -715,7 +715,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (36,7)-(36,21)) │ │ ├── left: @@ -744,7 +744,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (37,7)-(37,25)) │ │ ├── left: @@ -773,7 +773,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (38,7)-(38,25)) │ │ ├── left: @@ -810,7 +810,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (39,7)-(39,25)) │ │ ├── left: @@ -847,7 +847,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (40,7)-(40,25)) │ │ ├── left: @@ -886,7 +886,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (41,7)-(41,25)) │ │ ├── left: @@ -925,7 +925,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (42,7)-(42,25)) │ │ ├── left: @@ -956,7 +956,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (43,7)-(43,25)) │ │ ├── left: @@ -987,7 +987,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (44,7)-(44,21)) │ │ ├── left: @@ -1018,7 +1018,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (45,7)-(45,17)) │ │ ├── left: @@ -1039,7 +1039,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (46,7)-(46,19)) │ │ ├── left: @@ -1060,7 +1060,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (47,7)-(47,19)) │ │ ├── left: @@ -1081,7 +1081,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (48,7)-(48,21)) │ │ ├── left: @@ -1102,7 +1102,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (49,7)-(49,27)) │ │ ├── left: @@ -1125,7 +1125,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (50,7)-(50,27)) │ │ ├── left: @@ -1146,7 +1146,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (51,7)-(51,35)) │ │ ├── left: @@ -1167,7 +1167,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RangeNode (location: (52,7)-(52,31)) │ │ ├── left: @@ -1210,7 +1210,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ PinnedVariableNode (location: (54,7)-(54,11)) │ │ ├── variable: @@ -1230,7 +1230,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ PinnedVariableNode (location: (55,7)-(55,12)) │ │ ├── variable: @@ -1249,7 +1249,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ PinnedVariableNode (location: (56,7)-(56,13)) │ │ ├── variable: @@ -1268,7 +1268,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ PinnedVariableNode (location: (57,7)-(57,12)) │ │ ├── variable: @@ -1287,7 +1287,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ PinnedExpressionNode (location: (59,7)-(59,11)) │ │ ├── expression: @@ -1308,7 +1308,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ PinnedExpressionNode (location: (60,7)-(60,13)) │ │ ├── expression: @@ -1328,7 +1328,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ PinnedExpressionNode (location: (61,7)-(61,23)) │ │ ├── expression: @@ -1355,7 +1355,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "+" + │ │ │ └── name: :+ │ │ ├── operator_loc: (61,7)-(61,8) = "^" │ │ ├── lparen_loc: (61,8)-(61,9) = "(" │ │ └── rparen_loc: (61,22)-(61,23) = ")" @@ -1371,7 +1371,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ConstantReadNode (location: (63,7)-(63,10)) │ │ └── name: :Foo @@ -1387,7 +1387,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ConstantPathNode (location: (64,7)-(64,20)) │ │ ├── parent: @@ -1415,7 +1415,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ConstantPathNode (location: (65,7)-(65,12)) │ │ ├── parent: ∅ @@ -1435,7 +1435,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ConstantPathNode (location: (66,7)-(66,22)) │ │ ├── parent: @@ -1467,7 +1467,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (68,7)-(68,12)) │ │ ├── constant: @@ -1490,7 +1490,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (69,7)-(69,13)) │ │ ├── constant: @@ -1515,7 +1515,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (70,7)-(70,19)) │ │ ├── constant: @@ -1544,7 +1544,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (71,7)-(71,15)) │ │ ├── constant: @@ -1570,7 +1570,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (72,7)-(72,21)) │ │ ├── constant: @@ -1602,7 +1602,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (73,7)-(73,21)) │ │ ├── constant: @@ -1634,7 +1634,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ FindPatternNode (location: (74,7)-(74,27)) │ │ ├── constant: @@ -1672,7 +1672,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (76,7)-(76,12)) │ │ ├── constant: @@ -1695,7 +1695,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (77,7)-(77,13)) │ │ ├── constant: @@ -1720,7 +1720,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (78,7)-(78,19)) │ │ ├── constant: @@ -1749,7 +1749,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (79,7)-(79,17)) │ │ ├── constant: @@ -1781,7 +1781,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (80,7)-(80,15)) │ │ ├── constant: @@ -1807,7 +1807,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (81,7)-(81,21)) │ │ ├── constant: @@ -1839,7 +1839,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (82,7)-(82,21)) │ │ ├── constant: @@ -1871,7 +1871,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ FindPatternNode (location: (83,7)-(83,27)) │ │ ├── constant: @@ -1909,7 +1909,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (85,7)-(85,11)) │ │ ├── constant: ∅ @@ -1936,7 +1936,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (86,7)-(86,21)) │ │ ├── constant: ∅ @@ -1969,7 +1969,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (87,7)-(87,21)) │ │ ├── constant: ∅ @@ -2002,7 +2002,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (88,7)-(88,21)) │ │ ├── constant: ∅ @@ -2035,7 +2035,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ FindPatternNode (location: (89,7)-(89,22)) │ │ ├── constant: ∅ @@ -2071,7 +2071,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (91,7)-(91,9)) │ │ ├── constant: ∅ @@ -2092,7 +2092,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (92,7)-(92,17)) │ │ ├── constant: ∅ @@ -2141,7 +2141,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (94,7)-(94,13)) │ │ ├── constant: ∅ @@ -2168,7 +2168,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (95,7)-(95,23)) │ │ ├── constant: ∅ @@ -2201,7 +2201,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (96,7)-(96,23)) │ │ ├── constant: ∅ @@ -2234,7 +2234,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayPatternNode (location: (97,7)-(97,23)) │ │ ├── constant: ∅ @@ -2267,7 +2267,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ FindPatternNode (location: (98,7)-(98,24)) │ │ ├── constant: ∅ @@ -2303,7 +2303,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ LocalVariableTargetNode (location: (100,7)-(100,10)) │ │ ├── name: :bar @@ -2320,7 +2320,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ IntegerNode (location: (101,7)-(101,8)) │ │ └── flags: decimal @@ -2336,7 +2336,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ FloatNode (location: (102,7)-(102,10)) │ └── operator_loc: (102,4)-(102,6) = "in" @@ -2351,7 +2351,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ImaginaryNode (location: (103,7)-(103,9)) │ │ └── numeric: @@ -2369,7 +2369,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RationalNode (location: (104,7)-(104,9)) │ │ └── numeric: @@ -2387,7 +2387,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SymbolNode (location: (105,7)-(105,11)) │ │ ├── opening_loc: (105,7)-(105,8) = ":" @@ -2406,7 +2406,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SymbolNode (location: (106,7)-(106,14)) │ │ ├── opening_loc: (106,7)-(106,10) = "%s[" @@ -2425,7 +2425,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SymbolNode (location: (107,7)-(107,13)) │ │ ├── opening_loc: (107,7)-(107,9) = ":\"" @@ -2444,7 +2444,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ RegularExpressionNode (location: (108,7)-(108,12)) │ │ ├── opening_loc: (108,7)-(108,8) = "/" @@ -2464,7 +2464,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ XStringNode (location: (109,7)-(109,12)) │ │ ├── opening_loc: (109,7)-(109,8) = "`" @@ -2483,7 +2483,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ XStringNode (location: (110,7)-(110,14)) │ │ ├── opening_loc: (110,7)-(110,10) = "%x[" @@ -2502,7 +2502,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayNode (location: (111,7)-(111,14)) │ │ ├── elements: (length: 1) @@ -2525,7 +2525,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayNode (location: (112,7)-(112,14)) │ │ ├── elements: (length: 1) @@ -2548,7 +2548,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayNode (location: (113,7)-(113,14)) │ │ ├── elements: (length: 1) @@ -2572,7 +2572,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ ArrayNode (location: (114,7)-(114,14)) │ │ ├── elements: (length: 1) @@ -2596,7 +2596,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ StringNode (location: (115,7)-(115,14)) │ │ ├── flags: ∅ @@ -2616,7 +2616,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ StringNode (location: (116,7)-(116,14)) │ │ ├── flags: ∅ @@ -2636,7 +2636,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ StringNode (location: (117,7)-(117,12)) │ │ ├── flags: ∅ @@ -2656,7 +2656,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ NilNode (location: (118,7)-(118,10)) │ └── operator_loc: (118,4)-(118,6) = "in" @@ -2671,7 +2671,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SelfNode (location: (119,7)-(119,11)) │ └── operator_loc: (119,4)-(119,6) = "in" @@ -2686,7 +2686,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ TrueNode (location: (120,7)-(120,11)) │ └── operator_loc: (120,4)-(120,6) = "in" @@ -2701,7 +2701,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ FalseNode (location: (121,7)-(121,12)) │ └── operator_loc: (121,4)-(121,6) = "in" @@ -2716,7 +2716,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SourceFileNode (location: (122,7)-(122,15)) │ │ └── filepath: "patterns.txt" @@ -2732,7 +2732,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SourceLineNode (location: (123,7)-(123,15)) │ └── operator_loc: (123,4)-(123,6) = "in" @@ -2747,7 +2747,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ SourceEncodingNode (location: (124,7)-(124,19)) │ └── operator_loc: (124,4)-(124,6) = "in" @@ -2762,7 +2762,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── pattern: │ │ @ LambdaNode (location: (125,7)-(125,17)) │ │ ├── locals: [] @@ -2788,7 +2788,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (127,10)-(127,21)) │ │ ├── pattern: @@ -2812,7 +2812,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (128,10)-(128,19)) │ │ ├── pattern: @@ -2835,7 +2835,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (129,10)-(129,21)) │ │ ├── pattern: @@ -2857,7 +2857,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (130,10)-(130,20)) │ │ ├── pattern: @@ -2882,7 +2882,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (131,10)-(131,20)) │ │ ├── pattern: @@ -2907,7 +2907,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (132,10)-(132,22)) │ │ ├── pattern: @@ -2933,7 +2933,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (133,10)-(133,25)) │ │ ├── pattern: @@ -2959,7 +2959,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (134,10)-(134,24)) │ │ ├── pattern: @@ -2985,7 +2985,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (135,10)-(135,23)) │ │ ├── pattern: @@ -3012,7 +3012,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (136,10)-(136,23)) │ │ ├── pattern: @@ -3038,7 +3038,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (137,10)-(137,25)) │ │ ├── pattern: @@ -3064,7 +3064,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (138,10)-(138,25)) │ │ ├── pattern: @@ -3094,7 +3094,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (139,10)-(139,25)) │ │ ├── pattern: @@ -3124,7 +3124,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (140,10)-(140,25)) │ │ ├── pattern: @@ -3155,7 +3155,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (141,10)-(141,25)) │ │ ├── pattern: @@ -3186,7 +3186,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (142,10)-(142,25)) │ │ ├── pattern: @@ -3213,7 +3213,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (143,10)-(143,25)) │ │ ├── pattern: @@ -3240,7 +3240,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (144,10)-(144,23)) │ │ ├── pattern: @@ -3267,7 +3267,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (145,10)-(145,21)) │ │ ├── pattern: @@ -3289,7 +3289,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (146,10)-(146,22)) │ │ ├── pattern: @@ -3311,7 +3311,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (147,10)-(147,22)) │ │ ├── pattern: @@ -3333,7 +3333,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (148,10)-(148,23)) │ │ ├── pattern: @@ -3355,7 +3355,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (149,10)-(149,26)) │ │ ├── pattern: @@ -3378,7 +3378,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (150,10)-(150,26)) │ │ ├── pattern: @@ -3400,7 +3400,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (151,10)-(151,30)) │ │ ├── pattern: @@ -3422,7 +3422,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (152,10)-(152,28)) │ │ ├── pattern: @@ -3455,7 +3455,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (154,10)-(154,28)) │ │ ├── pattern: @@ -3490,7 +3490,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (155,10)-(155,26)) │ │ ├── pattern: @@ -3524,7 +3524,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (156,10)-(156,28)) │ │ ├── pattern: @@ -3557,7 +3557,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (157,10)-(157,27)) │ │ ├── pattern: @@ -3593,7 +3593,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (158,10)-(158,27)) │ │ ├── pattern: @@ -3629,7 +3629,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (159,10)-(159,29)) │ │ ├── pattern: @@ -3666,7 +3666,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (160,10)-(160,32)) │ │ ├── pattern: @@ -3703,7 +3703,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (161,10)-(161,31)) │ │ ├── pattern: @@ -3740,7 +3740,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (162,10)-(162,30)) │ │ ├── pattern: @@ -3778,7 +3778,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (163,10)-(163,30)) │ │ ├── pattern: @@ -3815,7 +3815,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (164,10)-(164,32)) │ │ ├── pattern: @@ -3852,7 +3852,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (165,10)-(165,32)) │ │ ├── pattern: @@ -3893,7 +3893,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (166,10)-(166,32)) │ │ ├── pattern: @@ -3934,7 +3934,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (167,10)-(167,32)) │ │ ├── pattern: @@ -3976,7 +3976,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (168,10)-(168,32)) │ │ ├── pattern: @@ -4018,7 +4018,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (169,10)-(169,32)) │ │ ├── pattern: @@ -4056,7 +4056,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (170,10)-(170,32)) │ │ ├── pattern: @@ -4094,7 +4094,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (171,10)-(171,30)) │ │ ├── pattern: @@ -4132,7 +4132,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (172,10)-(172,28)) │ │ ├── pattern: @@ -4165,7 +4165,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (173,10)-(173,29)) │ │ ├── pattern: @@ -4198,7 +4198,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (174,10)-(174,29)) │ │ ├── pattern: @@ -4231,7 +4231,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (175,10)-(175,30)) │ │ ├── pattern: @@ -4264,7 +4264,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (176,10)-(176,33)) │ │ ├── pattern: @@ -4298,7 +4298,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (177,10)-(177,33)) │ │ ├── pattern: @@ -4331,7 +4331,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (178,10)-(178,37)) │ │ ├── pattern: @@ -4364,7 +4364,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (179,10)-(179,35)) │ │ ├── pattern: @@ -4411,7 +4411,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── pattern: │ │ │ @ ArrayPatternNode (location: (181,8)-(181,10)) │ │ │ ├── constant: ∅ @@ -4435,7 +4435,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── pattern: │ │ @ ArrayPatternNode (location: (184,5)-(186,1)) │ │ ├── constant: ∅ @@ -4459,7 +4459,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── pattern: │ @ HashPatternNode (location: (188,7)-(192,1)) │ ├── constant: diff --git a/test/prism/snapshots/procs.txt b/test/prism/snapshots/procs.txt index 8203cc08c8..a247c28e5e 100644 --- a/test/prism/snapshots/procs.txt +++ b/test/prism/snapshots/procs.txt @@ -101,7 +101,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── @ LambdaNode (location: (15,0)-(15,15)) │ ├── locals: [] │ ├── operator_loc: (15,0)-(15,2) = "->" @@ -120,7 +120,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── @ LambdaNode (location: (17,0)-(17,29)) │ ├── locals: [:a, :b, :c, :d, :e] │ ├── operator_loc: (17,0)-(17,2) = "->" @@ -340,7 +340,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "*" + │ └── name: :* └── @ LambdaNode (location: (27,0)-(27,19)) ├── locals: [:a, :b, :c] ├── operator_loc: (27,0)-(27,2) = "->" diff --git a/test/prism/snapshots/ranges.txt b/test/prism/snapshots/ranges.txt index 65192ecc4b..e13d09b6aa 100644 --- a/test/prism/snapshots/ranges.txt +++ b/test/prism/snapshots/ranges.txt @@ -49,7 +49,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (7,3)-(7,9) = "[...2]" │ ├── opening_loc: (7,3)-(7,4) = "[" @@ -66,7 +66,7 @@ │ ├── closing_loc: (7,8)-(7,9) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ HashNode (location: (9,0)-(9,15)) │ ├── opening_loc: (9,0)-(9,1) = "{" │ ├── elements: (length: 1) @@ -90,7 +90,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── operator_loc: (9,7)-(9,10) = "..." │ │ │ └── flags: exclude_end │ │ └── operator_loc: ∅ @@ -140,7 +140,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── operator_loc: (15,7)-(15,9) = ".." │ │ │ └── flags: ∅ │ │ └── operator_loc: ∅ diff --git a/test/prism/snapshots/regex.txt b/test/prism/snapshots/regex.txt index a20a97c5eb..ff0e3d3b56 100644 --- a/test/prism/snapshots/regex.txt +++ b/test/prism/snapshots/regex.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ RegularExpressionNode (location: (3,0)-(3,8)) │ ├── opening_loc: (3,0)-(3,3) = "%r{" │ ├── content_loc: (3,3)-(3,6) = "abc" @@ -72,7 +72,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bbb" + │ │ │ │ └── name: :bbb │ │ │ └── closing_loc: (9,10)-(9,11) = "}" │ │ └── @ StringNode (location: (9,11)-(9,15)) │ │ ├── flags: ∅ @@ -109,11 +109,11 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "baz" + │ │ │ │ │ └── name: :baz │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "=~" + │ │ │ │ └── name: :=~ │ │ │ └── locals: [:foo] │ │ └── @ LocalVariableReadNode (location: (11,23)-(11,26)) │ │ ├── name: :foo @@ -173,7 +173,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "=~" + │ └── name: :=~ ├── @ RegularExpressionNode (location: (28,0)-(28,9)) │ ├── opening_loc: (28,0)-(28,3) = "%r#" │ ├── content_loc: (28,3)-(28,8) = "pound" @@ -203,7 +203,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bbb" + │ │ └── name: :bbb │ └── closing_loc: (30,10)-(30,11) = "}" ├── closing_loc: (30,11)-(30,13) = "/o" └── flags: once diff --git a/test/prism/snapshots/rescue.txt b/test/prism/snapshots/rescue.txt index b57f5de7a7..d6af99073d 100644 --- a/test/prism/snapshots/rescue.txt +++ b/test/prism/snapshots/rescue.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── keyword_loc: (1,4)-(1,10) = "rescue" │ └── rescue_expression: │ @ NilNode (location: (1,11)-(1,14)) @@ -29,7 +29,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── keyword_loc: (3,4)-(3,10) = "rescue" │ └── rescue_expression: │ @ NilNode (location: (4,0)-(4,3)) @@ -68,7 +68,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── keyword_loc: (12,4)-(12,10) = "rescue" │ └── rescue_expression: │ @ OrNode (location: (12,11)-(12,19)) @@ -89,7 +89,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── keyword_loc: (14,4)-(14,10) = "rescue" │ └── rescue_expression: │ @ IfNode (location: (14,11)-(14,22)) @@ -125,7 +125,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (16,10)-(16,19)) │ │ ├── keyword_loc: (16,10)-(16,16) = "rescue" @@ -142,7 +142,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── operator_loc: ∅ │ │ ├── reference: ∅ │ │ ├── statements: ∅ @@ -198,11 +198,11 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "y" + │ │ │ │ │ └── name: :y │ │ │ │ ├── closing_loc: (19,7)-(19,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── keyword_loc: (19,9)-(19,15) = "rescue" │ │ │ └── rescue_expression: │ │ │ @ CallNode (location: (19,16)-(19,40)) @@ -230,15 +230,15 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "fail" + │ │ │ │ └── name: :fail │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "ArgumentError" + │ │ │ └── name: :ArgumentError │ │ ├── opening_loc: (18,4)-(18,6) = "do" │ │ └── closing_loc: (20,0)-(20,3) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ IfNode (location: (22,0)-(24,3)) │ ├── if_keyword_loc: (22,0)-(22,2) = "if" │ ├── predicate: @@ -258,7 +258,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ ├── keyword_loc: (22,11)-(22,17) = "rescue" │ │ │ └── rescue_expression: │ │ │ @ NilNode (location: (22,18)-(22,21)) @@ -275,7 +275,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── consequent: ∅ │ └── end_keyword_loc: (24,0)-(24,3) = "end" ├── @ DefNode (location: (26,0)-(26,44)) @@ -304,7 +304,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "other_method" + │ │ └── name: :other_method │ ├── locals: [] │ ├── def_keyword_loc: (26,0)-(26,3) = "def" │ ├── operator_loc: ∅ @@ -352,12 +352,12 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── operator_loc: ∅ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (30,0)-(30,6)) │ │ ├── keyword_loc: (30,0)-(30,6) = "rescue" diff --git a/test/prism/snapshots/seattlerb/TestRubyParserShared.txt b/test/prism/snapshots/seattlerb/TestRubyParserShared.txt index deb317781a..d32776c11f 100644 --- a/test/prism/snapshots/seattlerb/TestRubyParserShared.txt +++ b/test/prism/snapshots/seattlerb/TestRubyParserShared.txt @@ -148,7 +148,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "+" + │ │ │ └── name: :+ │ │ ├── locals: [:a, :b] │ │ ├── def_keyword_loc: (52,2)-(52,5) = "def" │ │ ├── operator_loc: (52,10)-(52,11) = "." @@ -239,7 +239,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "+" + │ │ │ └── name: :+ │ │ ├── locals: [:a, :b] │ │ ├── def_keyword_loc: (67,2)-(67,5) = "def" │ │ ├── operator_loc: ∅ @@ -329,4 +329,4 @@ ├── closing_loc: (92,0)-(92,1) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "x" + └── name: :x diff --git a/test/prism/snapshots/seattlerb/and_multi.txt b/test/prism/snapshots/seattlerb/and_multi.txt index 575f75fe30..890b6ec2fc 100644 --- a/test/prism/snapshots/seattlerb/and_multi.txt +++ b/test/prism/snapshots/seattlerb/and_multi.txt @@ -19,7 +19,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "!" + │ │ └── name: :! │ └── operator_loc: (1,5)-(1,8) = "and" ├── right: │ @ TrueNode (location: (3,0)-(3,4)) diff --git a/test/prism/snapshots/seattlerb/array_lits_trailing_calls.txt b/test/prism/snapshots/seattlerb/array_lits_trailing_calls.txt index ef31ed8bbc..20eb6a10e6 100644 --- a/test/prism/snapshots/seattlerb/array_lits_trailing_calls.txt +++ b/test/prism/snapshots/seattlerb/array_lits_trailing_calls.txt @@ -16,7 +16,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b └── @ CallNode (location: (3,0)-(3,4)) ├── receiver: │ @ ArrayNode (location: (3,0)-(3,2)) @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/assoc__bare.txt b/test/prism/snapshots/seattlerb/assoc__bare.txt index 1de54f236d..d79ccd8ceb 100644 --- a/test/prism/snapshots/seattlerb/assoc__bare.txt +++ b/test/prism/snapshots/seattlerb/assoc__bare.txt @@ -25,6 +25,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "y" + │ │ └── name: :y │ └── operator_loc: ∅ └── closing_loc: (1,5)-(1,6) = "}" diff --git a/test/prism/snapshots/seattlerb/assoc_label.txt b/test/prism/snapshots/seattlerb/assoc_label.txt index 2e20f9fc29..1b9dfc6d13 100644 --- a/test/prism/snapshots/seattlerb/assoc_label.txt +++ b/test/prism/snapshots/seattlerb/assoc_label.txt @@ -27,4 +27,4 @@ ├── closing_loc: (1,5)-(1,6) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/attr_asgn_colon_id.txt b/test/prism/snapshots/seattlerb/attr_asgn_colon_id.txt index 5232738267..bdcf68e234 100644 --- a/test/prism/snapshots/seattlerb/attr_asgn_colon_id.txt +++ b/test/prism/snapshots/seattlerb/attr_asgn_colon_id.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "b=" + └── name: :b= diff --git a/test/prism/snapshots/seattlerb/attrasgn_array_arg.txt b/test/prism/snapshots/seattlerb/attrasgn_array_arg.txt index 5d30d718c9..f2a3fb3a0e 100644 --- a/test/prism/snapshots/seattlerb/attrasgn_array_arg.txt +++ b/test/prism/snapshots/seattlerb/attrasgn_array_arg.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (1,1)-(1,9) = "[[1, 2]]" ├── opening_loc: (1,1)-(1,2) = "[" @@ -34,4 +34,4 @@ ├── closing_loc: (1,8)-(1,9) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]=" + └── name: :[]= diff --git a/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt b/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt index 741e1cba09..1925a40cba 100644 --- a/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt +++ b/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt @@ -34,7 +34,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "from" + │ │ │ └── name: :from │ │ ├── right: │ │ │ @ CallNode (location: (1,21)-(1,23)) │ │ │ ├── receiver: ∅ @@ -45,7 +45,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "to" + │ │ │ └── name: :to │ │ ├── operator_loc: (1,18)-(1,20) = ".." │ │ └── flags: ∅ │ └── @ ArrayNode (location: (1,27)-(1,42)) @@ -73,4 +73,4 @@ ├── closing_loc: (1,23)-(1,24) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]=" + └── name: :[]= diff --git a/test/prism/snapshots/seattlerb/attrasgn_primary_dot_constant.txt b/test/prism/snapshots/seattlerb/attrasgn_primary_dot_constant.txt index 73b65fc636..f2890d1cc7 100644 --- a/test/prism/snapshots/seattlerb/attrasgn_primary_dot_constant.txt +++ b/test/prism/snapshots/seattlerb/attrasgn_primary_dot_constant.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,2) = "." ├── message_loc: (1,2)-(1,3) = "B" ├── opening_loc: ∅ @@ -26,4 +26,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "B=" + └── name: :B= diff --git a/test/prism/snapshots/seattlerb/backticks_interpolation_line.txt b/test/prism/snapshots/seattlerb/backticks_interpolation_line.txt index d56a532bc4..192c6d3c0f 100644 --- a/test/prism/snapshots/seattlerb/backticks_interpolation_line.txt +++ b/test/prism/snapshots/seattlerb/backticks_interpolation_line.txt @@ -28,10 +28,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "y" + │ │ │ └── name: :y │ │ └── closing_loc: (1,6)-(1,7) = "}" │ └── closing_loc: (1,7)-(1,8) = "`" ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "x" + └── name: :x diff --git a/test/prism/snapshots/seattlerb/bang_eq.txt b/test/prism/snapshots/seattlerb/bang_eq.txt index b2fc7b7bb7..0e668d55b5 100644 --- a/test/prism/snapshots/seattlerb/bang_eq.txt +++ b/test/prism/snapshots/seattlerb/bang_eq.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!=" + └── name: :!= diff --git a/test/prism/snapshots/seattlerb/bdot2.txt b/test/prism/snapshots/seattlerb/bdot2.txt index 2fc74e52a7..d2a2ade122 100644 --- a/test/prism/snapshots/seattlerb/bdot2.txt +++ b/test/prism/snapshots/seattlerb/bdot2.txt @@ -22,7 +22,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── operator_loc: (2,2)-(2,4) = ".." │ └── flags: ∅ └── @ CallNode (location: (3,2)-(3,3)) @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/bdot3.txt b/test/prism/snapshots/seattlerb/bdot3.txt index f282688f85..29e5cc914b 100644 --- a/test/prism/snapshots/seattlerb/bdot3.txt +++ b/test/prism/snapshots/seattlerb/bdot3.txt @@ -22,7 +22,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── operator_loc: (2,2)-(2,5) = "..." │ └── flags: exclude_end └── @ CallNode (location: (3,2)-(3,3)) @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt b/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt index c3041819bf..04c1d508ad 100644 --- a/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt +++ b/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt @@ -35,4 +35,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,10)-(1,11) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt b/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt index d1382f9a53..37cbf99478 100644 --- a/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt +++ b/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt @@ -46,4 +46,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,20)-(1,21) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt b/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt index 1119f827dd..2d82140cd5 100644 --- a/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt +++ b/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt @@ -44,4 +44,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,19)-(1,20) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt b/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt index 5bb2de2a16..28203c6d71 100644 --- a/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt +++ b/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt @@ -50,4 +50,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,24)-(1,25) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_arg_optional.txt b/test/prism/snapshots/seattlerb/block_arg_optional.txt index 8b29ce6e9f..9201d959c1 100644 --- a/test/prism/snapshots/seattlerb/block_arg_optional.txt +++ b/test/prism/snapshots/seattlerb/block_arg_optional.txt @@ -38,4 +38,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,12)-(1,13) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_arg_scope.txt b/test/prism/snapshots/seattlerb/block_arg_scope.txt index e70f2f4ce7..3d08f4e427 100644 --- a/test/prism/snapshots/seattlerb/block_arg_scope.txt +++ b/test/prism/snapshots/seattlerb/block_arg_scope.txt @@ -35,4 +35,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,11)-(1,12) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_arg_scope2.txt b/test/prism/snapshots/seattlerb/block_arg_scope2.txt index 99af39a109..2f7d2a94af 100644 --- a/test/prism/snapshots/seattlerb/block_arg_scope2.txt +++ b/test/prism/snapshots/seattlerb/block_arg_scope2.txt @@ -37,4 +37,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,13)-(1,14) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt b/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt index a3a194f30b..6af84e9d10 100644 --- a/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt @@ -39,4 +39,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,15)-(1,16) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_args_kwargs.txt b/test/prism/snapshots/seattlerb/block_args_kwargs.txt index 4d2255fd66..655dd6d3f8 100644 --- a/test/prism/snapshots/seattlerb/block_args_kwargs.txt +++ b/test/prism/snapshots/seattlerb/block_args_kwargs.txt @@ -40,4 +40,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,22)-(1,23) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt b/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt index b8542f2ab7..00f95ff5f5 100644 --- a/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt +++ b/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt @@ -34,4 +34,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,12)-(1,13) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/block_args_opt1.txt b/test/prism/snapshots/seattlerb/block_args_opt1.txt index 7e022ab1ea..848343a2d1 100644 --- a/test/prism/snapshots/seattlerb/block_args_opt1.txt +++ b/test/prism/snapshots/seattlerb/block_args_opt1.txt @@ -52,4 +52,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,23)-(1,24) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/block_args_opt2.txt b/test/prism/snapshots/seattlerb/block_args_opt2.txt index 4a5b0ef03d..41835cd47e 100644 --- a/test/prism/snapshots/seattlerb/block_args_opt2.txt +++ b/test/prism/snapshots/seattlerb/block_args_opt2.txt @@ -45,4 +45,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,17)-(1,18) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_args_opt2_2.txt b/test/prism/snapshots/seattlerb/block_args_opt2_2.txt index da706e2306..cc4fae2f76 100644 --- a/test/prism/snapshots/seattlerb/block_args_opt2_2.txt +++ b/test/prism/snapshots/seattlerb/block_args_opt2_2.txt @@ -62,4 +62,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,34)-(1,35) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/block_args_opt3.txt b/test/prism/snapshots/seattlerb/block_args_opt3.txt index 5f187e20cf..3aed536573 100644 --- a/test/prism/snapshots/seattlerb/block_args_opt3.txt +++ b/test/prism/snapshots/seattlerb/block_args_opt3.txt @@ -69,4 +69,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,41)-(1,42) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/block_break.txt b/test/prism/snapshots/seattlerb/block_break.txt index ce4f94f1c9..77c067e673 100644 --- a/test/prism/snapshots/seattlerb/block_break.txt +++ b/test/prism/snapshots/seattlerb/block_break.txt @@ -24,7 +24,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "arg" + │ │ └── name: :arg │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (1,14)-(1,26)) @@ -49,5 +49,5 @@ │ │ ├── opening_loc: (1,14)-(1,16) = "do" │ │ └── closing_loc: (1,23)-(1,26) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo └── keyword_loc: (1,0)-(1,5) = "break" diff --git a/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt b/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt index 49ddad48b2..9a41c87602 100644 --- a/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt +++ b/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt @@ -38,7 +38,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── locals: [:c] │ │ ├── def_keyword_loc: (1,2)-(1,5) = "def" │ │ ├── operator_loc: ∅ @@ -49,7 +49,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (4,1)-(4,11)) ├── receiver: │ @ CallNode (location: (4,1)-(4,2)) @@ -61,7 +61,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "e" + │ └── name: :e ├── call_operator_loc: (4,2)-(4,3) = "." ├── message_loc: (4,3)-(4,4) = "f" ├── opening_loc: ∅ @@ -75,4 +75,4 @@ │ ├── opening_loc: (4,5)-(4,7) = "do" │ └── closing_loc: (4,8)-(4,11) = "end" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt b/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt index 812b7ab151..380452127c 100644 --- a/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt +++ b/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (1,1)-(1,2) = "." │ ├── message_loc: (1,2)-(1,3) = "b" │ ├── opening_loc: ∅ @@ -32,7 +32,7 @@ │ │ ├── closing_loc: (1,6)-(1,7) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "c" + │ │ └── name: :c │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (1,8)-(1,16)) @@ -50,11 +50,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── opening_loc: (1,8)-(1,10) = "do" │ │ └── closing_loc: (1,13)-(1,16) = "end" │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── call_operator_loc: (1,16)-(1,17) = "." ├── message_loc: (1,17)-(1,18) = "e" ├── opening_loc: ∅ @@ -91,8 +91,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "g" + │ │ └── name: :g │ ├── opening_loc: (1,19)-(1,21) = "do" │ └── closing_loc: (1,28)-(1,31) = "end" ├── flags: ∅ - └── name: "e" + └── name: :e diff --git a/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt b/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt index 2262a7cc88..33e3012a44 100644 --- a/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt +++ b/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (1,1)-(1,2) = "." │ ├── message_loc: (1,2)-(1,3) = "b" │ ├── opening_loc: ∅ @@ -32,7 +32,7 @@ │ │ ├── closing_loc: (1,6)-(1,7) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "c" + │ │ └── name: :c │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (1,8)-(1,16)) @@ -50,11 +50,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── opening_loc: (1,8)-(1,10) = "do" │ │ └── closing_loc: (1,13)-(1,16) = "end" │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── call_operator_loc: (1,16)-(1,17) = "." ├── message_loc: (1,17)-(1,18) = "e" ├── opening_loc: ∅ @@ -70,7 +70,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "f" + │ └── name: :f ├── closing_loc: ∅ ├── block: │ @ BlockNode (location: (1,21)-(1,33)) @@ -103,8 +103,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "h" + │ │ └── name: :h │ ├── opening_loc: (1,21)-(1,23) = "do" │ └── closing_loc: (1,30)-(1,33) = "end" ├── flags: ∅ - └── name: "e" + └── name: :e diff --git a/test/prism/snapshots/seattlerb/block_call_operation_colon.txt b/test/prism/snapshots/seattlerb/block_call_operation_colon.txt index 3bcc89b50a..b27155b994 100644 --- a/test/prism/snapshots/seattlerb/block_call_operation_colon.txt +++ b/test/prism/snapshots/seattlerb/block_call_operation_colon.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (1,1)-(1,2) = "." │ ├── message_loc: (1,2)-(1,3) = "b" │ ├── opening_loc: ∅ @@ -32,7 +32,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (1,6)-(1,12)) @@ -42,7 +42,7 @@ │ │ ├── opening_loc: (1,6)-(1,8) = "do" │ │ └── closing_loc: (1,9)-(1,12) = "end" │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── call_operator_loc: (1,12)-(1,14) = "::" ├── message_loc: (1,14)-(1,15) = "d" ├── opening_loc: ∅ @@ -50,4 +50,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "d" + └── name: :d diff --git a/test/prism/snapshots/seattlerb/block_call_operation_dot.txt b/test/prism/snapshots/seattlerb/block_call_operation_dot.txt index 93116aed58..342258eb0f 100644 --- a/test/prism/snapshots/seattlerb/block_call_operation_dot.txt +++ b/test/prism/snapshots/seattlerb/block_call_operation_dot.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (1,1)-(1,2) = "." │ ├── message_loc: (1,2)-(1,3) = "b" │ ├── opening_loc: ∅ @@ -32,7 +32,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (1,6)-(1,12)) @@ -42,7 +42,7 @@ │ │ ├── opening_loc: (1,6)-(1,8) = "do" │ │ └── closing_loc: (1,9)-(1,12) = "end" │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── call_operator_loc: (1,12)-(1,13) = "." ├── message_loc: (1,13)-(1,14) = "d" ├── opening_loc: ∅ @@ -50,4 +50,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "d" + └── name: :d diff --git a/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt b/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt index ec75ca056a..8143f2ac8e 100644 --- a/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt +++ b/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt @@ -24,13 +24,13 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── opening_loc: (1,2)-(1,3) = "(" │ │ └── closing_loc: (1,4)-(1,5) = ")" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (2,0)-(2,10)) ├── receiver: │ @ CallNode (location: (2,0)-(2,1)) @@ -42,7 +42,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "c" + │ └── name: :c ├── call_operator_loc: (2,1)-(2,2) = "." ├── message_loc: (2,2)-(2,3) = "d" ├── opening_loc: ∅ @@ -56,4 +56,4 @@ │ ├── opening_loc: (2,4)-(2,6) = "do" │ └── closing_loc: (2,7)-(2,10) = "end" ├── flags: ∅ - └── name: "d" + └── name: :d diff --git a/test/prism/snapshots/seattlerb/block_command_operation_colon.txt b/test/prism/snapshots/seattlerb/block_command_operation_colon.txt index 90bb7ad6d0..b5ba036e0f 100644 --- a/test/prism/snapshots/seattlerb/block_command_operation_colon.txt +++ b/test/prism/snapshots/seattlerb/block_command_operation_colon.txt @@ -27,7 +27,7 @@ │ │ ├── opening_loc: (1,5)-(1,7) = "do" │ │ └── closing_loc: (1,8)-(1,11) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,11)-(1,13) = "::" ├── message_loc: (1,13)-(1,14) = "c" ├── opening_loc: ∅ @@ -42,4 +42,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/block_command_operation_dot.txt b/test/prism/snapshots/seattlerb/block_command_operation_dot.txt index 94be9641fb..f719f33cde 100644 --- a/test/prism/snapshots/seattlerb/block_command_operation_dot.txt +++ b/test/prism/snapshots/seattlerb/block_command_operation_dot.txt @@ -27,7 +27,7 @@ │ │ ├── opening_loc: (1,5)-(1,7) = "do" │ │ └── closing_loc: (1,8)-(1,11) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,11)-(1,12) = "." ├── message_loc: (1,12)-(1,13) = "c" ├── opening_loc: ∅ @@ -42,4 +42,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt b/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt index 76c3b8c413..8fc59bfa48 100644 --- a/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt @@ -40,4 +40,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,13)-(1,14) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt b/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt index 3eebb50b72..3232960ae0 100644 --- a/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt +++ b/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt @@ -40,4 +40,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,13)-(1,14) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt b/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt index 4ee66e215b..66364526a1 100644 --- a/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt @@ -44,4 +44,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,17)-(1,18) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/block_decomp_splat.txt b/test/prism/snapshots/seattlerb/block_decomp_splat.txt index 698dba24db..5c17e68914 100644 --- a/test/prism/snapshots/seattlerb/block_decomp_splat.txt +++ b/test/prism/snapshots/seattlerb/block_decomp_splat.txt @@ -40,4 +40,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,11)-(1,12) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/block_kw.txt b/test/prism/snapshots/seattlerb/block_kw.txt index f706063884..92773bda25 100644 --- a/test/prism/snapshots/seattlerb/block_kw.txt +++ b/test/prism/snapshots/seattlerb/block_kw.txt @@ -37,4 +37,4 @@ │ ├── opening_loc: (1,5)-(1,6) = "{" │ └── closing_loc: (1,14)-(1,15) = "}" ├── flags: ∅ - └── name: "blah" + └── name: :blah diff --git a/test/prism/snapshots/seattlerb/block_kw__required.txt b/test/prism/snapshots/seattlerb/block_kw__required.txt index d46bfcf21a..7e0ad49f5f 100644 --- a/test/prism/snapshots/seattlerb/block_kw__required.txt +++ b/test/prism/snapshots/seattlerb/block_kw__required.txt @@ -35,4 +35,4 @@ │ ├── opening_loc: (1,5)-(1,7) = "do" │ └── closing_loc: (1,13)-(1,16) = "end" ├── flags: ∅ - └── name: "blah" + └── name: :blah diff --git a/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt b/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt index f268418a5f..434c1a4f81 100644 --- a/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt +++ b/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt @@ -45,4 +45,4 @@ │ ├── opening_loc: (1,3)-(1,4) = "{" │ └── closing_loc: (1,19)-(1,20) = "}" ├── flags: ∅ - └── name: "bl" + └── name: :bl diff --git a/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt b/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt index f062044909..badb88d720 100644 --- a/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt +++ b/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt @@ -54,4 +54,4 @@ │ ├── opening_loc: (1,3)-(1,4) = "{" │ └── closing_loc: (1,32)-(1,33) = "}" ├── flags: ∅ - └── name: "bl" + └── name: :bl diff --git a/test/prism/snapshots/seattlerb/block_next.txt b/test/prism/snapshots/seattlerb/block_next.txt index 5c1b27d8f3..541df4532f 100644 --- a/test/prism/snapshots/seattlerb/block_next.txt +++ b/test/prism/snapshots/seattlerb/block_next.txt @@ -24,7 +24,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "arg" + │ │ └── name: :arg │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (1,13)-(1,25)) @@ -49,5 +49,5 @@ │ │ ├── opening_loc: (1,13)-(1,15) = "do" │ │ └── closing_loc: (1,22)-(1,25) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo └── keyword_loc: (1,0)-(1,4) = "next" diff --git a/test/prism/snapshots/seattlerb/block_opt_arg.txt b/test/prism/snapshots/seattlerb/block_opt_arg.txt index 32d5738df3..6cdc01e494 100644 --- a/test/prism/snapshots/seattlerb/block_opt_arg.txt +++ b/test/prism/snapshots/seattlerb/block_opt_arg.txt @@ -40,4 +40,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,13)-(1,14) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_opt_splat.txt b/test/prism/snapshots/seattlerb/block_opt_splat.txt index 9a8a4938fe..1b18001c99 100644 --- a/test/prism/snapshots/seattlerb/block_opt_splat.txt +++ b/test/prism/snapshots/seattlerb/block_opt_splat.txt @@ -42,4 +42,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,16)-(1,17) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt b/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt index e3fc328737..62d18b4f4f 100644 --- a/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt +++ b/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt @@ -48,4 +48,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,21)-(1,22) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_optarg.txt b/test/prism/snapshots/seattlerb/block_optarg.txt index b930687f3b..bc109a51f7 100644 --- a/test/prism/snapshots/seattlerb/block_optarg.txt +++ b/test/prism/snapshots/seattlerb/block_optarg.txt @@ -41,4 +41,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,13)-(1,14) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_paren_splat.txt b/test/prism/snapshots/seattlerb/block_paren_splat.txt index f7592497f1..a0f8a74bd4 100644 --- a/test/prism/snapshots/seattlerb/block_paren_splat.txt +++ b/test/prism/snapshots/seattlerb/block_paren_splat.txt @@ -42,4 +42,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,14)-(1,15) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_reg_optarg.txt b/test/prism/snapshots/seattlerb/block_reg_optarg.txt index 2d6d50122c..15fb24d7de 100644 --- a/test/prism/snapshots/seattlerb/block_reg_optarg.txt +++ b/test/prism/snapshots/seattlerb/block_reg_optarg.txt @@ -43,4 +43,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,16)-(1,17) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_return.txt b/test/prism/snapshots/seattlerb/block_return.txt index 8c391abd53..de6facb97a 100644 --- a/test/prism/snapshots/seattlerb/block_return.txt +++ b/test/prism/snapshots/seattlerb/block_return.txt @@ -25,7 +25,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "arg" + │ └── name: :arg ├── closing_loc: ∅ ├── block: │ @ BlockNode (location: (1,15)-(1,27)) @@ -50,4 +50,4 @@ │ ├── opening_loc: (1,15)-(1,17) = "do" │ └── closing_loc: (1,24)-(1,27) = "end" ├── flags: ∅ - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/seattlerb/block_scope.txt b/test/prism/snapshots/seattlerb/block_scope.txt index 14263c5623..f2eead2121 100644 --- a/test/prism/snapshots/seattlerb/block_scope.txt +++ b/test/prism/snapshots/seattlerb/block_scope.txt @@ -25,4 +25,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,9)-(1,10) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/block_splat_reg.txt b/test/prism/snapshots/seattlerb/block_splat_reg.txt index 4b12ce34a8..34891ead23 100644 --- a/test/prism/snapshots/seattlerb/block_splat_reg.txt +++ b/test/prism/snapshots/seattlerb/block_splat_reg.txt @@ -37,4 +37,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,12)-(1,13) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/bug169.txt b/test/prism/snapshots/seattlerb/bug169.txt index 94c2597316..c5f5e89868 100644 --- a/test/prism/snapshots/seattlerb/bug169.txt +++ b/test/prism/snapshots/seattlerb/bug169.txt @@ -24,4 +24,4 @@ │ ├── opening_loc: (1,5)-(1,6) = "{" │ └── closing_loc: (1,6)-(1,7) = "}" ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/seattlerb/bug179.txt b/test/prism/snapshots/seattlerb/bug179.txt index 233a4767e0..6866f4f72d 100644 --- a/test/prism/snapshots/seattlerb/bug179.txt +++ b/test/prism/snapshots/seattlerb/bug179.txt @@ -24,4 +24,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/seattlerb/bug191.txt b/test/prism/snapshots/seattlerb/bug191.txt index 313e892629..a54a584772 100644 --- a/test/prism/snapshots/seattlerb/bug191.txt +++ b/test/prism/snapshots/seattlerb/bug191.txt @@ -15,7 +15,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── statements: │ │ @ StatementsNode (location: (1,4)-(1,6)) │ │ └── body: (length: 1) @@ -40,7 +40,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── end_keyword_loc: ∅ │ └── end_keyword_loc: ∅ └── @ IfNode (location: (3,0)-(3,9)) @@ -55,7 +55,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── statements: │ @ StatementsNode (location: (3,4)-(3,6)) │ └── body: (length: 1) @@ -80,6 +80,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── end_keyword_loc: ∅ └── end_keyword_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/bug236.txt b/test/prism/snapshots/seattlerb/bug236.txt index c53055bae0..c9389d4561 100644 --- a/test/prism/snapshots/seattlerb/bug236.txt +++ b/test/prism/snapshots/seattlerb/bug236.txt @@ -37,7 +37,7 @@ │ │ ├── opening_loc: (1,1)-(1,2) = "{" │ │ └── closing_loc: (1,6)-(1,7) = "}" │ ├── flags: ∅ - │ └── name: "x" + │ └── name: :x └── @ CallNode (location: (3,0)-(3,6)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -68,4 +68,4 @@ │ ├── opening_loc: (3,1)-(3,2) = "{" │ └── closing_loc: (3,5)-(3,6) = "}" ├── flags: ∅ - └── name: "x" + └── name: :x diff --git a/test/prism/snapshots/seattlerb/bug290.txt b/test/prism/snapshots/seattlerb/bug290.txt index dbe69a5a15..f703037145 100644 --- a/test/prism/snapshots/seattlerb/bug290.txt +++ b/test/prism/snapshots/seattlerb/bug290.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── rescue_clause: ∅ ├── else_clause: ∅ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/seattlerb/bug_187.txt b/test/prism/snapshots/seattlerb/bug_187.txt index 0f55dc049c..153ef95559 100644 --- a/test/prism/snapshots/seattlerb/bug_187.txt +++ b/test/prism/snapshots/seattlerb/bug_187.txt @@ -30,7 +30,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── call_operator_loc: (2,1)-(2,2) = "." │ │ ├── message_loc: (2,2)-(2,3) = "b" │ │ ├── opening_loc: ∅ @@ -44,7 +44,7 @@ │ │ │ ├── opening_loc: (2,4)-(2,6) = "do" │ │ │ └── closing_loc: (2,7)-(2,10) = "end" │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── locals: [] │ ├── def_keyword_loc: (1,8)-(1,11) = "def" │ ├── operator_loc: ∅ @@ -55,4 +55,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "private" + └── name: :private diff --git a/test/prism/snapshots/seattlerb/bug_249.txt b/test/prism/snapshots/seattlerb/bug_249.txt index 3fd204a71b..0ab4874f32 100644 --- a/test/prism/snapshots/seattlerb/bug_249.txt +++ b/test/prism/snapshots/seattlerb/bug_249.txt @@ -49,7 +49,7 @@ │ │ │ │ │ ├── opening_loc: (1,17)-(1,19) = "do" │ │ │ │ │ └── closing_loc: (4,1)-(4,4) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "new" + │ │ │ │ └── name: :new │ │ │ ├── opening_loc: (1,6)-(1,7) = "(" │ │ │ └── closing_loc: (4,4)-(4,5) = ")" │ │ ├── call_operator_loc: (4,5)-(4,6) = "." @@ -59,7 +59,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "new" + │ │ └── name: :new │ └── @ KeywordHashNode (location: (4,11)-(4,28)) │ └── elements: (length: 1) │ └── @ AssocNode (location: (4,11)-(4,28)) @@ -80,4 +80,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "mount" + └── name: :mount diff --git a/test/prism/snapshots/seattlerb/bug_args__19.txt b/test/prism/snapshots/seattlerb/bug_args__19.txt index 45abd4c0e4..d66e17e8c0 100644 --- a/test/prism/snapshots/seattlerb/bug_args__19.txt +++ b/test/prism/snapshots/seattlerb/bug_args__19.txt @@ -47,8 +47,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "d" + │ │ └── name: :d │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,15)-(1,16) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn.txt b/test/prism/snapshots/seattlerb/bug_args_masgn.txt index 748eb80f26..b8642292c6 100644 --- a/test/prism/snapshots/seattlerb/bug_args_masgn.txt +++ b/test/prism/snapshots/seattlerb/bug_args_masgn.txt @@ -41,4 +41,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,16)-(1,17) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn2.txt b/test/prism/snapshots/seattlerb/bug_args_masgn2.txt index b4e786c7c2..3010907b41 100644 --- a/test/prism/snapshots/seattlerb/bug_args_masgn2.txt +++ b/test/prism/snapshots/seattlerb/bug_args_masgn2.txt @@ -47,4 +47,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,21)-(1,22) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt b/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt index 61eacf4421..b03d539261 100644 --- a/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt +++ b/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt @@ -45,4 +45,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,18)-(1,19) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt b/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt index 3a7d533238..2c59938f59 100644 --- a/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt +++ b/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt @@ -32,7 +32,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "g" + │ │ └── name: :g │ ├── locals: [] │ ├── def_keyword_loc: (1,6)-(1,9) = "def" │ ├── operator_loc: ∅ @@ -69,7 +69,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "g" + │ │ └── name: :g │ ├── locals: [] │ ├── def_keyword_loc: (6,6)-(6,9) = "def" │ ├── operator_loc: ∅ @@ -98,4 +98,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "g" + └── name: :g diff --git a/test/prism/snapshots/seattlerb/bug_comma.txt b/test/prism/snapshots/seattlerb/bug_comma.txt index 07ec02b232..a553b095b7 100644 --- a/test/prism/snapshots/seattlerb/bug_comma.txt +++ b/test/prism/snapshots/seattlerb/bug_comma.txt @@ -29,11 +29,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "dir" + │ │ └── name: :dir │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "test" + │ └── name: :test ├── statements: ∅ ├── consequent: ∅ └── end_keyword_loc: (1,21)-(1,24) = "end" diff --git a/test/prism/snapshots/seattlerb/bug_hash_args.txt b/test/prism/snapshots/seattlerb/bug_hash_args.txt index 3a204fb4b8..32efa806dc 100644 --- a/test/prism/snapshots/seattlerb/bug_hash_args.txt +++ b/test/prism/snapshots/seattlerb/bug_hash_args.txt @@ -31,4 +31,4 @@ ├── closing_loc: (1,18)-(1,19) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/seattlerb/bug_hash_args_trailing_comma.txt b/test/prism/snapshots/seattlerb/bug_hash_args_trailing_comma.txt index 73bc04243d..ba2f57eff8 100644 --- a/test/prism/snapshots/seattlerb/bug_hash_args_trailing_comma.txt +++ b/test/prism/snapshots/seattlerb/bug_hash_args_trailing_comma.txt @@ -31,4 +31,4 @@ ├── closing_loc: (1,19)-(1,20) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/seattlerb/bug_masgn_right.txt b/test/prism/snapshots/seattlerb/bug_masgn_right.txt index c19931cdd1..b626f21146 100644 --- a/test/prism/snapshots/seattlerb/bug_masgn_right.txt +++ b/test/prism/snapshots/seattlerb/bug_masgn_right.txt @@ -41,4 +41,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,16)-(1,17) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/bug_not_parens.txt b/test/prism/snapshots/seattlerb/bug_not_parens.txt index 8b937728d0..29e62e5df9 100644 --- a/test/prism/snapshots/seattlerb/bug_not_parens.txt +++ b/test/prism/snapshots/seattlerb/bug_not_parens.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (1,0)-(1,3) = "not" ├── opening_loc: (1,3)-(1,4) = "(" @@ -22,4 +22,4 @@ ├── closing_loc: (1,5)-(1,6) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/seattlerb/bug_op_asgn_rescue.txt b/test/prism/snapshots/seattlerb/bug_op_asgn_rescue.txt index c3df9b1be9..e7f92976c5 100644 --- a/test/prism/snapshots/seattlerb/bug_op_asgn_rescue.txt +++ b/test/prism/snapshots/seattlerb/bug_op_asgn_rescue.txt @@ -18,7 +18,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── keyword_loc: (1,8)-(1,14) = "rescue" │ └── rescue_expression: │ @ NilNode (location: (1,15)-(1,18)) diff --git a/test/prism/snapshots/seattlerb/call_and.txt b/test/prism/snapshots/seattlerb/call_and.txt index 009eb877d0..428ad013d0 100644 --- a/test/prism/snapshots/seattlerb/call_and.txt +++ b/test/prism/snapshots/seattlerb/call_and.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "&" + └── name: :& diff --git a/test/prism/snapshots/seattlerb/call_arg_assoc.txt b/test/prism/snapshots/seattlerb/call_arg_assoc.txt index 2f7f20b2d9..fbfbd43070 100644 --- a/test/prism/snapshots/seattlerb/call_arg_assoc.txt +++ b/test/prism/snapshots/seattlerb/call_arg_assoc.txt @@ -26,4 +26,4 @@ ├── closing_loc: (1,9)-(1,10) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt b/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt index f477f046ac..b553358ae1 100644 --- a/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt +++ b/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt @@ -34,4 +34,4 @@ ├── closing_loc: (1,15)-(1,16) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt b/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt index 6ebfe62964..1393187e94 100644 --- a/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt +++ b/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt @@ -20,7 +20,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── @ KeywordHashNode (location: (1,5)-(1,8)) │ └── elements: (length: 1) │ └── @ AssocSplatNode (location: (1,5)-(1,8)) @@ -31,4 +31,4 @@ ├── closing_loc: (1,8)-(1,9) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/call_args_assoc_quoted.txt b/test/prism/snapshots/seattlerb/call_args_assoc_quoted.txt index 095bab4ce1..4dd9d81ee4 100644 --- a/test/prism/snapshots/seattlerb/call_args_assoc_quoted.txt +++ b/test/prism/snapshots/seattlerb/call_args_assoc_quoted.txt @@ -32,7 +32,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "k" + │ │ │ │ │ └── name: :k │ │ │ │ └── closing_loc: (1,6)-(1,7) = "}" │ │ │ └── closing_loc: (1,7)-(1,9) = "\":" │ │ ├── value: @@ -42,7 +42,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "x" + │ └── name: :x ├── @ CallNode (location: (3,0)-(3,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -67,7 +67,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "x" + │ └── name: :x └── @ CallNode (location: (5,0)-(5,8)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -92,4 +92,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "x" + └── name: :x diff --git a/test/prism/snapshots/seattlerb/call_args_assoc_trailing_comma.txt b/test/prism/snapshots/seattlerb/call_args_assoc_trailing_comma.txt index 7af70d5832..36a4b3b3f4 100644 --- a/test/prism/snapshots/seattlerb/call_args_assoc_trailing_comma.txt +++ b/test/prism/snapshots/seattlerb/call_args_assoc_trailing_comma.txt @@ -26,4 +26,4 @@ ├── closing_loc: (1,10)-(1,11) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/call_args_command.txt b/test/prism/snapshots/seattlerb/call_args_command.txt index dfd0e60fbd..ce3e42ddd3 100644 --- a/test/prism/snapshots/seattlerb/call_args_command.txt +++ b/test/prism/snapshots/seattlerb/call_args_command.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,2) = "." ├── message_loc: (1,2)-(1,3) = "b" ├── opening_loc: ∅ @@ -32,7 +32,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── call_operator_loc: (1,5)-(1,6) = "." │ ├── message_loc: (1,6)-(1,7) = "d" │ ├── opening_loc: ∅ @@ -44,8 +44,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "d" + │ └── name: :d ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/call_array_arg.txt b/test/prism/snapshots/seattlerb/call_array_arg.txt index f0bc196cf3..4c8c858a33 100644 --- a/test/prism/snapshots/seattlerb/call_array_arg.txt +++ b/test/prism/snapshots/seattlerb/call_array_arg.txt @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "==" + └── name: :== diff --git a/test/prism/snapshots/seattlerb/call_array_block_call.txt b/test/prism/snapshots/seattlerb/call_array_block_call.txt index 6c78b7f52c..e8787b2143 100644 --- a/test/prism/snapshots/seattlerb/call_array_block_call.txt +++ b/test/prism/snapshots/seattlerb/call_array_block_call.txt @@ -29,10 +29,10 @@ │ │ │ ├── opening_loc: (1,11)-(1,13) = "do" │ │ │ └── closing_loc: (1,14)-(1,17) = "end" │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── opening_loc: (1,2)-(1,3) = "[" │ └── closing_loc: (1,18)-(1,19) = "]" ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt b/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt index 7b25a64419..3239da05cd 100644 --- a/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt +++ b/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt @@ -36,4 +36,4 @@ │ ├── opening_loc: (1,12)-(1,14) = "do" │ └── closing_loc: (2,0)-(2,3) = "end" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/call_array_lit_inline_hash.txt b/test/prism/snapshots/seattlerb/call_array_lit_inline_hash.txt index 6ce4c98d5f..f8a8b40221 100644 --- a/test/prism/snapshots/seattlerb/call_array_lit_inline_hash.txt +++ b/test/prism/snapshots/seattlerb/call_array_lit_inline_hash.txt @@ -36,4 +36,4 @@ ├── closing_loc: (1,15)-(1,16) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/call_assoc.txt b/test/prism/snapshots/seattlerb/call_assoc.txt index 59ede3254e..ae4bc5cbec 100644 --- a/test/prism/snapshots/seattlerb/call_assoc.txt +++ b/test/prism/snapshots/seattlerb/call_assoc.txt @@ -24,4 +24,4 @@ ├── closing_loc: (1,6)-(1,7) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/call_assoc_new.txt b/test/prism/snapshots/seattlerb/call_assoc_new.txt index d1121c377f..0c507a9da2 100644 --- a/test/prism/snapshots/seattlerb/call_assoc_new.txt +++ b/test/prism/snapshots/seattlerb/call_assoc_new.txt @@ -27,4 +27,4 @@ ├── closing_loc: (1,5)-(1,6) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/call_assoc_new_if_multiline.txt b/test/prism/snapshots/seattlerb/call_assoc_new_if_multiline.txt index c7ea9767c7..ff88e38a4c 100644 --- a/test/prism/snapshots/seattlerb/call_assoc_new_if_multiline.txt +++ b/test/prism/snapshots/seattlerb/call_assoc_new_if_multiline.txt @@ -48,4 +48,4 @@ ├── closing_loc: (5,3)-(5,4) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/call_assoc_trailing_comma.txt b/test/prism/snapshots/seattlerb/call_assoc_trailing_comma.txt index bf0cce6956..ecc6e1c7f2 100644 --- a/test/prism/snapshots/seattlerb/call_assoc_trailing_comma.txt +++ b/test/prism/snapshots/seattlerb/call_assoc_trailing_comma.txt @@ -24,4 +24,4 @@ ├── closing_loc: (1,7)-(1,8) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/call_bang_command_call.txt b/test/prism/snapshots/seattlerb/call_bang_command_call.txt index b38ffe085b..f95cb6688c 100644 --- a/test/prism/snapshots/seattlerb/call_bang_command_call.txt +++ b/test/prism/snapshots/seattlerb/call_bang_command_call.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: (1,4)-(1,5) = "b" │ ├── opening_loc: ∅ @@ -28,7 +28,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── call_operator_loc: ∅ ├── message_loc: (1,0)-(1,1) = "!" ├── opening_loc: ∅ @@ -36,4 +36,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/seattlerb/call_bang_squiggle.txt b/test/prism/snapshots/seattlerb/call_bang_squiggle.txt index 2bc2d0a9bd..d1ba496d48 100644 --- a/test/prism/snapshots/seattlerb/call_bang_squiggle.txt +++ b/test/prism/snapshots/seattlerb/call_bang_squiggle.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!~" + └── name: :!~ diff --git a/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt b/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt index f43f9a0bd9..ded371163b 100644 --- a/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt +++ b/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt @@ -27,7 +27,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── call_operator_loc: (2,1)-(2,2) = "." │ │ ├── message_loc: (2,2)-(2,3) = "c" │ │ ├── opening_loc: ∅ @@ -41,7 +41,7 @@ │ │ │ ├── opening_loc: (2,4)-(2,6) = "do" │ │ │ └── closing_loc: (2,7)-(2,10) = "end" │ │ ├── flags: ∅ - │ │ └── name: "c" + │ │ └── name: :c │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -49,4 +49,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/call_block_arg_named.txt b/test/prism/snapshots/seattlerb/call_block_arg_named.txt index deb1433cab..ebcdeae8d2 100644 --- a/test/prism/snapshots/seattlerb/call_block_arg_named.txt +++ b/test/prism/snapshots/seattlerb/call_block_arg_named.txt @@ -22,7 +22,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "blk" + │ │ └── name: :blk │ └── operator_loc: (1,2)-(1,3) = "&" ├── flags: ∅ - └── name: "x" + └── name: :x diff --git a/test/prism/snapshots/seattlerb/call_carat.txt b/test/prism/snapshots/seattlerb/call_carat.txt index 6bf95e2a5a..7f7307d74b 100644 --- a/test/prism/snapshots/seattlerb/call_carat.txt +++ b/test/prism/snapshots/seattlerb/call_carat.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "^" + └── name: :^ diff --git a/test/prism/snapshots/seattlerb/call_colon2.txt b/test/prism/snapshots/seattlerb/call_colon2.txt index 42206b4f08..88f0ad11b7 100644 --- a/test/prism/snapshots/seattlerb/call_colon2.txt +++ b/test/prism/snapshots/seattlerb/call_colon2.txt @@ -14,4 +14,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/call_colon_parens.txt b/test/prism/snapshots/seattlerb/call_colon_parens.txt index f1327adac3..9c7a827bad 100644 --- a/test/prism/snapshots/seattlerb/call_colon_parens.txt +++ b/test/prism/snapshots/seattlerb/call_colon_parens.txt @@ -14,4 +14,4 @@ ├── closing_loc: (1,4)-(1,5) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "call" + └── name: :call diff --git a/test/prism/snapshots/seattlerb/call_div.txt b/test/prism/snapshots/seattlerb/call_div.txt index 4a9961847b..17b471d09f 100644 --- a/test/prism/snapshots/seattlerb/call_div.txt +++ b/test/prism/snapshots/seattlerb/call_div.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "/" + └── name: :/ diff --git a/test/prism/snapshots/seattlerb/call_dot_parens.txt b/test/prism/snapshots/seattlerb/call_dot_parens.txt index a473a2258a..9f3d259a01 100644 --- a/test/prism/snapshots/seattlerb/call_dot_parens.txt +++ b/test/prism/snapshots/seattlerb/call_dot_parens.txt @@ -14,4 +14,4 @@ ├── closing_loc: (1,3)-(1,4) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "call" + └── name: :call diff --git a/test/prism/snapshots/seattlerb/call_env.txt b/test/prism/snapshots/seattlerb/call_env.txt index f2996f3a21..af6dd94696 100644 --- a/test/prism/snapshots/seattlerb/call_env.txt +++ b/test/prism/snapshots/seattlerb/call_env.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,2) = "." ├── message_loc: (1,2)-(1,7) = "happy" ├── opening_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "happy" + └── name: :happy diff --git a/test/prism/snapshots/seattlerb/call_eq3.txt b/test/prism/snapshots/seattlerb/call_eq3.txt index 146aa7993a..348c44a171 100644 --- a/test/prism/snapshots/seattlerb/call_eq3.txt +++ b/test/prism/snapshots/seattlerb/call_eq3.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "===" + └── name: :=== diff --git a/test/prism/snapshots/seattlerb/call_gt.txt b/test/prism/snapshots/seattlerb/call_gt.txt index 8cb2772a90..130fc6260e 100644 --- a/test/prism/snapshots/seattlerb/call_gt.txt +++ b/test/prism/snapshots/seattlerb/call_gt.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: ">" + └── name: :> diff --git a/test/prism/snapshots/seattlerb/call_kwsplat.txt b/test/prism/snapshots/seattlerb/call_kwsplat.txt index d750ea21e9..82d7e7834a 100644 --- a/test/prism/snapshots/seattlerb/call_kwsplat.txt +++ b/test/prism/snapshots/seattlerb/call_kwsplat.txt @@ -21,4 +21,4 @@ ├── closing_loc: (1,5)-(1,6) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/call_leading_dots.txt b/test/prism/snapshots/seattlerb/call_leading_dots.txt index a8fad7a4aa..ab3f75d1cb 100644 --- a/test/prism/snapshots/seattlerb/call_leading_dots.txt +++ b/test/prism/snapshots/seattlerb/call_leading_dots.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (2,0)-(2,1) = "." │ ├── message_loc: (2,1)-(2,2) = "b" │ ├── opening_loc: ∅ @@ -24,7 +24,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── call_operator_loc: (3,0)-(3,1) = "." ├── message_loc: (3,1)-(3,2) = "c" ├── opening_loc: ∅ @@ -32,4 +32,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/call_leading_dots_comment.txt b/test/prism/snapshots/seattlerb/call_leading_dots_comment.txt index b21a68b542..6e70d659fe 100644 --- a/test/prism/snapshots/seattlerb/call_leading_dots_comment.txt +++ b/test/prism/snapshots/seattlerb/call_leading_dots_comment.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (2,0)-(2,1) = "." │ ├── message_loc: (2,1)-(2,2) = "b" │ ├── opening_loc: ∅ @@ -24,7 +24,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── call_operator_loc: (4,0)-(4,1) = "." ├── message_loc: (4,1)-(4,2) = "d" ├── opening_loc: ∅ @@ -32,4 +32,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "d" + └── name: :d diff --git a/test/prism/snapshots/seattlerb/call_lt.txt b/test/prism/snapshots/seattlerb/call_lt.txt index dcdfbb3420..3889df0ec8 100644 --- a/test/prism/snapshots/seattlerb/call_lt.txt +++ b/test/prism/snapshots/seattlerb/call_lt.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "<" + └── name: :< diff --git a/test/prism/snapshots/seattlerb/call_lte.txt b/test/prism/snapshots/seattlerb/call_lte.txt index 32f886fa3c..e34712ce06 100644 --- a/test/prism/snapshots/seattlerb/call_lte.txt +++ b/test/prism/snapshots/seattlerb/call_lte.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "<=" + └── name: :<= diff --git a/test/prism/snapshots/seattlerb/call_not.txt b/test/prism/snapshots/seattlerb/call_not.txt index 6c2f2d5f52..a2f0a5e09e 100644 --- a/test/prism/snapshots/seattlerb/call_not.txt +++ b/test/prism/snapshots/seattlerb/call_not.txt @@ -14,4 +14,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/seattlerb/call_pipe.txt b/test/prism/snapshots/seattlerb/call_pipe.txt index 4981718ce9..73475704b7 100644 --- a/test/prism/snapshots/seattlerb/call_pipe.txt +++ b/test/prism/snapshots/seattlerb/call_pipe.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "|" + └── name: :| diff --git a/test/prism/snapshots/seattlerb/call_rshift.txt b/test/prism/snapshots/seattlerb/call_rshift.txt index dd50e3e336..97e38eeba0 100644 --- a/test/prism/snapshots/seattlerb/call_rshift.txt +++ b/test/prism/snapshots/seattlerb/call_rshift.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: ">>" + └── name: :>> diff --git a/test/prism/snapshots/seattlerb/call_self_brackets.txt b/test/prism/snapshots/seattlerb/call_self_brackets.txt index 0fb7d677d8..093c0cebc5 100644 --- a/test/prism/snapshots/seattlerb/call_self_brackets.txt +++ b/test/prism/snapshots/seattlerb/call_self_brackets.txt @@ -17,4 +17,4 @@ ├── closing_loc: (1,6)-(1,7) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]" + └── name: :[] diff --git a/test/prism/snapshots/seattlerb/call_spaceship.txt b/test/prism/snapshots/seattlerb/call_spaceship.txt index 388b8dc427..cd9fb7f143 100644 --- a/test/prism/snapshots/seattlerb/call_spaceship.txt +++ b/test/prism/snapshots/seattlerb/call_spaceship.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "<=>" + └── name: :<=> diff --git a/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt b/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt index 576e1a49b0..6df0123186 100644 --- a/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt +++ b/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt @@ -35,4 +35,4 @@ │ ├── opening_loc: (1,14)-(1,16) = "do" │ └── closing_loc: (1,19)-(1,22) = "end" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt b/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt index 0dc00fd90d..8efbebc0c2 100644 --- a/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt +++ b/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt @@ -35,4 +35,4 @@ │ ├── opening_loc: (1,11)-(1,13) = "do" │ └── closing_loc: (1,16)-(1,19) = "end" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/call_star.txt b/test/prism/snapshots/seattlerb/call_star.txt index bf3fa53b44..79ea40be6b 100644 --- a/test/prism/snapshots/seattlerb/call_star.txt +++ b/test/prism/snapshots/seattlerb/call_star.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "*" + └── name: :* diff --git a/test/prism/snapshots/seattlerb/call_star2.txt b/test/prism/snapshots/seattlerb/call_star2.txt index 960f676135..f34b05ae31 100644 --- a/test/prism/snapshots/seattlerb/call_star2.txt +++ b/test/prism/snapshots/seattlerb/call_star2.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "**" + └── name: :** diff --git a/test/prism/snapshots/seattlerb/call_trailing_comma.txt b/test/prism/snapshots/seattlerb/call_trailing_comma.txt index 91ffc098bf..ada4474ca0 100644 --- a/test/prism/snapshots/seattlerb/call_trailing_comma.txt +++ b/test/prism/snapshots/seattlerb/call_trailing_comma.txt @@ -16,4 +16,4 @@ ├── closing_loc: (1,4)-(1,5) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/call_trailing_dots.txt b/test/prism/snapshots/seattlerb/call_trailing_dots.txt index 828db0ce3b..fd4c001411 100644 --- a/test/prism/snapshots/seattlerb/call_trailing_dots.txt +++ b/test/prism/snapshots/seattlerb/call_trailing_dots.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (1,1)-(1,2) = "." │ ├── message_loc: (2,0)-(2,1) = "b" │ ├── opening_loc: ∅ @@ -24,7 +24,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── call_operator_loc: (2,1)-(2,2) = "." ├── message_loc: (3,0)-(3,1) = "c" ├── opening_loc: ∅ @@ -32,4 +32,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/call_unary_bang.txt b/test/prism/snapshots/seattlerb/call_unary_bang.txt index a3dc0368a5..cd18474439 100644 --- a/test/prism/snapshots/seattlerb/call_unary_bang.txt +++ b/test/prism/snapshots/seattlerb/call_unary_bang.txt @@ -14,4 +14,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/seattlerb/case_in.txt b/test/prism/snapshots/seattlerb/case_in.txt index 94556ddecb..8830f80b87 100644 --- a/test/prism/snapshots/seattlerb/case_in.txt +++ b/test/prism/snapshots/seattlerb/case_in.txt @@ -738,7 +738,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "a" + │ │ │ │ │ └── name: :a │ │ │ │ ├── operator_loc: (90,4)-(90,5) = "^" │ │ │ │ ├── lparen_loc: (90,5)-(90,6) = "(" │ │ │ │ └── rparen_loc: (90,7)-(90,8) = ")" diff --git a/test/prism/snapshots/seattlerb/dasgn_icky2.txt b/test/prism/snapshots/seattlerb/dasgn_icky2.txt index 16864d1e33..3780d74d40 100644 --- a/test/prism/snapshots/seattlerb/dasgn_icky2.txt +++ b/test/prism/snapshots/seattlerb/dasgn_icky2.txt @@ -58,4 +58,4 @@ │ ├── opening_loc: (1,2)-(1,4) = "do" │ └── closing_loc: (8,0)-(8,3) = "end" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt b/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt index 8b85009de0..7fb3e12382 100644 --- a/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt +++ b/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt @@ -37,7 +37,7 @@ │ ├── closing_loc: (1,23)-(1,24) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── locals: [:x, :"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/defn_args_forward_args.txt b/test/prism/snapshots/seattlerb/defn_args_forward_args.txt index 2d033dd1f2..dfd0b67c91 100644 --- a/test/prism/snapshots/seattlerb/defn_args_forward_args.txt +++ b/test/prism/snapshots/seattlerb/defn_args_forward_args.txt @@ -46,7 +46,7 @@ │ ├── closing_loc: (1,35)-(1,36) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── locals: [:x, :y, :z, :"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/defn_endless_command.txt b/test/prism/snapshots/seattlerb/defn_endless_command.txt index 90cfd1c888..276e5129e4 100644 --- a/test/prism/snapshots/seattlerb/defn_endless_command.txt +++ b/test/prism/snapshots/seattlerb/defn_endless_command.txt @@ -24,7 +24,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "other_method" + │ └── name: :other_method ├── locals: [] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt b/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt index 18e019d4f4..cba2899469 100644 --- a/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt +++ b/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt @@ -30,7 +30,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "other_method" + │ └── name: :other_method ├── locals: [] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/defn_forward_args.txt b/test/prism/snapshots/seattlerb/defn_forward_args.txt index 5eb2cf1d18..4f4bc7cc32 100644 --- a/test/prism/snapshots/seattlerb/defn_forward_args.txt +++ b/test/prism/snapshots/seattlerb/defn_forward_args.txt @@ -32,7 +32,7 @@ │ ├── closing_loc: (1,17)-(1,18) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── locals: [:"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt b/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt index 168fdbbb42..f3eaef61f6 100644 --- a/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt +++ b/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt @@ -32,7 +32,7 @@ │ ├── closing_loc: (2,7)-(2,8) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── locals: [:"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_env.txt b/test/prism/snapshots/seattlerb/defn_kwarg_env.txt index 57b835d9d4..a074404002 100644 --- a/test/prism/snapshots/seattlerb/defn_kwarg_env.txt +++ b/test/prism/snapshots/seattlerb/defn_kwarg_env.txt @@ -42,7 +42,7 @@ │ ├── closing_loc: (1,40)-(1,41) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "test_splat" + │ └── name: :test_splat ├── locals: [:testing] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/defn_oneliner.txt b/test/prism/snapshots/seattlerb/defn_oneliner.txt index 55227da074..f95da7886b 100644 --- a/test/prism/snapshots/seattlerb/defn_oneliner.txt +++ b/test/prism/snapshots/seattlerb/defn_oneliner.txt @@ -35,7 +35,7 @@ │ ├── closing_loc: (1,26)-(1,27) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "system" + │ └── name: :system ├── locals: [:cmd] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt b/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt index 1159287905..4863d34dd3 100644 --- a/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt +++ b/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "system" + │ └── name: :system ├── locals: [] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt b/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt index 6634a2c375..2bce8977be 100644 --- a/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt +++ b/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "system" + │ └── name: :system ├── locals: [] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt b/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt index 5fe7779944..57054f77e5 100644 --- a/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt +++ b/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt @@ -38,7 +38,7 @@ │ │ │ ├── closing_loc: (2,12)-(2,13) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "system" + │ │ │ └── name: :system │ │ ├── rescue_clause: │ │ │ @ RescueNode (location: (3,0)-(4,5)) │ │ │ ├── keyword_loc: (3,0)-(3,6) = "rescue" @@ -94,7 +94,7 @@ │ │ │ ├── closing_loc: (9,12)-(9,13) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "system" + │ │ │ └── name: :system │ │ ├── keyword_loc: (9,14)-(9,20) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (9,21)-(9,24)) @@ -139,7 +139,7 @@ │ │ ├── closing_loc: (13,26)-(13,27) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "system" + │ │ └── name: :system │ ├── keyword_loc: (13,28)-(13,34) = "rescue" │ └── rescue_expression: │ @ NilNode (location: (13,35)-(13,38)) diff --git a/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt b/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt index 8b2002ac39..2266ca5c3b 100644 --- a/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt +++ b/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt @@ -31,7 +31,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "x" + │ │ │ └── name: :x │ │ ├── call_operator_loc: (1,15)-(1,16) = "." │ │ ├── message_loc: (1,16)-(1,17) = "y" │ │ ├── opening_loc: ∅ @@ -45,7 +45,7 @@ │ │ │ ├── opening_loc: (1,18)-(1,20) = "do" │ │ │ └── closing_loc: (1,22)-(1,25) = "end" │ │ ├── flags: ∅ - │ │ └── name: "y" + │ │ └── name: :y │ ├── locals: [] │ ├── def_keyword_loc: (1,2)-(1,5) = "def" │ ├── operator_loc: (1,10)-(1,11) = "." @@ -56,4 +56,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/seattlerb/defs_endless_command.txt b/test/prism/snapshots/seattlerb/defs_endless_command.txt index 257b632a3d..330329aafc 100644 --- a/test/prism/snapshots/seattlerb/defs_endless_command.txt +++ b/test/prism/snapshots/seattlerb/defs_endless_command.txt @@ -16,7 +16,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "x" + │ └── name: :x ├── parameters: ∅ ├── body: │ @ StatementsNode (location: (1,20)-(1,35)) @@ -34,7 +34,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "other_method" + │ └── name: :other_method ├── locals: [] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: (1,5)-(1,6) = "." diff --git a/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt b/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt index 0b18829492..6914185c6e 100644 --- a/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt +++ b/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt @@ -16,7 +16,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "x" + │ └── name: :x ├── parameters: ∅ ├── body: │ @ StatementsNode (location: (1,20)-(1,45)) @@ -40,7 +40,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "other_method" + │ └── name: :other_method ├── locals: [] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: (1,5)-(1,6) = "." diff --git a/test/prism/snapshots/seattlerb/defs_oneliner.txt b/test/prism/snapshots/seattlerb/defs_oneliner.txt index 629de9b138..b192e99012 100644 --- a/test/prism/snapshots/seattlerb/defs_oneliner.txt +++ b/test/prism/snapshots/seattlerb/defs_oneliner.txt @@ -36,7 +36,7 @@ │ ├── closing_loc: (1,31)-(1,32) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "system" + │ └── name: :system ├── locals: [:cmd] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: (1,8)-(1,9) = "." diff --git a/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt b/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt index 9e1bea2d2c..8cfc58a8b0 100644 --- a/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt +++ b/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt @@ -39,7 +39,7 @@ │ │ │ ├── closing_loc: (2,12)-(2,13) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "system" + │ │ │ └── name: :system │ │ ├── rescue_clause: │ │ │ @ RescueNode (location: (3,0)-(4,5)) │ │ │ ├── keyword_loc: (3,0)-(3,6) = "rescue" @@ -96,7 +96,7 @@ │ │ │ ├── closing_loc: (9,12)-(9,13) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "system" + │ │ │ └── name: :system │ │ ├── keyword_loc: (9,14)-(9,20) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (9,21)-(9,24)) @@ -142,7 +142,7 @@ │ │ ├── closing_loc: (13,31)-(13,32) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "system" + │ │ └── name: :system │ ├── keyword_loc: (13,33)-(13,39) = "rescue" │ └── rescue_expression: │ @ NilNode (location: (13,40)-(13,43)) diff --git a/test/prism/snapshots/seattlerb/difficult0_.txt b/test/prism/snapshots/seattlerb/difficult0_.txt index f4f9b11560..5de6c44edd 100644 --- a/test/prism/snapshots/seattlerb/difficult0_.txt +++ b/test/prism/snapshots/seattlerb/difficult0_.txt @@ -46,7 +46,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+" + │ │ └── name: :+ │ ├── call_operator_loc: ∅ │ ├── message_loc: (4,4)-(4,5) = "+" │ ├── opening_loc: ∅ @@ -62,8 +62,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/seattlerb/difficult1_line_numbers.txt b/test/prism/snapshots/seattlerb/difficult1_line_numbers.txt index fd98c2a5ef..1740227da7 100644 --- a/test/prism/snapshots/seattlerb/difficult1_line_numbers.txt +++ b/test/prism/snapshots/seattlerb/difficult1_line_numbers.txt @@ -23,7 +23,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "p" + │ │ └── name: :p │ ├── @ CallNode (location: (3,2)-(3,7)) │ │ ├── receiver: │ │ │ @ CallNode (location: (3,2)-(3,3)) @@ -35,7 +35,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── call_operator_loc: (3,3)-(3,4) = "." │ │ ├── message_loc: (3,4)-(3,5) = "b" │ │ ├── opening_loc: ∅ @@ -47,7 +47,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── @ CallNode (location: (4,2)-(4,10)) │ │ ├── receiver: │ │ │ @ CallNode (location: (4,2)-(4,3)) @@ -59,7 +59,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ ├── call_operator_loc: (4,3)-(4,4) = "." │ │ ├── message_loc: (4,4)-(4,5) = "d" │ │ ├── opening_loc: ∅ @@ -73,7 +73,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "d" + │ │ └── name: :d │ ├── @ CallNode (location: (5,2)-(5,7)) │ │ ├── receiver: │ │ │ @ CallNode (location: (5,2)-(5,3)) @@ -85,7 +85,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "e" + │ │ │ └── name: :e │ │ ├── call_operator_loc: (5,3)-(5,4) = "." │ │ ├── message_loc: (5,4)-(5,5) = "f" │ │ ├── opening_loc: ∅ @@ -97,7 +97,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "f" + │ │ └── name: :f │ ├── @ CallNode (location: (6,2)-(6,10)) │ │ ├── receiver: │ │ │ @ CallNode (location: (6,2)-(6,3)) @@ -109,7 +109,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "g" + │ │ │ └── name: :g │ │ ├── call_operator_loc: (6,3)-(6,4) = "." │ │ ├── message_loc: (6,4)-(6,5) = "h" │ │ ├── opening_loc: ∅ @@ -123,7 +123,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "h" + │ │ └── name: :h │ ├── @ CallNode (location: (7,2)-(7,6)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -137,7 +137,7 @@ │ │ ├── closing_loc: (7,5)-(7,6) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "p" + │ │ └── name: :p │ ├── @ CallNode (location: (8,2)-(8,8)) │ │ ├── receiver: │ │ │ @ CallNode (location: (8,2)-(8,3)) @@ -149,7 +149,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── call_operator_loc: (8,3)-(8,4) = "." │ │ ├── message_loc: (8,4)-(8,5) = "b" │ │ ├── opening_loc: (8,5)-(8,6) = "(" @@ -161,7 +161,7 @@ │ │ ├── closing_loc: (8,7)-(8,8) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── @ CallNode (location: (9,2)-(9,11)) │ │ ├── receiver: │ │ │ @ CallNode (location: (9,2)-(9,3)) @@ -173,7 +173,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ ├── call_operator_loc: (9,3)-(9,4) = "." │ │ ├── message_loc: (9,4)-(9,5) = "d" │ │ ├── opening_loc: (9,5)-(9,6) = "(" @@ -187,7 +187,7 @@ │ │ ├── closing_loc: (9,10)-(9,11) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "d" + │ │ └── name: :d │ ├── @ CallNode (location: (10,2)-(10,8)) │ │ ├── receiver: │ │ │ @ CallNode (location: (10,2)-(10,3)) @@ -199,7 +199,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "e" + │ │ │ └── name: :e │ │ ├── call_operator_loc: (10,3)-(10,4) = "." │ │ ├── message_loc: (10,4)-(10,5) = "f" │ │ ├── opening_loc: (10,5)-(10,6) = "(" @@ -211,7 +211,7 @@ │ │ ├── closing_loc: (10,7)-(10,8) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "f" + │ │ └── name: :f │ └── @ CallNode (location: (11,2)-(11,11)) │ ├── receiver: │ │ @ CallNode (location: (11,2)-(11,3)) @@ -223,7 +223,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "g" + │ │ └── name: :g │ ├── call_operator_loc: (11,3)-(11,4) = "." │ ├── message_loc: (11,4)-(11,5) = "h" │ ├── opening_loc: (11,5)-(11,6) = "(" @@ -237,6 +237,6 @@ │ ├── closing_loc: (11,10)-(11,11) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "h" + │ └── name: :h ├── consequent: ∅ └── end_keyword_loc: (12,0)-(12,3) = "end" diff --git a/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt b/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt index ab8857b6d3..9342d3ae27 100644 --- a/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt +++ b/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt @@ -27,7 +27,7 @@ │ │ │ ├── closing_loc: (2,7)-(2,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "p" + │ │ │ └── name: :p │ │ ├── @ LocalVariableWriteNode (location: (3,2)-(3,7)) │ │ │ ├── name: :b │ │ │ ├── depth: 0 @@ -50,7 +50,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "p" + │ │ │ └── name: :p │ │ └── @ LocalVariableWriteNode (location: (5,2)-(5,6)) │ │ ├── name: :c │ │ ├── depth: 0 @@ -70,4 +70,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/difficult2_.txt b/test/prism/snapshots/seattlerb/difficult2_.txt index 6bada8e1be..de1843313c 100644 --- a/test/prism/snapshots/seattlerb/difficult2_.txt +++ b/test/prism/snapshots/seattlerb/difficult2_.txt @@ -28,7 +28,7 @@ │ │ ├── closing_loc: (1,8)-(1,9) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── consequent: │ │ @ ElseNode (location: (1,10)-(1,13)) │ │ ├── else_keyword_loc: (1,10)-(1,11) = ":" @@ -63,4 +63,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/difficult3_.txt b/test/prism/snapshots/seattlerb/difficult3_.txt index 315602ea1e..f86dcd3769 100644 --- a/test/prism/snapshots/seattlerb/difficult3_.txt +++ b/test/prism/snapshots/seattlerb/difficult3_.txt @@ -44,4 +44,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,17)-(1,18) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult3_2.txt b/test/prism/snapshots/seattlerb/difficult3_2.txt index c1ebe5b4cf..49c6345a5a 100644 --- a/test/prism/snapshots/seattlerb/difficult3_2.txt +++ b/test/prism/snapshots/seattlerb/difficult3_2.txt @@ -37,4 +37,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,12)-(1,13) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult3_3.txt b/test/prism/snapshots/seattlerb/difficult3_3.txt index 46160cc33c..d7431da15a 100644 --- a/test/prism/snapshots/seattlerb/difficult3_3.txt +++ b/test/prism/snapshots/seattlerb/difficult3_3.txt @@ -41,4 +41,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,16)-(1,17) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult3_4.txt b/test/prism/snapshots/seattlerb/difficult3_4.txt index 67fe5715a3..7172e296f3 100644 --- a/test/prism/snapshots/seattlerb/difficult3_4.txt +++ b/test/prism/snapshots/seattlerb/difficult3_4.txt @@ -20,7 +20,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── statements: │ │ @ StatementsNode (location: (1,6)-(1,10)) │ │ └── body: (length: 1) diff --git a/test/prism/snapshots/seattlerb/difficult3_5.txt b/test/prism/snapshots/seattlerb/difficult3_5.txt index 174557dc5e..69d6b1e8eb 100644 --- a/test/prism/snapshots/seattlerb/difficult3_5.txt +++ b/test/prism/snapshots/seattlerb/difficult3_5.txt @@ -40,8 +40,8 @@ │ │ ├── opening_loc: (1,11)-(1,13) = "do" │ │ └── closing_loc: (1,14)-(1,17) = "end" │ ├── flags: ∅ - │ └── name: "g" + │ └── name: :g ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult3__10.txt b/test/prism/snapshots/seattlerb/difficult3__10.txt index c70e73eb86..456b5531fe 100644 --- a/test/prism/snapshots/seattlerb/difficult3__10.txt +++ b/test/prism/snapshots/seattlerb/difficult3__10.txt @@ -44,4 +44,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,17)-(1,18) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult3__11.txt b/test/prism/snapshots/seattlerb/difficult3__11.txt index 6dce592668..a4a5422094 100644 --- a/test/prism/snapshots/seattlerb/difficult3__11.txt +++ b/test/prism/snapshots/seattlerb/difficult3__11.txt @@ -40,4 +40,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,13)-(1,14) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult3__12.txt b/test/prism/snapshots/seattlerb/difficult3__12.txt index 67947d6301..569f28f58e 100644 --- a/test/prism/snapshots/seattlerb/difficult3__12.txt +++ b/test/prism/snapshots/seattlerb/difficult3__12.txt @@ -42,4 +42,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,16)-(1,17) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult3__6.txt b/test/prism/snapshots/seattlerb/difficult3__6.txt index ea05a98bbd..37c1ae3700 100644 --- a/test/prism/snapshots/seattlerb/difficult3__6.txt +++ b/test/prism/snapshots/seattlerb/difficult3__6.txt @@ -46,4 +46,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,20)-(1,21) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult3__7.txt b/test/prism/snapshots/seattlerb/difficult3__7.txt index 8c0aa4cf1b..da78704f0c 100644 --- a/test/prism/snapshots/seattlerb/difficult3__7.txt +++ b/test/prism/snapshots/seattlerb/difficult3__7.txt @@ -42,4 +42,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,16)-(1,17) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult3__8.txt b/test/prism/snapshots/seattlerb/difficult3__8.txt index c7e893600c..ee0baf1471 100644 --- a/test/prism/snapshots/seattlerb/difficult3__8.txt +++ b/test/prism/snapshots/seattlerb/difficult3__8.txt @@ -44,4 +44,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,19)-(1,20) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult3__9.txt b/test/prism/snapshots/seattlerb/difficult3__9.txt index 5e1c6b1cab..391bb7b3d1 100644 --- a/test/prism/snapshots/seattlerb/difficult3__9.txt +++ b/test/prism/snapshots/seattlerb/difficult3__9.txt @@ -42,4 +42,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,14)-(1,15) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/difficult4__leading_dots.txt b/test/prism/snapshots/seattlerb/difficult4__leading_dots.txt index acdb72f84c..d4550f9616 100644 --- a/test/prism/snapshots/seattlerb/difficult4__leading_dots.txt +++ b/test/prism/snapshots/seattlerb/difficult4__leading_dots.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (2,0)-(2,1) = "." ├── message_loc: (2,1)-(2,2) = "b" ├── opening_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/difficult6_.txt b/test/prism/snapshots/seattlerb/difficult6_.txt index dd12d42c15..4d8c1c6a56 100644 --- a/test/prism/snapshots/seattlerb/difficult6_.txt +++ b/test/prism/snapshots/seattlerb/difficult6_.txt @@ -54,4 +54,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/seattlerb/difficult6__7.txt b/test/prism/snapshots/seattlerb/difficult6__7.txt index 2ca623e8e8..3ba1a5aa6a 100644 --- a/test/prism/snapshots/seattlerb/difficult6__7.txt +++ b/test/prism/snapshots/seattlerb/difficult6__7.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,2) = "." ├── message_loc: (1,2)-(1,3) = "b" ├── opening_loc: ∅ @@ -46,8 +46,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── opening_loc: (1,8)-(1,9) = "{" │ └── closing_loc: (1,10)-(1,11) = "}" ├── flags: ∅ - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/difficult6__8.txt b/test/prism/snapshots/seattlerb/difficult6__8.txt index 1f7c63ba12..f6f25d5b7f 100644 --- a/test/prism/snapshots/seattlerb/difficult6__8.txt +++ b/test/prism/snapshots/seattlerb/difficult6__8.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "::" ├── message_loc: (1,3)-(1,4) = "b" ├── opening_loc: ∅ @@ -46,8 +46,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── opening_loc: (1,9)-(1,10) = "{" │ └── closing_loc: (1,11)-(1,12) = "}" ├── flags: ∅ - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/difficult7_.txt b/test/prism/snapshots/seattlerb/difficult7_.txt index e567448bcf..2e21faf740 100644 --- a/test/prism/snapshots/seattlerb/difficult7_.txt +++ b/test/prism/snapshots/seattlerb/difficult7_.txt @@ -40,7 +40,7 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "b" + │ │ │ │ │ │ └── name: :b │ │ │ │ │ ├── statements: │ │ │ │ │ │ @ StatementsNode (location: (2,24)-(2,27)) │ │ │ │ │ │ └── body: (length: 1) @@ -53,7 +53,7 @@ │ │ │ │ │ │ ├── closing_loc: (2,26)-(2,27) = ")" │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ │ └── name: "c" + │ │ │ │ │ │ └── name: :c │ │ │ │ │ ├── consequent: │ │ │ │ │ │ @ ElseNode (location: (2,28)-(2,31)) │ │ │ │ │ │ ├── else_keyword_loc: (2,28)-(2,29) = ":" @@ -69,13 +69,13 @@ │ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ │ └── name: :d │ │ │ │ │ │ └── end_keyword_loc: ∅ │ │ │ │ │ └── end_keyword_loc: ∅ │ │ │ │ ├── opening_loc: (2,18)-(2,19) = "{" │ │ │ │ └── closing_loc: (2,32)-(2,33) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "lambda" + │ │ │ └── name: :lambda │ │ └── operator_loc: ∅ │ └── @ AssocNode (location: (3,8)-(3,14)) │ ├── key: diff --git a/test/prism/snapshots/seattlerb/do_bug.txt b/test/prism/snapshots/seattlerb/do_bug.txt index 49b3605da3..74632050ea 100644 --- a/test/prism/snapshots/seattlerb/do_bug.txt +++ b/test/prism/snapshots/seattlerb/do_bug.txt @@ -16,7 +16,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (2,0)-(4,3)) ├── receiver: │ @ CallNode (location: (2,0)-(2,1)) @@ -28,7 +28,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (2,1)-(2,2) = "." ├── message_loc: (2,2)-(2,3) = "b" ├── opening_loc: ∅ @@ -57,4 +57,4 @@ │ ├── opening_loc: (2,4)-(2,6) = "do" │ └── closing_loc: (4,0)-(4,3) = "end" ├── flags: ∅ - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/dot2_nil__26.txt b/test/prism/snapshots/seattlerb/dot2_nil__26.txt index 6e10c48818..caf67e1875 100644 --- a/test/prism/snapshots/seattlerb/dot2_nil__26.txt +++ b/test/prism/snapshots/seattlerb/dot2_nil__26.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── right: ∅ ├── operator_loc: (1,1)-(1,3) = ".." └── flags: ∅ diff --git a/test/prism/snapshots/seattlerb/dot3_nil__26.txt b/test/prism/snapshots/seattlerb/dot3_nil__26.txt index 0da36ab471..e44e359055 100644 --- a/test/prism/snapshots/seattlerb/dot3_nil__26.txt +++ b/test/prism/snapshots/seattlerb/dot3_nil__26.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── right: ∅ ├── operator_loc: (1,1)-(1,4) = "..." └── flags: exclude_end diff --git a/test/prism/snapshots/seattlerb/dstr_evstr.txt b/test/prism/snapshots/seattlerb/dstr_evstr.txt index c070c86f96..88073d9dad 100644 --- a/test/prism/snapshots/seattlerb/dstr_evstr.txt +++ b/test/prism/snapshots/seattlerb/dstr_evstr.txt @@ -32,6 +32,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── closing_loc: (1,10)-(1,11) = "}" └── closing_loc: (1,11)-(1,12) = "\"" diff --git a/test/prism/snapshots/seattlerb/dstr_evstr_empty_end.txt b/test/prism/snapshots/seattlerb/dstr_evstr_empty_end.txt index a51f7fe994..de9c6cd1c7 100644 --- a/test/prism/snapshots/seattlerb/dstr_evstr_empty_end.txt +++ b/test/prism/snapshots/seattlerb/dstr_evstr_empty_end.txt @@ -20,6 +20,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "field" + │ │ └── name: :field │ └── closing_loc: (1,9)-(1,10) = "}" └── closing_loc: (1,10)-(1,11) = "\"" diff --git a/test/prism/snapshots/seattlerb/dstr_lex_state.txt b/test/prism/snapshots/seattlerb/dstr_lex_state.txt index 60d9eff91e..f8817a0a8e 100644 --- a/test/prism/snapshots/seattlerb/dstr_lex_state.txt +++ b/test/prism/snapshots/seattlerb/dstr_lex_state.txt @@ -27,6 +27,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "p" + │ │ └── name: :p │ └── closing_loc: (1,6)-(1,7) = "}" └── closing_loc: (1,7)-(1,8) = "\"" diff --git a/test/prism/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt b/test/prism/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt index 38c745deef..b890280c33 100644 --- a/test/prism/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt +++ b/test/prism/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "h" + │ └── name: :h ├── call_operator_loc: ∅ ├── message_loc: (1,1)-(1,4) = "[k]" ├── opening_loc: (1,1)-(1,2) = "[" @@ -30,7 +30,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "k" + │ │ └── name: :k │ └── @ BeginNode (location: (1,5)-(3,8)) │ ├── begin_keyword_loc: (1,5)-(1,10) = "begin" │ ├── statements: @@ -45,4 +45,4 @@ ├── closing_loc: (1,3)-(1,4) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]=" + └── name: :[]= diff --git a/test/prism/snapshots/seattlerb/evstr_evstr.txt b/test/prism/snapshots/seattlerb/evstr_evstr.txt index 373f49364e..21a5b31dbb 100644 --- a/test/prism/snapshots/seattlerb/evstr_evstr.txt +++ b/test/prism/snapshots/seattlerb/evstr_evstr.txt @@ -20,7 +20,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ └── closing_loc: (1,4)-(1,5) = "}" │ └── @ EmbeddedStatementsNode (location: (1,5)-(1,9)) │ ├── opening_loc: (1,5)-(1,7) = "\#{" @@ -36,6 +36,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── closing_loc: (1,8)-(1,9) = "}" └── closing_loc: (1,9)-(1,10) = "\"" diff --git a/test/prism/snapshots/seattlerb/evstr_str.txt b/test/prism/snapshots/seattlerb/evstr_str.txt index 196014e307..873d6331f5 100644 --- a/test/prism/snapshots/seattlerb/evstr_str.txt +++ b/test/prism/snapshots/seattlerb/evstr_str.txt @@ -20,7 +20,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ └── closing_loc: (1,4)-(1,5) = "}" │ └── @ StringNode (location: (1,5)-(1,7)) │ ├── flags: ∅ diff --git a/test/prism/snapshots/seattlerb/expr_not_bang.txt b/test/prism/snapshots/seattlerb/expr_not_bang.txt index f9679d8df6..081830ca12 100644 --- a/test/prism/snapshots/seattlerb/expr_not_bang.txt +++ b/test/prism/snapshots/seattlerb/expr_not_bang.txt @@ -22,11 +22,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (1,0)-(1,1) = "!" ├── opening_loc: ∅ @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/seattlerb/flip2_env_lvar.txt b/test/prism/snapshots/seattlerb/flip2_env_lvar.txt index 1bd74d2b82..2be8280ee6 100644 --- a/test/prism/snapshots/seattlerb/flip2_env_lvar.txt +++ b/test/prism/snapshots/seattlerb/flip2_env_lvar.txt @@ -17,7 +17,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── right: │ │ @ CallNode (location: (1,6)-(1,7)) │ │ ├── receiver: ∅ @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── operator_loc: (1,4)-(1,6) = ".." │ └── flags: ∅ ├── statements: ∅ diff --git a/test/prism/snapshots/seattlerb/heredoc_squiggly_blank_line_plus_interpolation.txt b/test/prism/snapshots/seattlerb/heredoc_squiggly_blank_line_plus_interpolation.txt index 1d6e533151..eeaa6e73d6 100644 --- a/test/prism/snapshots/seattlerb/heredoc_squiggly_blank_line_plus_interpolation.txt +++ b/test/prism/snapshots/seattlerb/heredoc_squiggly_blank_line_plus_interpolation.txt @@ -41,7 +41,7 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "bar" + │ │ │ │ │ │ └── name: :bar │ │ │ │ │ └── closing_loc: (3,9)-(3,10) = "}" │ │ │ │ └── @ StringNode (location: (3,10)-(3,0)) │ │ │ │ ├── flags: ∅ @@ -57,9 +57,9 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "chop" + │ │ └── name: :chop │ ├── closing_loc: (1,19)-(1,20) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo └── operator_loc: (1,2)-(1,3) = "=" diff --git a/test/prism/snapshots/seattlerb/heredoc_trailing_slash_continued_call.txt b/test/prism/snapshots/seattlerb/heredoc_trailing_slash_continued_call.txt index 810031411c..bd99a60015 100644 --- a/test/prism/snapshots/seattlerb/heredoc_trailing_slash_continued_call.txt +++ b/test/prism/snapshots/seattlerb/heredoc_trailing_slash_continued_call.txt @@ -18,4 +18,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "strip" + └── name: :strip diff --git a/test/prism/snapshots/seattlerb/if_symbol.txt b/test/prism/snapshots/seattlerb/if_symbol.txt index 050960a0b4..cbb6d2e259 100644 --- a/test/prism/snapshots/seattlerb/if_symbol.txt +++ b/test/prism/snapshots/seattlerb/if_symbol.txt @@ -22,7 +22,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── statements: ∅ ├── consequent: ∅ └── end_keyword_loc: (1,9)-(1,12) = "end" diff --git a/test/prism/snapshots/seattlerb/index_0.txt b/test/prism/snapshots/seattlerb/index_0.txt index 6df3611459..7686ef590f 100644 --- a/test/prism/snapshots/seattlerb/index_0.txt +++ b/test/prism/snapshots/seattlerb/index_0.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (1,1)-(1,3) = "[]" ├── opening_loc: (1,1)-(1,2) = "[" @@ -30,8 +30,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b ├── closing_loc: (1,2)-(1,3) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]=" + └── name: :[]= diff --git a/test/prism/snapshots/seattlerb/index_0_opasgn.txt b/test/prism/snapshots/seattlerb/index_0_opasgn.txt index 537bcbf219..1b04d5e0b8 100644 --- a/test/prism/snapshots/seattlerb/index_0_opasgn.txt +++ b/test/prism/snapshots/seattlerb/index_0_opasgn.txt @@ -14,15 +14,15 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (1,1)-(1,3) = "[]" ├── opening_loc: (1,1)-(1,2) = "[" ├── arguments: ∅ ├── closing_loc: (1,2)-(1,3) = "]" ├── flags: ∅ - ├── read_name: "[]" - ├── write_name: "[]=" + ├── read_name: :[] + ├── write_name: :[]= ├── operator: :+ ├── operator_loc: (1,4)-(1,6) = "+=" └── value: @@ -35,4 +35,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/iter_args_1.txt b/test/prism/snapshots/seattlerb/iter_args_1.txt index 922c8167ee..b32558152e 100644 --- a/test/prism/snapshots/seattlerb/iter_args_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_1.txt @@ -35,4 +35,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,10)-(1,11) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_10_1.txt b/test/prism/snapshots/seattlerb/iter_args_10_1.txt index f883cdc457..a3d8c38e33 100644 --- a/test/prism/snapshots/seattlerb/iter_args_10_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_10_1.txt @@ -44,4 +44,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,20)-(1,21) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_10_2.txt b/test/prism/snapshots/seattlerb/iter_args_10_2.txt index 9030ccf61a..6a472f8a84 100644 --- a/test/prism/snapshots/seattlerb/iter_args_10_2.txt +++ b/test/prism/snapshots/seattlerb/iter_args_10_2.txt @@ -48,4 +48,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,24)-(1,25) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_11_1.txt b/test/prism/snapshots/seattlerb/iter_args_11_1.txt index b9c326d2ed..4bc3c815cd 100644 --- a/test/prism/snapshots/seattlerb/iter_args_11_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_11_1.txt @@ -46,4 +46,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,23)-(1,24) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_11_2.txt b/test/prism/snapshots/seattlerb/iter_args_11_2.txt index c1dd485bf3..06bac83f34 100644 --- a/test/prism/snapshots/seattlerb/iter_args_11_2.txt +++ b/test/prism/snapshots/seattlerb/iter_args_11_2.txt @@ -50,4 +50,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,27)-(1,28) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_2__19.txt b/test/prism/snapshots/seattlerb/iter_args_2__19.txt index f6e064ef0f..285002476a 100644 --- a/test/prism/snapshots/seattlerb/iter_args_2__19.txt +++ b/test/prism/snapshots/seattlerb/iter_args_2__19.txt @@ -39,4 +39,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,13)-(1,14) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_3.txt b/test/prism/snapshots/seattlerb/iter_args_3.txt index 3b96f8c4ee..2835f1f432 100644 --- a/test/prism/snapshots/seattlerb/iter_args_3.txt +++ b/test/prism/snapshots/seattlerb/iter_args_3.txt @@ -43,4 +43,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,19)-(1,20) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_4.txt b/test/prism/snapshots/seattlerb/iter_args_4.txt index a39ce2c671..0f1c9ff1f7 100644 --- a/test/prism/snapshots/seattlerb/iter_args_4.txt +++ b/test/prism/snapshots/seattlerb/iter_args_4.txt @@ -39,4 +39,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,15)-(1,16) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_5.txt b/test/prism/snapshots/seattlerb/iter_args_5.txt index b97c1d86ec..02f83566d0 100644 --- a/test/prism/snapshots/seattlerb/iter_args_5.txt +++ b/test/prism/snapshots/seattlerb/iter_args_5.txt @@ -37,4 +37,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,12)-(1,13) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_6.txt b/test/prism/snapshots/seattlerb/iter_args_6.txt index d0f81d32c6..3977309e8f 100644 --- a/test/prism/snapshots/seattlerb/iter_args_6.txt +++ b/test/prism/snapshots/seattlerb/iter_args_6.txt @@ -42,4 +42,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,17)-(1,18) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_7_1.txt b/test/prism/snapshots/seattlerb/iter_args_7_1.txt index 57dc9b5e92..9ffaac91d0 100644 --- a/test/prism/snapshots/seattlerb/iter_args_7_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_7_1.txt @@ -42,4 +42,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,17)-(1,18) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_7_2.txt b/test/prism/snapshots/seattlerb/iter_args_7_2.txt index 7f29777661..dbe44fac64 100644 --- a/test/prism/snapshots/seattlerb/iter_args_7_2.txt +++ b/test/prism/snapshots/seattlerb/iter_args_7_2.txt @@ -46,4 +46,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,21)-(1,22) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_8_1.txt b/test/prism/snapshots/seattlerb/iter_args_8_1.txt index d31b1d6c8c..8be6b9c15c 100644 --- a/test/prism/snapshots/seattlerb/iter_args_8_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_8_1.txt @@ -44,4 +44,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,20)-(1,21) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_8_2.txt b/test/prism/snapshots/seattlerb/iter_args_8_2.txt index 2c2719ffc7..b18a4284a7 100644 --- a/test/prism/snapshots/seattlerb/iter_args_8_2.txt +++ b/test/prism/snapshots/seattlerb/iter_args_8_2.txt @@ -48,4 +48,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,24)-(1,25) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_9_1.txt b/test/prism/snapshots/seattlerb/iter_args_9_1.txt index a04c4da21f..33db33d03a 100644 --- a/test/prism/snapshots/seattlerb/iter_args_9_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_9_1.txt @@ -40,4 +40,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,16)-(1,17) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_args_9_2.txt b/test/prism/snapshots/seattlerb/iter_args_9_2.txt index b9475368a7..ab55180a19 100644 --- a/test/prism/snapshots/seattlerb/iter_args_9_2.txt +++ b/test/prism/snapshots/seattlerb/iter_args_9_2.txt @@ -44,4 +44,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,20)-(1,21) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/iter_kwarg.txt b/test/prism/snapshots/seattlerb/iter_kwarg.txt index 127ce75018..b0b021688f 100644 --- a/test/prism/snapshots/seattlerb/iter_kwarg.txt +++ b/test/prism/snapshots/seattlerb/iter_kwarg.txt @@ -37,4 +37,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,11)-(1,12) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt b/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt index ac4ef0a80d..d06f403185 100644 --- a/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt +++ b/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt @@ -41,4 +41,4 @@ │ ├── opening_loc: (1,2)-(1,3) = "{" │ └── closing_loc: (1,16)-(1,17) = "}" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/label_vs_string.txt b/test/prism/snapshots/seattlerb/label_vs_string.txt index bba7782fe6..c850435487 100644 --- a/test/prism/snapshots/seattlerb/label_vs_string.txt +++ b/test/prism/snapshots/seattlerb/label_vs_string.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "_buf" + │ └── name: :_buf ├── call_operator_loc: ∅ ├── message_loc: (1,5)-(1,7) = "<<" ├── opening_loc: ∅ @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "<<" + └── name: :<< diff --git a/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt b/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt index 5762a91ccd..7a751d6f80 100644 --- a/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt +++ b/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt @@ -21,7 +21,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (3,0)-(3,7)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -40,7 +40,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (5,0)-(5,13)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -64,7 +64,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f └── @ CallNode (location: (7,0)-(7,9)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -88,4 +88,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt b/test/prism/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt index 36ee85c9d9..33b5c9e8ab 100644 --- a/test/prism/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt +++ b/test/prism/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt @@ -23,7 +23,7 @@ │ │ ├── closing_loc: (1,7)-(1,8) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── keyword_loc: (1,9)-(1,15) = "rescue" │ └── rescue_expression: │ @ IntegerNode (location: (1,16)-(1,17)) diff --git a/test/prism/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt b/test/prism/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt index a1e22f1852..f1fbb6da8d 100644 --- a/test/prism/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt +++ b/test/prism/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt @@ -27,5 +27,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b └── operator_loc: (1,2)-(1,3) = "=" diff --git a/test/prism/snapshots/seattlerb/lasgn_command.txt b/test/prism/snapshots/seattlerb/lasgn_command.txt index 30bc60f5bc..aa6ff4733b 100644 --- a/test/prism/snapshots/seattlerb/lasgn_command.txt +++ b/test/prism/snapshots/seattlerb/lasgn_command.txt @@ -19,7 +19,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── call_operator_loc: (1,5)-(1,6) = "." │ ├── message_loc: (1,6)-(1,7) = "c" │ ├── opening_loc: ∅ @@ -31,5 +31,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "c" + │ └── name: :c └── operator_loc: (1,2)-(1,3) = "=" diff --git a/test/prism/snapshots/seattlerb/lasgn_lasgn_command_call.txt b/test/prism/snapshots/seattlerb/lasgn_lasgn_command_call.txt index 0056decf76..fcabf200ca 100644 --- a/test/prism/snapshots/seattlerb/lasgn_lasgn_command_call.txt +++ b/test/prism/snapshots/seattlerb/lasgn_lasgn_command_call.txt @@ -26,6 +26,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "c" + │ │ └── name: :c │ └── operator_loc: (1,6)-(1,7) = "=" └── operator_loc: (1,2)-(1,3) = "=" diff --git a/test/prism/snapshots/seattlerb/lasgn_middle_splat.txt b/test/prism/snapshots/seattlerb/lasgn_middle_splat.txt index c21348bc75..db283c4d07 100644 --- a/test/prism/snapshots/seattlerb/lasgn_middle_splat.txt +++ b/test/prism/snapshots/seattlerb/lasgn_middle_splat.txt @@ -19,7 +19,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── @ SplatNode (location: (1,7)-(1,9)) │ │ │ ├── operator_loc: (1,7)-(1,8) = "*" │ │ │ └── expression: @@ -32,7 +32,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ └── @ CallNode (location: (1,11)-(1,12)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -42,7 +42,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "d" + │ │ └── name: :d │ ├── opening_loc: ∅ │ └── closing_loc: ∅ └── operator_loc: (1,2)-(1,3) = "=" diff --git a/test/prism/snapshots/seattlerb/masgn_anon_splat_arg.txt b/test/prism/snapshots/seattlerb/masgn_anon_splat_arg.txt index 3b0ff6e998..5ccc262305 100644 --- a/test/prism/snapshots/seattlerb/masgn_anon_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/masgn_anon_splat_arg.txt @@ -28,4 +28,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/masgn_arg_colon_arg.txt b/test/prism/snapshots/seattlerb/masgn_arg_colon_arg.txt index c09d215438..87b7f012d8 100644 --- a/test/prism/snapshots/seattlerb/masgn_arg_colon_arg.txt +++ b/test/prism/snapshots/seattlerb/masgn_arg_colon_arg.txt @@ -19,7 +19,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── call_operator_loc: (1,4)-(1,6) = "::" │ ├── message_loc: (1,6)-(1,7) = "c" │ ├── opening_loc: ∅ @@ -27,7 +27,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "c=" + │ └── name: :c= ├── lparen_loc: ∅ ├── rparen_loc: ∅ ├── operator_loc: (1,8)-(1,9) = "=" @@ -41,4 +41,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "d" + └── name: :d diff --git a/test/prism/snapshots/seattlerb/masgn_arg_ident.txt b/test/prism/snapshots/seattlerb/masgn_arg_ident.txt index 670540bb20..11819f9ac1 100644 --- a/test/prism/snapshots/seattlerb/masgn_arg_ident.txt +++ b/test/prism/snapshots/seattlerb/masgn_arg_ident.txt @@ -19,7 +19,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── call_operator_loc: (1,4)-(1,5) = "." │ ├── message_loc: (1,5)-(1,6) = "C" │ ├── opening_loc: ∅ @@ -27,7 +27,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "C=" + │ └── name: :C= ├── lparen_loc: ∅ ├── rparen_loc: ∅ ├── operator_loc: (1,7)-(1,8) = "=" @@ -41,4 +41,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "d" + └── name: :d diff --git a/test/prism/snapshots/seattlerb/masgn_arg_splat_arg.txt b/test/prism/snapshots/seattlerb/masgn_arg_splat_arg.txt index c0849099cd..a350febe3c 100644 --- a/test/prism/snapshots/seattlerb/masgn_arg_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/masgn_arg_splat_arg.txt @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "d" + └── name: :d diff --git a/test/prism/snapshots/seattlerb/masgn_colon2.txt b/test/prism/snapshots/seattlerb/masgn_colon2.txt index 01cf2320fc..2c9ecd75bb 100644 --- a/test/prism/snapshots/seattlerb/masgn_colon2.txt +++ b/test/prism/snapshots/seattlerb/masgn_colon2.txt @@ -19,7 +19,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── child: │ │ @ ConstantReadNode (location: (1,6)-(1,7)) │ │ └── name: :C diff --git a/test/prism/snapshots/seattlerb/masgn_command_call.txt b/test/prism/snapshots/seattlerb/masgn_command_call.txt index becf774546..b2dcc99462 100644 --- a/test/prism/snapshots/seattlerb/masgn_command_call.txt +++ b/test/prism/snapshots/seattlerb/masgn_command_call.txt @@ -26,7 +26,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b ├── call_operator_loc: (1,6)-(1,7) = "." ├── message_loc: (1,7)-(1,8) = "c" ├── opening_loc: ∅ @@ -38,4 +38,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/masgn_double_paren.txt b/test/prism/snapshots/seattlerb/masgn_double_paren.txt index 3dfb782975..d9bc98dbe8 100644 --- a/test/prism/snapshots/seattlerb/masgn_double_paren.txt +++ b/test/prism/snapshots/seattlerb/masgn_double_paren.txt @@ -28,4 +28,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/masgn_paren.txt b/test/prism/snapshots/seattlerb/masgn_paren.txt index 4463b6ac19..9e8ce7a49d 100644 --- a/test/prism/snapshots/seattlerb/masgn_paren.txt +++ b/test/prism/snapshots/seattlerb/masgn_paren.txt @@ -26,7 +26,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "c" + │ └── name: :c ├── call_operator_loc: (1,10)-(1,11) = "." ├── message_loc: (1,11)-(1,12) = "d" ├── opening_loc: ∅ @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "d" + └── name: :d diff --git a/test/prism/snapshots/seattlerb/masgn_splat_arg.txt b/test/prism/snapshots/seattlerb/masgn_splat_arg.txt index 1c29fe51a5..49a30e983a 100644 --- a/test/prism/snapshots/seattlerb/masgn_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/masgn_splat_arg.txt @@ -31,4 +31,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/masgn_splat_arg_arg.txt b/test/prism/snapshots/seattlerb/masgn_splat_arg_arg.txt index 5274cda1b8..c22d376e06 100644 --- a/test/prism/snapshots/seattlerb/masgn_splat_arg_arg.txt +++ b/test/prism/snapshots/seattlerb/masgn_splat_arg_arg.txt @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "d" + └── name: :d diff --git a/test/prism/snapshots/seattlerb/masgn_var_star_var.txt b/test/prism/snapshots/seattlerb/masgn_var_star_var.txt index 7923a9e6f8..7b9e935454 100644 --- a/test/prism/snapshots/seattlerb/masgn_var_star_var.txt +++ b/test/prism/snapshots/seattlerb/masgn_var_star_var.txt @@ -27,4 +27,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/messy_op_asgn_lineno.txt b/test/prism/snapshots/seattlerb/messy_op_asgn_lineno.txt index 44ea4fec29..6a4e292113 100644 --- a/test/prism/snapshots/seattlerb/messy_op_asgn_lineno.txt +++ b/test/prism/snapshots/seattlerb/messy_op_asgn_lineno.txt @@ -44,15 +44,15 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "e" + │ │ │ │ └── name: :e │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ └── operator: :* │ ├── opening_loc: (1,2)-(1,3) = "(" │ └── closing_loc: (1,14)-(1,15) = ")" ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/method_call_assoc_trailing_comma.txt b/test/prism/snapshots/seattlerb/method_call_assoc_trailing_comma.txt index 356831f513..83cf5f17dc 100644 --- a/test/prism/snapshots/seattlerb/method_call_assoc_trailing_comma.txt +++ b/test/prism/snapshots/seattlerb/method_call_assoc_trailing_comma.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,2) = "." ├── message_loc: (1,2)-(1,3) = "f" ├── opening_loc: (1,3)-(1,4) = "(" @@ -34,4 +34,4 @@ ├── closing_loc: (1,9)-(1,10) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/method_call_trailing_comma.txt b/test/prism/snapshots/seattlerb/method_call_trailing_comma.txt index a7ac3c7b6f..649f100978 100644 --- a/test/prism/snapshots/seattlerb/method_call_trailing_comma.txt +++ b/test/prism/snapshots/seattlerb/method_call_trailing_comma.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,2) = "." ├── message_loc: (1,2)-(1,3) = "f" ├── opening_loc: (1,3)-(1,4) = "(" @@ -26,4 +26,4 @@ ├── closing_loc: (1,6)-(1,7) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/mlhs_back_anonsplat.txt b/test/prism/snapshots/seattlerb/mlhs_back_anonsplat.txt index 6166ec0705..e1c1b23e9f 100644 --- a/test/prism/snapshots/seattlerb/mlhs_back_anonsplat.txt +++ b/test/prism/snapshots/seattlerb/mlhs_back_anonsplat.txt @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/mlhs_back_splat.txt b/test/prism/snapshots/seattlerb/mlhs_back_splat.txt index eb41fc6b87..0f1d46ae80 100644 --- a/test/prism/snapshots/seattlerb/mlhs_back_splat.txt +++ b/test/prism/snapshots/seattlerb/mlhs_back_splat.txt @@ -33,4 +33,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/mlhs_front_anonsplat.txt b/test/prism/snapshots/seattlerb/mlhs_front_anonsplat.txt index 76b312d65b..af2c8c9c85 100644 --- a/test/prism/snapshots/seattlerb/mlhs_front_anonsplat.txt +++ b/test/prism/snapshots/seattlerb/mlhs_front_anonsplat.txt @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/mlhs_front_splat.txt b/test/prism/snapshots/seattlerb/mlhs_front_splat.txt index 0fff95f49e..08996bba60 100644 --- a/test/prism/snapshots/seattlerb/mlhs_front_splat.txt +++ b/test/prism/snapshots/seattlerb/mlhs_front_splat.txt @@ -37,4 +37,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/mlhs_keyword.txt b/test/prism/snapshots/seattlerb/mlhs_keyword.txt index 05cf9c9ce9..0117b4ab03 100644 --- a/test/prism/snapshots/seattlerb/mlhs_keyword.txt +++ b/test/prism/snapshots/seattlerb/mlhs_keyword.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,2) = "." ├── message_loc: (1,2)-(1,4) = "!=" ├── opening_loc: (1,4)-(1,5) = "(" @@ -26,4 +26,4 @@ ├── closing_loc: (1,15)-(1,16) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "!=" + └── name: :!= diff --git a/test/prism/snapshots/seattlerb/mlhs_mid_anonsplat.txt b/test/prism/snapshots/seattlerb/mlhs_mid_anonsplat.txt index b2448bc839..6f98c0efeb 100644 --- a/test/prism/snapshots/seattlerb/mlhs_mid_anonsplat.txt +++ b/test/prism/snapshots/seattlerb/mlhs_mid_anonsplat.txt @@ -39,4 +39,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/mlhs_mid_splat.txt b/test/prism/snapshots/seattlerb/mlhs_mid_splat.txt index 704f9f1c80..01e181f347 100644 --- a/test/prism/snapshots/seattlerb/mlhs_mid_splat.txt +++ b/test/prism/snapshots/seattlerb/mlhs_mid_splat.txt @@ -42,4 +42,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/mlhs_rescue.txt b/test/prism/snapshots/seattlerb/mlhs_rescue.txt index d6e2f7a75f..9f833537ab 100644 --- a/test/prism/snapshots/seattlerb/mlhs_rescue.txt +++ b/test/prism/snapshots/seattlerb/mlhs_rescue.txt @@ -26,7 +26,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "f" + │ └── name: :f ├── keyword_loc: (1,9)-(1,15) = "rescue" └── rescue_expression: @ IntegerNode (location: (1,16)-(1,18)) diff --git a/test/prism/snapshots/seattlerb/multiline_hash_declaration.txt b/test/prism/snapshots/seattlerb/multiline_hash_declaration.txt index 5c7453727b..847607ad24 100644 --- a/test/prism/snapshots/seattlerb/multiline_hash_declaration.txt +++ b/test/prism/snapshots/seattlerb/multiline_hash_declaration.txt @@ -29,7 +29,7 @@ │ ├── closing_loc: (3,1)-(3,2) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (5,0)-(6,2)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -56,7 +56,7 @@ │ ├── closing_loc: (6,1)-(6,2) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f └── @ CallNode (location: (8,0)-(8,12)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -83,4 +83,4 @@ ├── closing_loc: (8,11)-(8,12) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/op_asgn_command_call.txt b/test/prism/snapshots/seattlerb/op_asgn_command_call.txt index d986eccdb9..aa7d56d643 100644 --- a/test/prism/snapshots/seattlerb/op_asgn_command_call.txt +++ b/test/prism/snapshots/seattlerb/op_asgn_command_call.txt @@ -18,7 +18,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── call_operator_loc: (1,7)-(1,8) = "." │ ├── message_loc: (1,8)-(1,9) = "c" │ ├── opening_loc: ∅ @@ -30,6 +30,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "c" + │ └── name: :c ├── name: :a └── depth: 0 diff --git a/test/prism/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt b/test/prism/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt index 62853c9475..1f0caced38 100644 --- a/test/prism/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt +++ b/test/prism/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt @@ -13,8 +13,8 @@ ├── arguments: ∅ ├── closing_loc: ∅ ├── flags: ∅ - ├── read_name: "B" - ├── write_name: "B=" + ├── read_name: :B + ├── write_name: :B= ├── operator_loc: (1,4)-(1,7) = "||=" └── value: @ CallNode (location: (1,8)-(1,11)) @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/op_asgn_index_command_call.txt b/test/prism/snapshots/seattlerb/op_asgn_index_command_call.txt index 33f094b849..d418b35424 100644 --- a/test/prism/snapshots/seattlerb/op_asgn_index_command_call.txt +++ b/test/prism/snapshots/seattlerb/op_asgn_index_command_call.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (1,1)-(1,5) = "[:b]" ├── opening_loc: (1,1)-(1,2) = "[" @@ -28,8 +28,8 @@ │ └── unescaped: "b" ├── closing_loc: (1,4)-(1,5) = "]" ├── flags: ∅ - ├── read_name: "[]" - ├── write_name: "[]=" + ├── read_name: :[] + ├── write_name: :[]= ├── operator_loc: (1,6)-(1,9) = "||=" └── value: @ CallNode (location: (1,10)-(1,16)) @@ -47,4 +47,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/op_asgn_primary_colon_const_command_call.txt b/test/prism/snapshots/seattlerb/op_asgn_primary_colon_const_command_call.txt index 81568afe4b..5ea5fc6d56 100644 --- a/test/prism/snapshots/seattlerb/op_asgn_primary_colon_const_command_call.txt +++ b/test/prism/snapshots/seattlerb/op_asgn_primary_colon_const_command_call.txt @@ -32,9 +32,9 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "d" + │ │ └── name: :d │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "c" + │ └── name: :c └── operator: :* diff --git a/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt b/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt index f03c9057a3..7d1db9d8bd 100644 --- a/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt +++ b/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt @@ -13,8 +13,8 @@ ├── arguments: ∅ ├── closing_loc: ∅ ├── flags: ∅ - ├── read_name: "b" - ├── write_name: "b=" + ├── read_name: :b + ├── write_name: :b= ├── operator: :+ ├── operator_loc: (1,5)-(1,7) = "+=" └── value: diff --git a/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier_command_call.txt b/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier_command_call.txt index addc999eec..26e5b668ee 100644 --- a/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier_command_call.txt +++ b/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier_command_call.txt @@ -13,8 +13,8 @@ ├── arguments: ∅ ├── closing_loc: ∅ ├── flags: ∅ - ├── read_name: "b" - ├── write_name: "b=" + ├── read_name: :b + ├── write_name: :b= ├── operator: :* ├── operator_loc: (1,5)-(1,7) = "*=" └── value: @@ -35,8 +35,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "d" + │ └── name: :d ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt b/test/prism/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt index e6c9d1efd4..0be98edda6 100644 --- a/test/prism/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt +++ b/test/prism/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt @@ -14,15 +14,15 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,2) = "." ├── message_loc: (1,2)-(1,3) = "b" ├── opening_loc: ∅ ├── arguments: ∅ ├── closing_loc: ∅ ├── flags: ∅ - ├── read_name: "b" - ├── write_name: "b=" + ├── read_name: :b + ├── write_name: :b= ├── operator_loc: (1,4)-(1,7) = "||=" └── value: @ CallNode (location: (1,8)-(1,11)) @@ -38,4 +38,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/parse_if_not_canonical.txt b/test/prism/snapshots/seattlerb/parse_if_not_canonical.txt index a8c1aede4a..8a19497fbf 100644 --- a/test/prism/snapshots/seattlerb/parse_if_not_canonical.txt +++ b/test/prism/snapshots/seattlerb/parse_if_not_canonical.txt @@ -19,7 +19,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "var" + │ │ │ └── name: :var │ │ ├── call_operator_loc: (1,10)-(1,11) = "." │ │ ├── message_loc: (1,11)-(1,15) = "nil?" │ │ ├── opening_loc: ∅ @@ -27,7 +27,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "nil?" + │ │ └── name: :nil? │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,3)-(1,6) = "not" │ ├── opening_loc: ∅ @@ -35,7 +35,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── statements: │ @ StatementsNode (location: (1,21)-(1,26)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/seattlerb/parse_if_not_noncanonical.txt b/test/prism/snapshots/seattlerb/parse_if_not_noncanonical.txt index a8c1aede4a..8a19497fbf 100644 --- a/test/prism/snapshots/seattlerb/parse_if_not_noncanonical.txt +++ b/test/prism/snapshots/seattlerb/parse_if_not_noncanonical.txt @@ -19,7 +19,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "var" + │ │ │ └── name: :var │ │ ├── call_operator_loc: (1,10)-(1,11) = "." │ │ ├── message_loc: (1,11)-(1,15) = "nil?" │ │ ├── opening_loc: ∅ @@ -27,7 +27,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "nil?" + │ │ └── name: :nil? │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,3)-(1,6) = "not" │ ├── opening_loc: ∅ @@ -35,7 +35,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── statements: │ @ StatementsNode (location: (1,21)-(1,26)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/seattlerb/parse_line_block.txt b/test/prism/snapshots/seattlerb/parse_line_block.txt index f75ed80127..4a89565fe8 100644 --- a/test/prism/snapshots/seattlerb/parse_line_block.txt +++ b/test/prism/snapshots/seattlerb/parse_line_block.txt @@ -25,4 +25,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/seattlerb/parse_line_block_inline_comment.txt b/test/prism/snapshots/seattlerb/parse_line_block_inline_comment.txt index 0cae7d514b..de8c8ab321 100644 --- a/test/prism/snapshots/seattlerb/parse_line_block_inline_comment.txt +++ b/test/prism/snapshots/seattlerb/parse_line_block_inline_comment.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (2,0)-(2,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -22,7 +22,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b └── @ CallNode (location: (3,0)-(3,1)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -32,4 +32,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/parse_line_block_inline_comment_leading_newlines.txt b/test/prism/snapshots/seattlerb/parse_line_block_inline_comment_leading_newlines.txt index 5bb55d0f6a..7cbf48fb0b 100644 --- a/test/prism/snapshots/seattlerb/parse_line_block_inline_comment_leading_newlines.txt +++ b/test/prism/snapshots/seattlerb/parse_line_block_inline_comment_leading_newlines.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (5,0)-(5,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -22,7 +22,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b └── @ CallNode (location: (7,0)-(7,1)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -32,4 +32,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/parse_line_block_inline_multiline_comment.txt b/test/prism/snapshots/seattlerb/parse_line_block_inline_multiline_comment.txt index 2aa469b88c..8811057277 100644 --- a/test/prism/snapshots/seattlerb/parse_line_block_inline_multiline_comment.txt +++ b/test/prism/snapshots/seattlerb/parse_line_block_inline_multiline_comment.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (2,0)-(2,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -22,7 +22,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b └── @ CallNode (location: (4,0)-(4,1)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -32,4 +32,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/parse_line_call_ivar_arg_no_parens_line_break.txt b/test/prism/snapshots/seattlerb/parse_line_call_ivar_arg_no_parens_line_break.txt index a70dee6c7c..64ae658e05 100644 --- a/test/prism/snapshots/seattlerb/parse_line_call_ivar_arg_no_parens_line_break.txt +++ b/test/prism/snapshots/seattlerb/parse_line_call_ivar_arg_no_parens_line_break.txt @@ -16,4 +16,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/parse_line_call_ivar_line_break_paren.txt b/test/prism/snapshots/seattlerb/parse_line_call_ivar_line_break_paren.txt index 9aa87bb1b7..a760af7c35 100644 --- a/test/prism/snapshots/seattlerb/parse_line_call_ivar_line_break_paren.txt +++ b/test/prism/snapshots/seattlerb/parse_line_call_ivar_line_break_paren.txt @@ -16,4 +16,4 @@ ├── closing_loc: (2,0)-(2,1) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt b/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt index cc71f259bf..ff9affc193 100644 --- a/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt +++ b/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt @@ -51,8 +51,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+" + │ │ └── name: :+ │ ├── opening_loc: (1,2)-(1,4) = "do" │ └── closing_loc: (3,0)-(3,3) = "end" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt b/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt index f2fa55fb2d..c157cce7f6 100644 --- a/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt +++ b/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt @@ -35,7 +35,7 @@ │ │ ├── closing_loc: (2,5)-(2,6) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "p" + │ │ └── name: :p │ ├── @ LocalVariableOperatorWriteNode (location: (3,2)-(3,8)) │ │ ├── name_loc: (3,2)-(3,3) = "y" │ │ ├── operator_loc: (3,4)-(3,6) = "*=" diff --git a/test/prism/snapshots/seattlerb/parse_line_dot2.txt b/test/prism/snapshots/seattlerb/parse_line_dot2.txt index 3c2cd7a8ca..ed8d7f900b 100644 --- a/test/prism/snapshots/seattlerb/parse_line_dot2.txt +++ b/test/prism/snapshots/seattlerb/parse_line_dot2.txt @@ -23,7 +23,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── right: │ │ @ CallNode (location: (4,0)-(4,1)) │ │ ├── receiver: ∅ @@ -34,7 +34,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── operator_loc: (3,1)-(3,3) = ".." │ └── flags: ∅ └── @ CallNode (location: (5,0)-(5,1)) @@ -46,4 +46,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/parse_line_dot2_open.txt b/test/prism/snapshots/seattlerb/parse_line_dot2_open.txt index 03183f59b1..90370375d9 100644 --- a/test/prism/snapshots/seattlerb/parse_line_dot2_open.txt +++ b/test/prism/snapshots/seattlerb/parse_line_dot2_open.txt @@ -21,7 +21,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── right: ∅ │ ├── operator_loc: (2,3)-(2,5) = ".." │ └── flags: ∅ @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/parse_line_dot3.txt b/test/prism/snapshots/seattlerb/parse_line_dot3.txt index cb6d394d76..3005180bc1 100644 --- a/test/prism/snapshots/seattlerb/parse_line_dot3.txt +++ b/test/prism/snapshots/seattlerb/parse_line_dot3.txt @@ -23,7 +23,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── right: │ │ @ CallNode (location: (4,0)-(4,1)) │ │ ├── receiver: ∅ @@ -34,7 +34,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── operator_loc: (3,1)-(3,4) = "..." │ └── flags: exclude_end └── @ CallNode (location: (5,0)-(5,1)) @@ -46,4 +46,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/parse_line_dot3_open.txt b/test/prism/snapshots/seattlerb/parse_line_dot3_open.txt index ec9b0f8f82..c46da1fc5a 100644 --- a/test/prism/snapshots/seattlerb/parse_line_dot3_open.txt +++ b/test/prism/snapshots/seattlerb/parse_line_dot3_open.txt @@ -21,7 +21,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── right: ∅ │ ├── operator_loc: (2,3)-(2,6) = "..." │ └── flags: exclude_end @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/parse_line_evstr_after_break.txt b/test/prism/snapshots/seattlerb/parse_line_evstr_after_break.txt index 931556aabc..662bd86c05 100644 --- a/test/prism/snapshots/seattlerb/parse_line_evstr_after_break.txt +++ b/test/prism/snapshots/seattlerb/parse_line_evstr_after_break.txt @@ -29,6 +29,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── closing_loc: (2,4)-(2,5) = "}" └── closing_loc: (2,5)-(2,6) = "\"" diff --git a/test/prism/snapshots/seattlerb/parse_line_heredoc.txt b/test/prism/snapshots/seattlerb/parse_line_heredoc.txt index 47a4f82f16..5b4ab8129b 100644 --- a/test/prism/snapshots/seattlerb/parse_line_heredoc.txt +++ b/test/prism/snapshots/seattlerb/parse_line_heredoc.txt @@ -23,7 +23,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "strip" + │ │ └── name: :strip │ └── operator_loc: (1,13)-(1,14) = "=" └── @ CallNode (location: (4,6)-(4,17)) ├── receiver: ∅ @@ -39,4 +39,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "puts" + └── name: :puts diff --git a/test/prism/snapshots/seattlerb/parse_line_heredoc_evstr.txt b/test/prism/snapshots/seattlerb/parse_line_heredoc_evstr.txt index d32f4fa7a1..84efb8ead7 100644 --- a/test/prism/snapshots/seattlerb/parse_line_heredoc_evstr.txt +++ b/test/prism/snapshots/seattlerb/parse_line_heredoc_evstr.txt @@ -26,7 +26,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── closing_loc: (3,3)-(3,4) = "}" │ └── @ StringNode (location: (3,4)-(3,0)) │ ├── flags: ∅ diff --git a/test/prism/snapshots/seattlerb/parse_line_heredoc_regexp_chars.txt b/test/prism/snapshots/seattlerb/parse_line_heredoc_regexp_chars.txt index f351c424f0..768709e368 100644 --- a/test/prism/snapshots/seattlerb/parse_line_heredoc_regexp_chars.txt +++ b/test/prism/snapshots/seattlerb/parse_line_heredoc_regexp_chars.txt @@ -29,4 +29,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "puts" + └── name: :puts diff --git a/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt b/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt index f4c6adaf93..b9846b2be7 100644 --- a/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt +++ b/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── closing_loc: ∅ ├── block: │ @ BlockNode (location: (1,4)-(3,3)) @@ -63,8 +63,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+" + │ │ └── name: :+ │ ├── opening_loc: (1,4)-(1,6) = "do" │ └── closing_loc: (3,0)-(3,3) = "end" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt b/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt index f5240a5534..e3c740bc9d 100644 --- a/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt +++ b/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── closing_loc: (1,3)-(1,4) = ")" ├── block: │ @ BlockNode (location: (1,5)-(3,3)) @@ -63,8 +63,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+" + │ │ └── name: :+ │ ├── opening_loc: (1,5)-(1,7) = "do" │ └── closing_loc: (3,0)-(3,3) = "end" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/seattlerb/parse_line_op_asgn.txt b/test/prism/snapshots/seattlerb/parse_line_op_asgn.txt index e10f376dac..a024abcd31 100644 --- a/test/prism/snapshots/seattlerb/parse_line_op_asgn.txt +++ b/test/prism/snapshots/seattlerb/parse_line_op_asgn.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── name: :foo │ ├── operator: :+ │ └── depth: 0 @@ -29,4 +29,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "baz" + └── name: :baz diff --git a/test/prism/snapshots/seattlerb/parse_line_postexe.txt b/test/prism/snapshots/seattlerb/parse_line_postexe.txt index 507fba834b..9b31bda328 100644 --- a/test/prism/snapshots/seattlerb/parse_line_postexe.txt +++ b/test/prism/snapshots/seattlerb/parse_line_postexe.txt @@ -16,7 +16,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── keyword_loc: (1,0)-(1,3) = "END" ├── opening_loc: (1,4)-(1,5) = "{" └── closing_loc: (3,0)-(3,1) = "}" diff --git a/test/prism/snapshots/seattlerb/parse_line_preexe.txt b/test/prism/snapshots/seattlerb/parse_line_preexe.txt index 3b2f75fdd0..573ab171f9 100644 --- a/test/prism/snapshots/seattlerb/parse_line_preexe.txt +++ b/test/prism/snapshots/seattlerb/parse_line_preexe.txt @@ -16,7 +16,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── keyword_loc: (1,0)-(1,5) = "BEGIN" ├── opening_loc: (1,6)-(1,7) = "{" └── closing_loc: (3,0)-(3,1) = "}" diff --git a/test/prism/snapshots/seattlerb/parse_line_rescue.txt b/test/prism/snapshots/seattlerb/parse_line_rescue.txt index 4b4de20405..c30cf03e87 100644 --- a/test/prism/snapshots/seattlerb/parse_line_rescue.txt +++ b/test/prism/snapshots/seattlerb/parse_line_rescue.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── rescue_clause: │ @ RescueNode (location: (3,0)-(6,3)) │ ├── keyword_loc: (3,0)-(3,6) = "rescue" @@ -36,7 +36,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── consequent: │ @ RescueNode (location: (5,0)-(6,3)) │ ├── keyword_loc: (5,0)-(5,6) = "rescue" @@ -55,7 +55,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ └── consequent: ∅ ├── else_clause: ∅ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/seattlerb/parse_line_str_with_newline_escape.txt b/test/prism/snapshots/seattlerb/parse_line_str_with_newline_escape.txt index 29f76ea9ba..31f2c955fd 100644 --- a/test/prism/snapshots/seattlerb/parse_line_str_with_newline_escape.txt +++ b/test/prism/snapshots/seattlerb/parse_line_str_with_newline_escape.txt @@ -21,4 +21,4 @@ ├── closing_loc: (1,12)-(1,13) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/parse_line_to_ary.txt b/test/prism/snapshots/seattlerb/parse_line_to_ary.txt index dffbdcbcd0..7aa6dcd035 100644 --- a/test/prism/snapshots/seattlerb/parse_line_to_ary.txt +++ b/test/prism/snapshots/seattlerb/parse_line_to_ary.txt @@ -24,7 +24,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "c" + │ └── name: :c └── @ CallNode (location: (3,0)-(3,1)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "d" + └── name: :d diff --git a/test/prism/snapshots/seattlerb/parse_line_trailing_newlines.txt b/test/prism/snapshots/seattlerb/parse_line_trailing_newlines.txt index cd019a3045..f73d884d01 100644 --- a/test/prism/snapshots/seattlerb/parse_line_trailing_newlines.txt +++ b/test/prism/snapshots/seattlerb/parse_line_trailing_newlines.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (2,0)-(2,1)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt b/test/prism/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt index b831cc094a..5c0b958e4e 100644 --- a/test/prism/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt +++ b/test/prism/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt @@ -26,4 +26,4 @@ ├── closing_loc: (1,7)-(1,8) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]" + └── name: :[] diff --git a/test/prism/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt b/test/prism/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt index 9e61b425fc..3742cc8b22 100644 --- a/test/prism/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt +++ b/test/prism/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt @@ -18,4 +18,4 @@ ├── closing_loc: (1,4)-(1,5) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]" + └── name: :[] diff --git a/test/prism/snapshots/seattlerb/parse_pattern_044.txt b/test/prism/snapshots/seattlerb/parse_pattern_044.txt index 6d4dee139c..c354112ebf 100644 --- a/test/prism/snapshots/seattlerb/parse_pattern_044.txt +++ b/test/prism/snapshots/seattlerb/parse_pattern_044.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "obj" + │ └── name: :obj ├── conditions: (length: 1) │ └── @ InNode (location: (2,0)-(3,6)) │ ├── pattern: diff --git a/test/prism/snapshots/seattlerb/parse_until_not_canonical.txt b/test/prism/snapshots/seattlerb/parse_until_not_canonical.txt index a6f6be9789..083bbc4f7e 100644 --- a/test/prism/snapshots/seattlerb/parse_until_not_canonical.txt +++ b/test/prism/snapshots/seattlerb/parse_until_not_canonical.txt @@ -20,7 +20,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "var" + │ │ │ └── name: :var │ │ ├── call_operator_loc: (1,13)-(1,14) = "." │ │ ├── message_loc: (1,14)-(1,18) = "nil?" │ │ ├── opening_loc: ∅ @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "nil?" + │ │ └── name: :nil? │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,6)-(1,9) = "not" │ ├── opening_loc: ∅ @@ -36,7 +36,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── statements: │ @ StatementsNode (location: (2,2)-(2,7)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/seattlerb/parse_until_not_noncanonical.txt b/test/prism/snapshots/seattlerb/parse_until_not_noncanonical.txt index a6f6be9789..083bbc4f7e 100644 --- a/test/prism/snapshots/seattlerb/parse_until_not_noncanonical.txt +++ b/test/prism/snapshots/seattlerb/parse_until_not_noncanonical.txt @@ -20,7 +20,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "var" + │ │ │ └── name: :var │ │ ├── call_operator_loc: (1,13)-(1,14) = "." │ │ ├── message_loc: (1,14)-(1,18) = "nil?" │ │ ├── opening_loc: ∅ @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "nil?" + │ │ └── name: :nil? │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,6)-(1,9) = "not" │ ├── opening_loc: ∅ @@ -36,7 +36,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── statements: │ @ StatementsNode (location: (2,2)-(2,7)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/seattlerb/parse_while_not_canonical.txt b/test/prism/snapshots/seattlerb/parse_while_not_canonical.txt index d96f4018d7..783c87750a 100644 --- a/test/prism/snapshots/seattlerb/parse_while_not_canonical.txt +++ b/test/prism/snapshots/seattlerb/parse_while_not_canonical.txt @@ -20,7 +20,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "var" + │ │ │ └── name: :var │ │ ├── call_operator_loc: (1,13)-(1,14) = "." │ │ ├── message_loc: (1,14)-(1,18) = "nil?" │ │ ├── opening_loc: ∅ @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "nil?" + │ │ └── name: :nil? │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,6)-(1,9) = "not" │ ├── opening_loc: ∅ @@ -36,7 +36,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── statements: │ @ StatementsNode (location: (2,2)-(2,7)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/seattlerb/parse_while_not_noncanonical.txt b/test/prism/snapshots/seattlerb/parse_while_not_noncanonical.txt index d96f4018d7..783c87750a 100644 --- a/test/prism/snapshots/seattlerb/parse_while_not_noncanonical.txt +++ b/test/prism/snapshots/seattlerb/parse_while_not_noncanonical.txt @@ -20,7 +20,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "var" + │ │ │ └── name: :var │ │ ├── call_operator_loc: (1,13)-(1,14) = "." │ │ ├── message_loc: (1,14)-(1,18) = "nil?" │ │ ├── opening_loc: ∅ @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "nil?" + │ │ └── name: :nil? │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,6)-(1,9) = "not" │ ├── opening_loc: ∅ @@ -36,7 +36,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── statements: │ @ StatementsNode (location: (2,2)-(2,7)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/seattlerb/pipe_semicolon.txt b/test/prism/snapshots/seattlerb/pipe_semicolon.txt index a102fdd0a1..d38daaae73 100644 --- a/test/prism/snapshots/seattlerb/pipe_semicolon.txt +++ b/test/prism/snapshots/seattlerb/pipe_semicolon.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,2) = "." ├── message_loc: (1,2)-(1,3) = "b" ├── opening_loc: ∅ @@ -35,4 +35,4 @@ │ ├── opening_loc: (1,4)-(1,6) = "do" │ └── closing_loc: (1,15)-(1,18) = "end" ├── flags: ∅ - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/pipe_space.txt b/test/prism/snapshots/seattlerb/pipe_space.txt index 7f3738fd5d..6e60c324dd 100644 --- a/test/prism/snapshots/seattlerb/pipe_space.txt +++ b/test/prism/snapshots/seattlerb/pipe_space.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,2) = "." ├── message_loc: (1,2)-(1,3) = "b" ├── opening_loc: ∅ @@ -33,4 +33,4 @@ │ ├── opening_loc: (1,4)-(1,6) = "do" │ └── closing_loc: (1,11)-(1,14) = "end" ├── flags: ∅ - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/qsymbols_interp.txt b/test/prism/snapshots/seattlerb/qsymbols_interp.txt index 4c2ffb3393..48ffb15ba6 100644 --- a/test/prism/snapshots/seattlerb/qsymbols_interp.txt +++ b/test/prism/snapshots/seattlerb/qsymbols_interp.txt @@ -39,7 +39,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "+" + │ │ │ │ └── name: :+ │ │ │ └── closing_loc: (1,11)-(1,12) = "}" │ │ └── closing_loc: ∅ │ └── @ SymbolNode (location: (1,13)-(1,14)) diff --git a/test/prism/snapshots/seattlerb/quoted_symbol_hash_arg.txt b/test/prism/snapshots/seattlerb/quoted_symbol_hash_arg.txt index a5877fac0c..2bd28eb91f 100644 --- a/test/prism/snapshots/seattlerb/quoted_symbol_hash_arg.txt +++ b/test/prism/snapshots/seattlerb/quoted_symbol_hash_arg.txt @@ -29,4 +29,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "puts" + └── name: :puts diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt b/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt index e5f1a1e2ab..4f247496bc 100644 --- a/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt +++ b/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt @@ -45,7 +45,7 @@ │ │ ├── opening_loc: (1,5)-(1,7) = "do" │ │ └── closing_loc: (5,0)-(5,3) = "end" │ ├── flags: ∅ - │ └── name: "proc" + │ └── name: :proc ├── call_operator_loc: (5,3)-(5,4) = "." ├── message_loc: (5,4)-(5,8) = "call" ├── opening_loc: ∅ @@ -53,4 +53,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "call" + └── name: :call diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt b/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt index 88907d510d..47b810c41f 100644 --- a/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt +++ b/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt @@ -68,4 +68,4 @@ │ ├── opening_loc: (1,4)-(1,6) = "do" │ └── closing_loc: (9,0)-(9,3) = "end" ├── flags: ∅ - └── name: "tap" + └── name: :tap diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt b/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt index c0fd317c9e..280ac567b9 100644 --- a/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt +++ b/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt @@ -29,7 +29,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "raise" + │ │ │ └── name: :raise │ │ ├── rescue_clause: ∅ │ │ ├── else_clause: ∅ │ │ ├── ensure_clause: @@ -48,4 +48,4 @@ │ ├── opening_loc: (1,4)-(1,6) = "do" │ └── closing_loc: (5,0)-(5,3) = "end" ├── flags: ∅ - └── name: "tap" + └── name: :tap diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt b/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt index 91e8062ae3..8da45bf3d0 100644 --- a/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt +++ b/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt @@ -29,7 +29,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "raise" + │ │ │ └── name: :raise │ │ ├── rescue_clause: │ │ │ @ RescueNode (location: (3,0)-(4,9)) │ │ │ ├── keyword_loc: (3,0)-(3,6) = "rescue" @@ -73,4 +73,4 @@ │ ├── opening_loc: (1,4)-(1,6) = "do" │ └── closing_loc: (9,0)-(9,3) = "end" ├── flags: ∅ - └── name: "tap" + └── name: :tap diff --git a/test/prism/snapshots/seattlerb/rescue_in_block.txt b/test/prism/snapshots/seattlerb/rescue_in_block.txt index 58f6282558..a5a6e43ef5 100644 --- a/test/prism/snapshots/seattlerb/rescue_in_block.txt +++ b/test/prism/snapshots/seattlerb/rescue_in_block.txt @@ -36,7 +36,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "stuff" + │ │ │ │ └── name: :stuff │ │ │ └── consequent: ∅ │ │ ├── else_clause: ∅ │ │ ├── ensure_clause: ∅ @@ -44,4 +44,4 @@ │ ├── opening_loc: (1,5)-(1,7) = "do" │ └── closing_loc: (4,0)-(4,3) = "end" ├── flags: ∅ - └── name: "blah" + └── name: :blah diff --git a/test/prism/snapshots/seattlerb/rescue_parens.txt b/test/prism/snapshots/seattlerb/rescue_parens.txt index e97a46a8ec..c0ca0b8ddd 100644 --- a/test/prism/snapshots/seattlerb/rescue_parens.txt +++ b/test/prism/snapshots/seattlerb/rescue_parens.txt @@ -26,7 +26,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── keyword_loc: (1,5)-(1,11) = "rescue" │ │ └── rescue_expression: │ │ @ CallNode (location: (1,12)-(1,13)) @@ -38,10 +38,10 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── opening_loc: (1,2)-(1,3) = "(" │ └── closing_loc: (1,13)-(1,14) = ")" ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/seattlerb/return_call_assocs.txt b/test/prism/snapshots/seattlerb/return_call_assocs.txt index cfbf7fda5c..16c7783f34 100644 --- a/test/prism/snapshots/seattlerb/return_call_assocs.txt +++ b/test/prism/snapshots/seattlerb/return_call_assocs.txt @@ -83,7 +83,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "y" + │ └── name: :y ├── @ ReturnNode (location: (7,0)-(7,12)) │ ├── keyword_loc: (7,0)-(7,6) = "return" │ └── arguments: @@ -113,7 +113,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "y" + │ └── name: :y ├── @ ReturnNode (location: (9,0)-(9,13)) │ ├── keyword_loc: (9,0)-(9,6) = "return" │ └── arguments: @@ -143,7 +143,7 @@ │ ├── closing_loc: (9,12)-(9,13) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "y" + │ └── name: :y └── @ ReturnNode (location: (11,0)-(11,14)) ├── keyword_loc: (11,0)-(11,6) = "return" └── arguments: @@ -170,7 +170,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "z" + │ │ └── name: :z │ ├── value: │ │ @ IntegerNode (location: (11,12)-(11,13)) │ │ └── flags: decimal @@ -178,4 +178,4 @@ ├── closing_loc: (11,13)-(11,14) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "y" + └── name: :y diff --git a/test/prism/snapshots/seattlerb/safe_attrasgn.txt b/test/prism/snapshots/seattlerb/safe_attrasgn.txt index e6ea102a26..b4f5a085ec 100644 --- a/test/prism/snapshots/seattlerb/safe_attrasgn.txt +++ b/test/prism/snapshots/seattlerb/safe_attrasgn.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: (1,3)-(1,4) = "b" ├── opening_loc: ∅ @@ -26,4 +26,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation - └── name: "b=" + └── name: :b= diff --git a/test/prism/snapshots/seattlerb/safe_attrasgn_constant.txt b/test/prism/snapshots/seattlerb/safe_attrasgn_constant.txt index 3bf82ed234..a022f1483b 100644 --- a/test/prism/snapshots/seattlerb/safe_attrasgn_constant.txt +++ b/test/prism/snapshots/seattlerb/safe_attrasgn_constant.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: (1,3)-(1,4) = "B" ├── opening_loc: ∅ @@ -26,4 +26,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation - └── name: "B=" + └── name: :B= diff --git a/test/prism/snapshots/seattlerb/safe_call.txt b/test/prism/snapshots/seattlerb/safe_call.txt index cf7412a9fa..87886b1ac9 100644 --- a/test/prism/snapshots/seattlerb/safe_call.txt +++ b/test/prism/snapshots/seattlerb/safe_call.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: (1,3)-(1,4) = "b" ├── opening_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/safe_call_after_newline.txt b/test/prism/snapshots/seattlerb/safe_call_after_newline.txt index ef16c63d2b..1eb59ceb9d 100644 --- a/test/prism/snapshots/seattlerb/safe_call_after_newline.txt +++ b/test/prism/snapshots/seattlerb/safe_call_after_newline.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (2,0)-(2,2) = "&." ├── message_loc: (2,2)-(2,3) = "b" ├── opening_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/safe_call_dot_parens.txt b/test/prism/snapshots/seattlerb/safe_call_dot_parens.txt index b152d6230b..c9db506be2 100644 --- a/test/prism/snapshots/seattlerb/safe_call_dot_parens.txt +++ b/test/prism/snapshots/seattlerb/safe_call_dot_parens.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: ∅ ├── opening_loc: (1,3)-(1,4) = "(" @@ -22,4 +22,4 @@ ├── closing_loc: (1,4)-(1,5) = ")" ├── block: ∅ ├── flags: safe_navigation - └── name: "call" + └── name: :call diff --git a/test/prism/snapshots/seattlerb/safe_call_newline.txt b/test/prism/snapshots/seattlerb/safe_call_newline.txt index cf7412a9fa..87886b1ac9 100644 --- a/test/prism/snapshots/seattlerb/safe_call_newline.txt +++ b/test/prism/snapshots/seattlerb/safe_call_newline.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: (1,3)-(1,4) = "b" ├── opening_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/safe_call_operator.txt b/test/prism/snapshots/seattlerb/safe_call_operator.txt index d24465ef89..63262c7ca3 100644 --- a/test/prism/snapshots/seattlerb/safe_call_operator.txt +++ b/test/prism/snapshots/seattlerb/safe_call_operator.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: (1,3)-(1,4) = ">" ├── opening_loc: ∅ @@ -26,4 +26,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation - └── name: ">" + └── name: :> diff --git a/test/prism/snapshots/seattlerb/safe_call_rhs_newline.txt b/test/prism/snapshots/seattlerb/safe_call_rhs_newline.txt index 779a26b9a4..d02732caed 100644 --- a/test/prism/snapshots/seattlerb/safe_call_rhs_newline.txt +++ b/test/prism/snapshots/seattlerb/safe_call_rhs_newline.txt @@ -19,7 +19,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (1,5)-(1,7) = "&." │ ├── message_loc: (1,7)-(1,8) = "b" │ ├── opening_loc: ∅ @@ -27,5 +27,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "b" + │ └── name: :b └── operator_loc: (1,2)-(1,3) = "=" diff --git a/test/prism/snapshots/seattlerb/safe_calls.txt b/test/prism/snapshots/seattlerb/safe_calls.txt index f4f9644f12..f471a36b91 100644 --- a/test/prism/snapshots/seattlerb/safe_calls.txt +++ b/test/prism/snapshots/seattlerb/safe_calls.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (1,1)-(1,3) = "&." │ ├── message_loc: (1,3)-(1,4) = "b" │ ├── opening_loc: ∅ @@ -24,7 +24,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "b" + │ └── name: :b ├── call_operator_loc: (1,4)-(1,6) = "&." ├── message_loc: (1,6)-(1,7) = "c" ├── opening_loc: (1,7)-(1,8) = "(" @@ -36,4 +36,4 @@ ├── closing_loc: (1,9)-(1,10) = ")" ├── block: ∅ ├── flags: safe_navigation - └── name: "c" + └── name: :c diff --git a/test/prism/snapshots/seattlerb/safe_op_asgn.txt b/test/prism/snapshots/seattlerb/safe_op_asgn.txt index eee4cd1b42..046d6fa58c 100644 --- a/test/prism/snapshots/seattlerb/safe_op_asgn.txt +++ b/test/prism/snapshots/seattlerb/safe_op_asgn.txt @@ -14,15 +14,15 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: (1,3)-(1,4) = "b" ├── opening_loc: ∅ ├── arguments: ∅ ├── closing_loc: ∅ ├── flags: safe_navigation - ├── read_name: "b" - ├── write_name: "b=" + ├── read_name: :b + ├── write_name: :b= ├── operator: :+ ├── operator_loc: (1,5)-(1,7) = "+=" └── value: @@ -39,4 +39,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "x" + └── name: :x diff --git a/test/prism/snapshots/seattlerb/safe_op_asgn2.txt b/test/prism/snapshots/seattlerb/safe_op_asgn2.txt index f7d02d3e55..f515dd46c2 100644 --- a/test/prism/snapshots/seattlerb/safe_op_asgn2.txt +++ b/test/prism/snapshots/seattlerb/safe_op_asgn2.txt @@ -14,15 +14,15 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: (1,3)-(1,4) = "b" ├── opening_loc: ∅ ├── arguments: ∅ ├── closing_loc: ∅ ├── flags: safe_navigation - ├── read_name: "b" - ├── write_name: "b=" + ├── read_name: :b + ├── write_name: :b= ├── operator_loc: (1,5)-(1,8) = "||=" └── value: @ CallNode (location: (2,0)-(2,1)) @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "x" + └── name: :x diff --git a/test/prism/snapshots/seattlerb/slashy_newlines_within_string.txt b/test/prism/snapshots/seattlerb/slashy_newlines_within_string.txt index 49e5265871..454fc7d502 100644 --- a/test/prism/snapshots/seattlerb/slashy_newlines_within_string.txt +++ b/test/prism/snapshots/seattlerb/slashy_newlines_within_string.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "puts" + │ └── name: :puts └── @ CallNode (location: (6,0)-(6,5)) ├── receiver: │ @ CallNode (location: (6,0)-(6,1)) @@ -32,7 +32,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (6,2)-(6,3) = "+" ├── opening_loc: ∅ @@ -48,8 +48,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "+" + └── name: :+ diff --git a/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt b/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt index 4cce284497..6ba21f5290 100644 --- a/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt +++ b/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt @@ -36,7 +36,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (2,1)-(2,2) = "." │ ├── message_loc: (2,2)-(2,3) = "b" │ ├── opening_loc: ∅ @@ -50,8 +50,8 @@ │ │ ├── opening_loc: (2,4)-(2,6) = "do" │ │ └── closing_loc: (3,0)-(3,3) = "end" │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "x" + └── name: :x diff --git a/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt b/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt index 46f401eb5a..1327296a41 100644 --- a/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt +++ b/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt @@ -44,8 +44,8 @@ │ │ ├── opening_loc: (2,5)-(2,7) = "do" │ │ └── closing_loc: (3,0)-(3,3) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "x" + └── name: :x diff --git a/test/prism/snapshots/seattlerb/str_backslashes.txt b/test/prism/snapshots/seattlerb/str_backslashes.txt index 09e8628e8b..67d6ee34ac 100644 --- a/test/prism/snapshots/seattlerb/str_backslashes.txt +++ b/test/prism/snapshots/seattlerb/str_backslashes.txt @@ -20,4 +20,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "x" + └── name: :x diff --git a/test/prism/snapshots/seattlerb/str_double_double_escaped_newline.txt b/test/prism/snapshots/seattlerb/str_double_double_escaped_newline.txt index 56fdd6cd7d..6211f33de8 100644 --- a/test/prism/snapshots/seattlerb/str_double_double_escaped_newline.txt +++ b/test/prism/snapshots/seattlerb/str_double_double_escaped_newline.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (1,8)-(1,9)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/str_double_escaped_newline.txt b/test/prism/snapshots/seattlerb/str_double_escaped_newline.txt index 906ef18d65..3274c65c2c 100644 --- a/test/prism/snapshots/seattlerb/str_double_escaped_newline.txt +++ b/test/prism/snapshots/seattlerb/str_double_escaped_newline.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (1,7)-(1,8)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/str_double_newline.txt b/test/prism/snapshots/seattlerb/str_double_newline.txt index 67953d770f..f7e1e3edbb 100644 --- a/test/prism/snapshots/seattlerb/str_double_newline.txt +++ b/test/prism/snapshots/seattlerb/str_double_newline.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (2,2)-(2,3)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/str_evstr.txt b/test/prism/snapshots/seattlerb/str_evstr.txt index 8062024ed4..3baac64f91 100644 --- a/test/prism/snapshots/seattlerb/str_evstr.txt +++ b/test/prism/snapshots/seattlerb/str_evstr.txt @@ -26,6 +26,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── closing_loc: (1,6)-(1,7) = "}" └── closing_loc: (1,7)-(1,8) = "\"" diff --git a/test/prism/snapshots/seattlerb/str_evstr_escape.txt b/test/prism/snapshots/seattlerb/str_evstr_escape.txt index 9dd987d226..b603038b86 100644 --- a/test/prism/snapshots/seattlerb/str_evstr_escape.txt +++ b/test/prism/snapshots/seattlerb/str_evstr_escape.txt @@ -26,7 +26,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── closing_loc: (1,6)-(1,7) = "}" │ └── @ StringNode (location: (1,7)-(1,15)) │ ├── flags: ∅ diff --git a/test/prism/snapshots/seattlerb/str_heredoc_interp.txt b/test/prism/snapshots/seattlerb/str_heredoc_interp.txt index 465469430c..32ab636d77 100644 --- a/test/prism/snapshots/seattlerb/str_heredoc_interp.txt +++ b/test/prism/snapshots/seattlerb/str_heredoc_interp.txt @@ -20,7 +20,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "x" + │ │ │ └── name: :x │ │ └── closing_loc: (2,3)-(2,4) = "}" │ └── @ StringNode (location: (2,4)-(3,0)) │ ├── flags: ∅ diff --git a/test/prism/snapshots/seattlerb/str_interp_ternary_or_label.txt b/test/prism/snapshots/seattlerb/str_interp_ternary_or_label.txt index c168afca2d..d83cc287e0 100644 --- a/test/prism/snapshots/seattlerb/str_interp_ternary_or_label.txt +++ b/test/prism/snapshots/seattlerb/str_interp_ternary_or_label.txt @@ -25,7 +25,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── call_operator_loc: (1,4)-(1,5) = "." │ │ │ ├── message_loc: (1,5)-(1,7) = "b?" │ │ │ ├── opening_loc: ∅ @@ -33,7 +33,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b?" + │ │ │ └── name: :b? │ │ ├── statements: │ │ │ @ StatementsNode (location: (1,10)-(1,17)) │ │ │ └── body: (length: 1) @@ -62,11 +62,11 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "a" + │ │ │ │ │ └── name: :a │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "+" + │ │ │ │ └── name: :+ │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (1,14)-(1,15) = "+" │ │ │ ├── opening_loc: ∅ @@ -82,7 +82,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "+" + │ │ │ └── name: :+ │ │ ├── consequent: │ │ │ @ ElseNode (location: (1,17)-(1,21)) │ │ │ ├── else_keyword_loc: (1,17)-(1,18) = ":" diff --git a/test/prism/snapshots/seattlerb/str_pct_Q_nested.txt b/test/prism/snapshots/seattlerb/str_pct_Q_nested.txt index 6651fcdde0..1bbf4311de 100644 --- a/test/prism/snapshots/seattlerb/str_pct_Q_nested.txt +++ b/test/prism/snapshots/seattlerb/str_pct_Q_nested.txt @@ -26,7 +26,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "nest" + │ │ │ └── name: :nest │ │ └── closing_loc: (1,17)-(1,18) = "}" │ └── @ StringNode (location: (1,18)-(1,25)) │ ├── flags: ∅ diff --git a/test/prism/snapshots/seattlerb/str_single_double_escaped_newline.txt b/test/prism/snapshots/seattlerb/str_single_double_escaped_newline.txt index 6b155de886..c016cc7e97 100644 --- a/test/prism/snapshots/seattlerb/str_single_double_escaped_newline.txt +++ b/test/prism/snapshots/seattlerb/str_single_double_escaped_newline.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (1,8)-(1,9)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/str_single_escaped_newline.txt b/test/prism/snapshots/seattlerb/str_single_escaped_newline.txt index ba2e204b68..042c697fb8 100644 --- a/test/prism/snapshots/seattlerb/str_single_escaped_newline.txt +++ b/test/prism/snapshots/seattlerb/str_single_escaped_newline.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (1,7)-(1,8)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/str_single_newline.txt b/test/prism/snapshots/seattlerb/str_single_newline.txt index 18a96fbee6..4fef97ddec 100644 --- a/test/prism/snapshots/seattlerb/str_single_newline.txt +++ b/test/prism/snapshots/seattlerb/str_single_newline.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (2,2)-(2,3)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -30,4 +30,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/seattlerb/symbol_list.txt b/test/prism/snapshots/seattlerb/symbol_list.txt index 834543195d..714b115368 100644 --- a/test/prism/snapshots/seattlerb/symbol_list.txt +++ b/test/prism/snapshots/seattlerb/symbol_list.txt @@ -22,7 +22,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ └── closing_loc: (1,6)-(1,7) = "}" │ │ └── closing_loc: ∅ │ └── @ InterpolatedSymbolNode (location: (1,8)-(1,12)) @@ -42,7 +42,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── closing_loc: (1,11)-(1,12) = "}" │ └── closing_loc: ∅ ├── opening_loc: (1,0)-(1,3) = "%I[" diff --git a/test/prism/snapshots/seattlerb/thingy.txt b/test/prism/snapshots/seattlerb/thingy.txt index 96c76e64b6..11073c7c2b 100644 --- a/test/prism/snapshots/seattlerb/thingy.txt +++ b/test/prism/snapshots/seattlerb/thingy.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "f" + │ │ └── name: :f │ ├── call_operator_loc: (1,1)-(1,2) = "." │ ├── message_loc: ∅ │ ├── opening_loc: (1,2)-(1,3) = "(" @@ -26,7 +26,7 @@ │ ├── closing_loc: (1,5)-(1,6) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "call" + │ └── name: :call └── @ CallNode (location: (3,0)-(3,7)) ├── receiver: │ @ CallNode (location: (3,0)-(3,1)) @@ -38,7 +38,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "f" + │ └── name: :f ├── call_operator_loc: (3,1)-(3,3) = "::" ├── message_loc: ∅ ├── opening_loc: (3,3)-(3,4) = "(" @@ -50,4 +50,4 @@ ├── closing_loc: (3,6)-(3,7) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "call" + └── name: :call diff --git a/test/prism/snapshots/seattlerb/unary_minus.txt b/test/prism/snapshots/seattlerb/unary_minus.txt index e69aaaadec..4ed30f62a9 100644 --- a/test/prism/snapshots/seattlerb/unary_minus.txt +++ b/test/prism/snapshots/seattlerb/unary_minus.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (1,0)-(1,1) = "-" ├── opening_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "-@" + └── name: :-@ diff --git a/test/prism/snapshots/seattlerb/unary_plus.txt b/test/prism/snapshots/seattlerb/unary_plus.txt index 4d6c27805a..e6fd52c7fc 100644 --- a/test/prism/snapshots/seattlerb/unary_plus.txt +++ b/test/prism/snapshots/seattlerb/unary_plus.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (1,0)-(1,1) = "+" ├── opening_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "+@" + └── name: :+@ diff --git a/test/prism/snapshots/seattlerb/unary_plus_on_literal.txt b/test/prism/snapshots/seattlerb/unary_plus_on_literal.txt index 9d1cb6a12c..37d183ae65 100644 --- a/test/prism/snapshots/seattlerb/unary_plus_on_literal.txt +++ b/test/prism/snapshots/seattlerb/unary_plus_on_literal.txt @@ -17,4 +17,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "+@" + └── name: :+@ diff --git a/test/prism/snapshots/seattlerb/unary_tilde.txt b/test/prism/snapshots/seattlerb/unary_tilde.txt index aa413484dc..156e93ccfa 100644 --- a/test/prism/snapshots/seattlerb/unary_tilde.txt +++ b/test/prism/snapshots/seattlerb/unary_tilde.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (1,0)-(1,1) = "~" ├── opening_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "~" + └── name: :~ diff --git a/test/prism/snapshots/seattlerb/utf8_bom.txt b/test/prism/snapshots/seattlerb/utf8_bom.txt index 6e56393521..be346b07f4 100644 --- a/test/prism/snapshots/seattlerb/utf8_bom.txt +++ b/test/prism/snapshots/seattlerb/utf8_bom.txt @@ -16,4 +16,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/seattlerb/when_splat.txt b/test/prism/snapshots/seattlerb/when_splat.txt index bdeae40fba..f383c8b0d0 100644 --- a/test/prism/snapshots/seattlerb/when_splat.txt +++ b/test/prism/snapshots/seattlerb/when_splat.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── conditions: (length: 1) │ └── @ WhenNode (location: (1,8)-(1,15)) │ ├── keyword_loc: (1,8)-(1,12) = "when" @@ -31,7 +31,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── statements: ∅ ├── consequent: ∅ ├── case_keyword_loc: (1,0)-(1,4) = "case" diff --git a/test/prism/snapshots/seattlerb/yield_call_assocs.txt b/test/prism/snapshots/seattlerb/yield_call_assocs.txt index 6964a034c4..e00c29d4c6 100644 --- a/test/prism/snapshots/seattlerb/yield_call_assocs.txt +++ b/test/prism/snapshots/seattlerb/yield_call_assocs.txt @@ -88,7 +88,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "y" + │ │ └── name: :y │ └── rparen_loc: ∅ ├── @ YieldNode (location: (7,0)-(7,11)) │ ├── keyword_loc: (7,0)-(7,5) = "yield" @@ -120,7 +120,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "y" + │ │ └── name: :y │ └── rparen_loc: ∅ ├── @ YieldNode (location: (9,0)-(9,12)) │ ├── keyword_loc: (9,0)-(9,5) = "yield" @@ -152,7 +152,7 @@ │ │ ├── closing_loc: (9,11)-(9,12) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "y" + │ │ └── name: :y │ └── rparen_loc: ∅ └── @ YieldNode (location: (11,0)-(11,13)) ├── keyword_loc: (11,0)-(11,5) = "yield" @@ -181,7 +181,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "z" + │ │ │ └── name: :z │ │ ├── value: │ │ │ @ IntegerNode (location: (11,11)-(11,12)) │ │ │ └── flags: decimal @@ -189,5 +189,5 @@ │ ├── closing_loc: (11,12)-(11,13) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "y" + │ └── name: :y └── rparen_loc: ∅ diff --git a/test/prism/snapshots/spanning_heredoc.txt b/test/prism/snapshots/spanning_heredoc.txt index 9ebb067ecf..46affe4f3c 100644 --- a/test/prism/snapshots/spanning_heredoc.txt +++ b/test/prism/snapshots/spanning_heredoc.txt @@ -51,11 +51,11 @@ │ │ ├── closing_loc: (7,6)-(7,7) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "gsub" + │ │ └── name: :gsub │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "pp" + │ └── name: :pp ├── @ CallNode (location: (10,0)-(13,2)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -89,7 +89,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "pp" + │ └── name: :pp ├── @ CallNode (location: (16,0)-(19,2)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -123,7 +123,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "pp" + │ └── name: :pp ├── @ CallNode (location: (22,0)-(25,2)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -157,7 +157,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "pp" + │ └── name: :pp ├── @ CallNode (location: (28,0)-(31,2)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -191,7 +191,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "pp" + │ └── name: :pp ├── @ CallNode (location: (35,0)-(38,2)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -229,7 +229,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "pp" + │ └── name: :pp ├── @ CallNode (location: (41,0)-(44,2)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -261,7 +261,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "pp" + │ └── name: :pp └── @ CallNode (location: (48,0)-(51,2)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -298,4 +298,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "pp" + └── name: :pp diff --git a/test/prism/snapshots/strings.txt b/test/prism/snapshots/strings.txt index e3a72eefdf..10e15cc330 100644 --- a/test/prism/snapshots/strings.txt +++ b/test/prism/snapshots/strings.txt @@ -129,7 +129,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bbb" + │ │ │ │ └── name: :bbb │ │ │ └── closing_loc: (35,11)-(35,12) = "}" │ │ └── @ StringNode (location: (35,12)-(35,16)) │ │ ├── flags: ∅ @@ -167,7 +167,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ StringNode (location: (43,0)-(43,7)) │ ├── flags: ∅ │ ├── opening_loc: (43,0)-(43,3) = "%q{" @@ -226,7 +226,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bbb" + │ │ │ │ └── name: :bbb │ │ │ └── closing_loc: (55,10)-(55,11) = "}" │ │ └── @ StringNode (location: (55,11)-(55,15)) │ │ ├── flags: ∅ @@ -348,7 +348,7 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "c" + │ │ │ │ │ │ └── name: :c │ │ │ │ │ └── closing_loc: (67,9)-(67,10) = "}" │ │ │ │ └── @ StringNode (location: (67,10)-(67,11)) │ │ │ │ ├── flags: ∅ diff --git a/test/prism/snapshots/symbols.txt b/test/prism/snapshots/symbols.txt index d445d8a90f..9923312a3a 100644 --- a/test/prism/snapshots/symbols.txt +++ b/test/prism/snapshots/symbols.txt @@ -25,7 +25,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "var" + │ │ │ └── name: :var │ │ └── closing_loc: (3,7)-(3,8) = "}" │ └── closing_loc: (3,8)-(3,9) = "\"" ├── @ InterpolatedSymbolNode (location: (5,0)-(5,10)) diff --git a/test/prism/snapshots/ternary_operator.txt b/test/prism/snapshots/ternary_operator.txt index 13aa17e81a..04d46ae5ae 100644 --- a/test/prism/snapshots/ternary_operator.txt +++ b/test/prism/snapshots/ternary_operator.txt @@ -15,7 +15,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── statements: │ │ @ StatementsNode (location: (1,4)-(1,5)) │ │ └── body: (length: 1) @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── consequent: │ │ @ ElseNode (location: (1,6)-(1,9)) │ │ ├── else_keyword_loc: (1,6)-(1,7) = ":" @@ -44,7 +44,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ └── end_keyword_loc: ∅ │ └── end_keyword_loc: ∅ ├── @ IfNode (location: (3,0)-(3,27)) @@ -59,7 +59,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── statements: │ │ @ StatementsNode (location: (3,4)-(3,14)) │ │ └── body: (length: 1) @@ -75,7 +75,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── rparen_loc: ∅ │ │ └── keyword_loc: (3,4)-(3,12) = "defined?" │ ├── consequent: @@ -96,7 +96,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── rparen_loc: ∅ │ │ │ └── keyword_loc: (3,17)-(3,25) = "defined?" │ │ └── end_keyword_loc: ∅ @@ -113,7 +113,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "empty?" + │ │ └── name: :empty? │ ├── statements: │ │ @ StatementsNode (location: (5,7)-(5,11)) │ │ └── body: (length: 1) @@ -139,7 +139,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "empty?" + │ │ └── name: :empty? │ ├── statements: │ │ @ StatementsNode (location: (7,7)-(7,12)) │ │ └── body: (length: 1) @@ -165,7 +165,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "empty?" + │ │ └── name: :empty? │ ├── statements: │ │ @ StatementsNode (location: (9,7)-(9,10)) │ │ └── body: (length: 1) @@ -191,7 +191,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "a?" + │ │ └── name: :a? │ ├── statements: │ │ @ StatementsNode (location: (11,3)-(11,6)) │ │ └── body: (length: 1) @@ -217,7 +217,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── statements: │ │ @ StatementsNode (location: (13,3)-(13,7)) │ │ └── body: (length: 1) @@ -230,7 +230,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "var1" + │ │ └── name: :var1 │ ├── consequent: │ │ @ ElseNode (location: (13,8)-(13,14)) │ │ ├── else_keyword_loc: (13,8)-(13,9) = ":" @@ -246,7 +246,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "var2" + │ │ │ └── name: :var2 │ │ └── end_keyword_loc: ∅ │ └── end_keyword_loc: ∅ └── @ IfNode (location: (15,0)-(15,12)) @@ -261,7 +261,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "nil?" + │ └── name: :nil? ├── statements: │ @ StatementsNode (location: (15,5)-(15,10)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/unless.txt b/test/prism/snapshots/unless.txt index 27455d08c6..4da86de479 100644 --- a/test/prism/snapshots/unless.txt +++ b/test/prism/snapshots/unless.txt @@ -92,7 +92,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar?" + │ └── name: :bar? ├── statements: │ @ StatementsNode (location: (14,0)-(14,10)) │ └── body: (length: 1) @@ -117,6 +117,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── consequent: ∅ └── end_keyword_loc: ∅ diff --git a/test/prism/snapshots/unparser/corpus/literal/assignment.txt b/test/prism/snapshots/unparser/corpus/literal/assignment.txt index ec6678281a..0a86cdaae1 100644 --- a/test/prism/snapshots/unparser/corpus/literal/assignment.txt +++ b/test/prism/snapshots/unparser/corpus/literal/assignment.txt @@ -261,7 +261,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "foo=" + │ │ │ └── name: :foo= │ │ └── @ CallNode (location: (14,8)-(14,13)) │ │ ├── receiver: │ │ │ @ LocalVariableReadNode (location: (14,8)-(14,9)) @@ -274,7 +274,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar=" + │ │ └── name: :bar= │ ├── lparen_loc: (14,0)-(14,1) = "(" │ ├── rparen_loc: (14,13)-(14,14) = ")" │ ├── operator_loc: (14,15)-(14,16) = "=" @@ -309,7 +309,7 @@ │ │ │ ├── closing_loc: (15,7)-(15,8) = "]" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "[]=" + │ │ │ └── name: :[]= │ │ └── @ CallNode (location: (15,10)-(15,14)) │ │ ├── receiver: │ │ │ @ LocalVariableReadNode (location: (15,10)-(15,11)) @@ -326,7 +326,7 @@ │ │ ├── closing_loc: (15,13)-(15,14) = "]" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "[]=" + │ │ └── name: :[]= │ ├── lparen_loc: (15,0)-(15,1) = "(" │ ├── rparen_loc: (15,14)-(15,15) = ")" │ ├── operator_loc: (15,16)-(15,17) = "=" @@ -357,7 +357,7 @@ │ │ │ ├── closing_loc: (16,4)-(16,5) = "]" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "[]=" + │ │ │ └── name: :[]= │ │ └── @ CallNode (location: (16,7)-(16,11)) │ │ ├── receiver: │ │ │ @ LocalVariableReadNode (location: (16,7)-(16,8)) @@ -374,7 +374,7 @@ │ │ ├── closing_loc: (16,10)-(16,11) = "]" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "[]=" + │ │ └── name: :[]= │ ├── lparen_loc: (16,0)-(16,1) = "(" │ ├── rparen_loc: (16,11)-(16,12) = ")" │ ├── operator_loc: (16,13)-(16,14) = "=" @@ -404,7 +404,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "foo=" + │ │ └── name: :foo= │ ├── lparen_loc: (17,0)-(17,1) = "(" │ ├── rparen_loc: (17,7)-(17,8) = ")" │ ├── operator_loc: (17,9)-(17,10) = "=" @@ -516,7 +516,7 @@ │ │ ├── closing_loc: (25,10)-(25,11) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "foo" + │ │ └── name: :foo │ └── operator_loc: (25,4)-(25,5) = "=" ├── @ CallNode (location: (26,0)-(26,9)) │ ├── receiver: @@ -530,7 +530,7 @@ │ ├── closing_loc: (26,8)-(26,9) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallNode (location: (27,0)-(27,13)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (27,0)-(27,3)) @@ -549,7 +549,7 @@ │ ├── closing_loc: (27,12)-(27,13) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallNode (location: (28,0)-(28,11)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (28,0)-(28,3)) @@ -565,7 +565,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallNode (location: (29,0)-(29,19)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (29,0)-(29,3)) @@ -589,7 +589,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "index" + │ │ │ └── name: :index │ │ └── @ CallNode (location: (29,14)-(29,19)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -599,11 +599,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "value" + │ │ └── name: :value │ ├── closing_loc: (29,10)-(29,11) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallNode (location: (30,0)-(30,17)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (30,0)-(30,3)) @@ -633,11 +633,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "value" + │ │ └── name: :value │ ├── closing_loc: (30,8)-(30,9) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallNode (location: (31,0)-(31,9)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (31,0)-(31,3)) @@ -654,7 +654,7 @@ │ ├── closing_loc: (31,4)-(31,5) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallNode (location: (32,0)-(32,17)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (32,0)-(32,3)) @@ -681,11 +681,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "value" + │ │ └── name: :value │ ├── closing_loc: (32,8)-(32,9) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallNode (location: (33,0)-(33,18)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (33,0)-(33,3)) @@ -706,7 +706,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "index" + │ │ │ └── name: :index │ │ └── @ CallNode (location: (33,13)-(33,18)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -716,11 +716,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "value" + │ │ └── name: :value │ ├── closing_loc: (33,9)-(33,10) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ LocalVariableWriteNode (location: (34,0)-(34,7)) │ ├── name: :x │ ├── depth: 0 @@ -753,7 +753,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "x=" + │ └── name: :x= ├── @ CallNode (location: (36,0)-(36,12)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (36,0)-(36,1)) @@ -780,11 +780,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (36,5)-(36,6) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallOrWriteNode (location: (37,0)-(37,14)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (37,0)-(37,1)) @@ -804,8 +804,8 @@ │ │ └── unescaped: "" │ ├── closing_loc: (37,5)-(37,6) = "]" │ ├── flags: ∅ - │ ├── read_name: "[]" - │ ├── write_name: "[]=" + │ ├── read_name: :[] + │ ├── write_name: :[]= │ ├── operator_loc: (37,7)-(37,10) = "||=" │ └── value: │ @ CallNode (location: (37,11)-(37,14)) @@ -817,7 +817,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── @ InstanceVariableOrWriteNode (location: (38,0)-(38,10)) │ ├── name: :@a │ ├── name_loc: (38,0)-(38,2) = "@a" @@ -889,7 +889,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "x=" + │ └── name: :x= ├── @ CallNode (location: (45,0)-(45,16)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (45,0)-(45,1)) @@ -924,7 +924,7 @@ │ ├── closing_loc: (45,2)-(45,3) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallOrWriteNode (location: (48,0)-(48,21)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (48,0)-(48,1)) @@ -958,8 +958,8 @@ │ │ └── closing_loc: (50,0)-(50,0) = "HEREDOC\n" │ ├── closing_loc: (48,12)-(48,13) = "]" │ ├── flags: ∅ - │ ├── read_name: "[]" - │ ├── write_name: "[]=" + │ ├── read_name: :[] + │ ├── write_name: :[]= │ ├── operator_loc: (48,14)-(48,17) = "||=" │ └── value: │ @ CallNode (location: (48,18)-(48,21)) @@ -971,7 +971,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar └── @ InstanceVariableOrWriteNode (location: (51,0)-(51,17)) ├── name: :@a ├── name_loc: (51,0)-(51,2) = "@a" diff --git a/test/prism/snapshots/unparser/corpus/literal/block.txt b/test/prism/snapshots/unparser/corpus/literal/block.txt index 3e8309a057..c1496a4eef 100644 --- a/test/prism/snapshots/unparser/corpus/literal/block.txt +++ b/test/prism/snapshots/unparser/corpus/literal/block.txt @@ -18,7 +18,7 @@ │ │ ├── opening_loc: (1,4)-(1,5) = "{" │ │ └── closing_loc: (2,0)-(2,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (3,0)-(4,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -49,7 +49,7 @@ │ │ ├── opening_loc: (3,4)-(3,5) = "{" │ │ └── closing_loc: (4,0)-(4,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (5,0)-(6,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -84,7 +84,7 @@ │ │ ├── opening_loc: (5,4)-(5,5) = "{" │ │ └── closing_loc: (6,0)-(6,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (7,0)-(8,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -121,7 +121,7 @@ │ │ ├── opening_loc: (7,4)-(7,5) = "{" │ │ └── closing_loc: (8,0)-(8,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (9,0)-(10,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -154,7 +154,7 @@ │ │ ├── opening_loc: (9,4)-(9,5) = "{" │ │ └── closing_loc: (10,0)-(10,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (11,0)-(13,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -177,7 +177,7 @@ │ │ ├── opening_loc: (11,7)-(11,8) = "{" │ │ └── closing_loc: (13,0)-(13,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (14,0)-(16,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -215,7 +215,7 @@ │ │ ├── opening_loc: (14,4)-(14,5) = "{" │ │ └── closing_loc: (16,0)-(16,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (17,0)-(19,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -253,7 +253,7 @@ │ │ ├── opening_loc: (17,4)-(17,5) = "{" │ │ └── closing_loc: (19,0)-(19,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (20,0)-(22,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -277,11 +277,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── opening_loc: (20,4)-(20,5) = "{" │ │ └── closing_loc: (22,0)-(22,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (23,0)-(25,1)) │ ├── receiver: │ │ @ CallNode (location: (23,0)-(23,3)) @@ -293,7 +293,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (23,3)-(23,4) = "." │ ├── message_loc: (23,4)-(23,7) = "bar" │ ├── opening_loc: ∅ @@ -338,11 +338,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── opening_loc: (23,8)-(23,9) = "{" │ │ └── closing_loc: (25,0)-(25,1) = "}" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (26,0)-(27,1)) │ ├── receiver: │ │ @ CallNode (location: (26,0)-(26,3)) @@ -354,7 +354,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (26,3)-(26,4) = "." │ ├── message_loc: (26,4)-(26,7) = "bar" │ ├── opening_loc: ∅ @@ -387,7 +387,7 @@ │ │ ├── opening_loc: (26,8)-(26,9) = "{" │ │ └── closing_loc: (27,0)-(27,1) = "}" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (28,0)-(29,1)) │ ├── receiver: │ │ @ CallNode (location: (28,0)-(28,3)) @@ -399,7 +399,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (28,3)-(28,4) = "." │ ├── message_loc: (28,4)-(28,7) = "bar" │ ├── opening_loc: ∅ @@ -430,7 +430,7 @@ │ │ ├── opening_loc: (28,8)-(28,9) = "{" │ │ └── closing_loc: (29,0)-(29,1) = "}" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (30,0)-(31,1)) │ ├── receiver: │ │ @ CallNode (location: (30,0)-(30,3)) @@ -442,7 +442,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (30,3)-(30,4) = "." │ ├── message_loc: (30,4)-(30,7) = "bar" │ ├── opening_loc: ∅ @@ -465,7 +465,7 @@ │ │ ├── opening_loc: (30,8)-(30,9) = "{" │ │ └── closing_loc: (31,0)-(31,1) = "}" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (32,0)-(34,1)) │ ├── receiver: │ │ @ CallNode (location: (32,0)-(32,3)) @@ -477,7 +477,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (32,3)-(32,4) = "." │ ├── message_loc: (32,4)-(32,7) = "bar" │ ├── opening_loc: ∅ @@ -516,11 +516,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── opening_loc: (32,8)-(32,9) = "{" │ │ └── closing_loc: (34,0)-(34,1) = "}" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (35,0)-(37,1)) │ ├── receiver: │ │ @ CallNode (location: (35,0)-(35,3)) @@ -532,7 +532,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (35,3)-(35,4) = "." │ ├── message_loc: (35,4)-(35,7) = "bar" │ ├── opening_loc: ∅ @@ -574,11 +574,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── opening_loc: (35,8)-(35,9) = "{" │ │ └── closing_loc: (37,0)-(37,1) = "}" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (38,0)-(40,1)) │ ├── receiver: │ │ @ CallNode (location: (38,0)-(38,3)) @@ -590,7 +590,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (38,3)-(38,4) = "." │ ├── message_loc: (38,4)-(38,7) = "bar" │ ├── opening_loc: ∅ @@ -636,11 +636,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── opening_loc: (38,8)-(38,9) = "{" │ │ └── closing_loc: (40,0)-(40,1) = "}" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (41,0)-(43,1)) │ ├── receiver: │ │ @ CallNode (location: (41,0)-(41,3)) @@ -652,7 +652,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (41,3)-(41,4) = "." │ ├── message_loc: (41,4)-(41,7) = "bar" │ ├── opening_loc: ∅ @@ -700,11 +700,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── opening_loc: (41,8)-(41,9) = "{" │ │ └── closing_loc: (43,0)-(43,1) = "}" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (44,0)-(46,1)) │ ├── receiver: │ │ @ CallNode (location: (44,0)-(44,3)) @@ -716,7 +716,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (44,3)-(44,4) = "." │ ├── message_loc: (44,4)-(44,7) = "bar" │ ├── opening_loc: ∅ @@ -759,11 +759,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── opening_loc: (44,8)-(44,9) = "{" │ │ └── closing_loc: (46,0)-(46,1) = "}" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (47,0)-(48,5)) │ ├── receiver: │ │ @ CallNode (location: (47,0)-(48,1)) @@ -777,7 +777,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: (47,3)-(47,4) = "." │ │ ├── message_loc: (47,4)-(47,7) = "bar" │ │ ├── opening_loc: ∅ @@ -791,7 +791,7 @@ │ │ │ ├── opening_loc: (47,8)-(47,9) = "{" │ │ │ └── closing_loc: (48,0)-(48,1) = "}" │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── call_operator_loc: (48,1)-(48,2) = "." │ ├── message_loc: (48,2)-(48,5) = "baz" │ ├── opening_loc: ∅ @@ -799,7 +799,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "baz" + │ └── name: :baz ├── @ CallNode (location: (49,0)-(51,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -834,7 +834,7 @@ │ │ ├── opening_loc: (49,2)-(49,4) = "do" │ │ └── closing_loc: (51,0)-(51,3) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ CallNode (location: (52,0)-(56,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -861,7 +861,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ ├── rescue_clause: │ │ │ │ @ RescueNode (location: (54,0)-(55,5)) │ │ │ │ ├── keyword_loc: (54,0)-(54,6) = "rescue" @@ -886,7 +886,7 @@ │ │ ├── opening_loc: (52,2)-(52,4) = "do" │ │ └── closing_loc: (56,0)-(56,3) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ CallNode (location: (57,0)-(61,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -913,7 +913,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── rescue_clause: │ │ │ │ @ RescueNode (location: (59,0)-(60,5)) │ │ │ │ ├── keyword_loc: (59,0)-(59,6) = "rescue" @@ -932,7 +932,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "bar" + │ │ │ │ │ └── name: :bar │ │ │ │ ├── operator_loc: ∅ │ │ │ │ ├── reference: ∅ │ │ │ │ ├── statements: @@ -947,7 +947,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "baz" + │ │ │ │ │ └── name: :baz │ │ │ │ └── consequent: ∅ │ │ │ ├── else_clause: ∅ │ │ │ ├── ensure_clause: ∅ @@ -955,7 +955,7 @@ │ │ ├── opening_loc: (57,2)-(57,4) = "do" │ │ └── closing_loc: (61,0)-(61,3) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ CallNode (location: (62,0)-(66,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -982,7 +982,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── rescue_clause: │ │ │ │ @ RescueNode (location: (64,0)-(65,5)) │ │ │ │ ├── keyword_loc: (64,0)-(64,6) = "rescue" @@ -1001,7 +1001,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "bar" + │ │ │ │ │ └── name: :bar │ │ │ │ ├── operator_loc: (64,23)-(64,25) = "=>" │ │ │ │ ├── reference: │ │ │ │ │ @ LocalVariableTargetNode (location: (64,26)-(64,35)) @@ -1019,7 +1019,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "baz" + │ │ │ │ │ └── name: :baz │ │ │ │ └── consequent: ∅ │ │ │ ├── else_clause: ∅ │ │ │ ├── ensure_clause: ∅ @@ -1027,7 +1027,7 @@ │ │ ├── opening_loc: (62,2)-(62,4) = "do" │ │ └── closing_loc: (66,0)-(66,3) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ CallNode (location: (67,0)-(71,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1054,7 +1054,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── rescue_clause: │ │ │ │ @ RescueNode (location: (69,0)-(70,5)) │ │ │ │ ├── keyword_loc: (69,0)-(69,6) = "rescue" @@ -1071,7 +1071,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "bar" + │ │ │ │ │ └── name: :bar │ │ │ │ ├── operator_loc: ∅ │ │ │ │ ├── reference: ∅ │ │ │ │ ├── statements: @@ -1086,7 +1086,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "baz" + │ │ │ │ │ └── name: :baz │ │ │ │ └── consequent: ∅ │ │ │ ├── else_clause: ∅ │ │ │ ├── ensure_clause: ∅ @@ -1094,7 +1094,7 @@ │ │ ├── opening_loc: (67,2)-(67,4) = "do" │ │ └── closing_loc: (71,0)-(71,3) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ CallNode (location: (72,0)-(75,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1121,7 +1121,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── rescue_clause: │ │ │ │ @ RescueNode (location: (74,0)-(74,16)) │ │ │ │ ├── keyword_loc: (74,0)-(74,6) = "rescue" @@ -1138,7 +1138,7 @@ │ │ ├── opening_loc: (72,2)-(72,4) = "do" │ │ └── closing_loc: (75,0)-(75,3) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ CallNode (location: (76,0)-(81,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1165,7 +1165,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── rescue_clause: │ │ │ │ @ RescueNode (location: (78,0)-(78,6)) │ │ │ │ ├── keyword_loc: (78,0)-(78,6) = "rescue" @@ -1189,14 +1189,14 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "baz" + │ │ │ │ │ └── name: :baz │ │ │ │ └── end_keyword_loc: (81,0)-(81,3) = "end" │ │ │ ├── ensure_clause: ∅ │ │ │ └── end_keyword_loc: (81,0)-(81,3) = "end" │ │ ├── opening_loc: (76,2)-(76,4) = "do" │ │ └── closing_loc: (81,0)-(81,3) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ CallNode (location: (82,0)-(86,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1223,7 +1223,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── rescue_clause: │ │ │ │ @ RescueNode (location: (84,0)-(85,5)) │ │ │ │ ├── keyword_loc: (84,0)-(84,6) = "rescue" @@ -1240,7 +1240,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "bar" + │ │ │ │ │ └── name: :bar │ │ │ │ ├── operator_loc: (84,12)-(84,14) = "=>" │ │ │ │ ├── reference: │ │ │ │ │ @ LocalVariableTargetNode (location: (84,15)-(84,24)) @@ -1258,7 +1258,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "baz" + │ │ │ │ │ └── name: :baz │ │ │ │ └── consequent: ∅ │ │ │ ├── else_clause: ∅ │ │ │ ├── ensure_clause: ∅ @@ -1266,7 +1266,7 @@ │ │ ├── opening_loc: (82,2)-(82,4) = "do" │ │ └── closing_loc: (86,0)-(86,3) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ CallNode (location: (87,0)-(89,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1293,7 +1293,7 @@ │ │ ├── opening_loc: (87,2)-(87,4) = "do" │ │ └── closing_loc: (89,0)-(89,3) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ CallNode (location: (90,0)-(93,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1327,7 +1327,7 @@ │ │ ├── opening_loc: (90,2)-(90,4) = "do" │ │ └── closing_loc: (93,0)-(93,3) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m └── @ CallNode (location: (94,0)-(96,1)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -1359,8 +1359,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+" + │ │ └── name: :+ │ ├── opening_loc: (94,4)-(94,5) = "{" │ └── closing_loc: (96,0)-(96,1) = "}" ├── flags: ∅ - └── name: "bar" + └── name: :bar diff --git a/test/prism/snapshots/unparser/corpus/literal/case.txt b/test/prism/snapshots/unparser/corpus/literal/case.txt index 8cfc927794..cf37a6e816 100644 --- a/test/prism/snapshots/unparser/corpus/literal/case.txt +++ b/test/prism/snapshots/unparser/corpus/literal/case.txt @@ -18,7 +18,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── statements: │ │ │ @ StatementsNode (location: (3,2)-(3,5)) │ │ │ └── body: (length: 1) @@ -31,7 +31,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── @ WhenNode (location: (4,0)-(5,5)) │ │ ├── keyword_loc: (4,0)-(4,4) = "when" │ │ ├── conditions: (length: 1) @@ -44,7 +44,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── statements: │ │ @ StatementsNode (location: (5,2)-(5,5)) │ │ └── body: (length: 1) @@ -57,7 +57,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── consequent: ∅ │ ├── case_keyword_loc: (1,0)-(1,4) = "case" │ └── end_keyword_loc: (6,0)-(6,3) = "end" @@ -72,7 +72,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 2) │ │ ├── @ WhenNode (location: (8,0)-(8,8)) │ │ │ ├── keyword_loc: (8,0)-(8,4) = "when" @@ -86,7 +86,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── statements: ∅ │ │ └── @ WhenNode (location: (9,0)-(10,5)) │ │ ├── keyword_loc: (9,0)-(9,4) = "when" @@ -100,7 +100,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── statements: │ │ @ StatementsNode (location: (10,2)-(10,5)) │ │ └── body: (length: 1) @@ -113,7 +113,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── consequent: ∅ │ ├── case_keyword_loc: (7,0)-(7,4) = "case" │ └── end_keyword_loc: (11,0)-(11,3) = "end" @@ -128,7 +128,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 2) │ │ ├── @ WhenNode (location: (13,0)-(14,5)) │ │ │ ├── keyword_loc: (13,0)-(13,4) = "when" @@ -142,7 +142,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── statements: │ │ │ @ StatementsNode (location: (14,2)-(14,5)) │ │ │ └── body: (length: 1) @@ -155,7 +155,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── @ WhenNode (location: (15,0)-(16,5)) │ │ ├── keyword_loc: (15,0)-(15,4) = "when" │ │ ├── conditions: (length: 1) @@ -168,7 +168,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── statements: │ │ @ StatementsNode (location: (16,2)-(16,5)) │ │ └── body: (length: 1) @@ -181,7 +181,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── consequent: ∅ │ ├── case_keyword_loc: (12,0)-(12,4) = "case" │ └── end_keyword_loc: (17,0)-(17,3) = "end" @@ -196,7 +196,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ WhenNode (location: (19,0)-(20,8)) │ │ ├── keyword_loc: (19,0)-(19,4) = "when" @@ -210,7 +210,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── @ CallNode (location: (19,10)-(19,13)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ @@ -220,7 +220,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── statements: │ │ @ StatementsNode (location: (20,2)-(20,8)) │ │ └── body: (length: 1) @@ -243,7 +243,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ WhenNode (location: (23,0)-(24,8)) │ │ ├── keyword_loc: (23,0)-(23,4) = "when" @@ -260,7 +260,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── statements: │ │ @ StatementsNode (location: (24,2)-(24,8)) │ │ └── body: (length: 1) @@ -283,7 +283,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ WhenNode (location: (27,0)-(28,5)) │ │ ├── keyword_loc: (27,0)-(27,4) = "when" @@ -297,7 +297,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── statements: │ │ @ StatementsNode (location: (28,2)-(28,5)) │ │ └── body: (length: 1) @@ -310,7 +310,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── consequent: │ │ @ ElseNode (location: (29,0)-(31,3)) │ │ ├── else_keyword_loc: (29,0)-(29,4) = "else" @@ -336,7 +336,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ WhenNode (location: (33,0)-(33,15)) │ │ ├── keyword_loc: (33,0)-(33,4) = "when" @@ -355,7 +355,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (33,10)-(33,11) = "|" │ │ │ ├── opening_loc: ∅ @@ -371,11 +371,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "baz" + │ │ │ │ └── name: :baz │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "|" + │ │ │ └── name: :| │ │ └── statements: ∅ │ ├── consequent: ∅ │ ├── case_keyword_loc: (32,0)-(32,4) = "case" @@ -391,7 +391,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── conditions: (length: 1) │ └── @ WhenNode (location: (36,0)-(36,15)) │ ├── keyword_loc: (36,0)-(36,4) = "when" @@ -410,7 +410,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── call_operator_loc: (36,9)-(36,10) = "." │ │ ├── message_loc: (36,10)-(36,13) = "baz" │ │ ├── opening_loc: ∅ @@ -422,7 +422,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "baz=" + │ │ └── name: :baz= │ └── statements: ∅ ├── consequent: ∅ ├── case_keyword_loc: (35,0)-(35,4) = "case" diff --git a/test/prism/snapshots/unparser/corpus/literal/class.txt b/test/prism/snapshots/unparser/corpus/literal/class.txt index 9e67bd753a..f2c88b7241 100644 --- a/test/prism/snapshots/unparser/corpus/literal/class.txt +++ b/test/prism/snapshots/unparser/corpus/literal/class.txt @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── body: ∅ │ └── end_keyword_loc: (5,0)-(5,3) = "end" ├── @ SingletonClassNode (location: (7,0)-(9,3)) @@ -45,7 +45,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── body: │ │ @ StatementsNode (location: (8,2)-(8,3)) │ │ └── body: (length: 1) @@ -58,7 +58,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── end_keyword_loc: (9,0)-(9,3) = "end" ├── @ ClassNode (location: (11,0)-(12,3)) │ ├── locals: [] @@ -187,11 +187,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "new" + │ │ │ │ └── name: :new │ │ │ ├── closing_loc: (27,15)-(27,16) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "include" + │ │ │ └── name: :include │ │ └── @ DefNode (location: (29,2)-(31,5)) │ │ ├── name: :foo │ │ ├── name_loc: (29,6)-(29,9) = "foo" diff --git a/test/prism/snapshots/unparser/corpus/literal/def.txt b/test/prism/snapshots/unparser/corpus/literal/def.txt index 421c45fd9b..9c839f0784 100644 --- a/test/prism/snapshots/unparser/corpus/literal/def.txt +++ b/test/prism/snapshots/unparser/corpus/literal/def.txt @@ -23,7 +23,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── rescue_clause: │ │ │ @ RescueNode (location: (3,0)-(4,3)) │ │ │ ├── keyword_loc: (3,0)-(3,6) = "rescue" @@ -42,7 +42,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── consequent: ∅ │ │ ├── else_clause: │ │ │ @ ElseNode (location: (5,0)-(7,6)) @@ -59,7 +59,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ └── end_keyword_loc: (7,0)-(7,6) = "ensure" │ │ ├── ensure_clause: │ │ │ @ EnsureNode (location: (7,0)-(9,3)) @@ -76,7 +76,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "d" + │ │ │ │ └── name: :d │ │ │ └── end_keyword_loc: (9,0)-(9,3) = "end" │ │ └── end_keyword_loc: (9,0)-(9,3) = "end" │ ├── locals: [] @@ -108,7 +108,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── keyword_loc: (12,4)-(12,10) = "rescue" │ │ │ └── rescue_expression: │ │ │ @ CallNode (location: (12,11)-(12,12)) @@ -120,7 +120,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── rescue_clause: │ │ │ @ RescueNode (location: (13,0)-(14,3)) │ │ │ ├── keyword_loc: (13,0)-(13,6) = "rescue" @@ -139,7 +139,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ └── consequent: ∅ │ │ ├── else_clause: │ │ │ @ ElseNode (location: (15,0)-(17,6)) @@ -156,7 +156,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ └── end_keyword_loc: (17,0)-(17,6) = "ensure" │ │ ├── ensure_clause: │ │ │ @ EnsureNode (location: (17,0)-(19,3)) @@ -173,7 +173,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "d" + │ │ │ │ └── name: :d │ │ │ └── end_keyword_loc: (19,0)-(19,3) = "end" │ │ └── end_keyword_loc: (19,0)-(19,3) = "end" │ ├── locals: [] @@ -242,7 +242,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [] │ ├── def_keyword_loc: (27,0)-(27,3) = "def" │ ├── operator_loc: ∅ @@ -270,7 +270,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── rescue_clause: │ │ │ @ RescueNode (location: (33,0)-(34,5)) │ │ │ ├── keyword_loc: (33,0)-(33,6) = "rescue" @@ -289,7 +289,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── consequent: ∅ │ │ ├── else_clause: ∅ │ │ ├── ensure_clause: @@ -307,7 +307,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "baz" + │ │ │ │ └── name: :baz │ │ │ └── end_keyword_loc: (37,0)-(37,3) = "end" │ │ └── end_keyword_loc: (37,0)-(37,3) = "end" │ ├── locals: [] @@ -337,7 +337,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── rescue_clause: ∅ │ │ ├── else_clause: ∅ │ │ ├── ensure_clause: @@ -355,7 +355,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "baz" + │ │ │ │ └── name: :baz │ │ │ └── end_keyword_loc: (43,0)-(43,3) = "end" │ │ └── end_keyword_loc: (43,0)-(43,3) = "end" │ ├── locals: [] @@ -385,7 +385,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── rescue_clause: │ │ │ @ RescueNode (location: (47,0)-(48,5)) │ │ │ ├── keyword_loc: (47,0)-(47,6) = "rescue" @@ -404,7 +404,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "baz" + │ │ │ │ └── name: :baz │ │ │ └── consequent: ∅ │ │ ├── else_clause: ∅ │ │ ├── ensure_clause: ∅ @@ -535,7 +535,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "baz" + │ │ │ │ │ └── name: :baz │ │ │ │ └── @ NilNode (location: (63,20)-(63,23)) │ │ │ ├── opening_loc: (63,14)-(63,15) = "(" │ │ │ └── closing_loc: (63,23)-(63,24) = ")" @@ -669,7 +669,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── keyword_rest: ∅ │ │ └── block: ∅ │ ├── body: ∅ @@ -704,7 +704,7 @@ │ │ │ ├── closing_loc: (80,17)-(80,18) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── keyword_rest: ∅ │ │ └── block: ∅ │ ├── body: ∅ @@ -744,7 +744,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:*] │ ├── def_keyword_loc: (83,0)-(83,3) = "def" │ ├── operator_loc: ∅ @@ -849,7 +849,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:baz, :bor] │ ├── def_keyword_loc: (95,0)-(95,3) = "def" │ ├── operator_loc: ∅ @@ -896,7 +896,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:baz, :bor, :block] │ ├── def_keyword_loc: (99,0)-(99,3) = "def" │ ├── operator_loc: ∅ @@ -971,7 +971,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:block] │ ├── def_keyword_loc: (107,0)-(107,3) = "def" │ ├── operator_loc: ∅ @@ -1028,7 +1028,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── @ CallNode (location: (117,2)-(117,5)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -1038,7 +1038,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── locals: [] │ ├── def_keyword_loc: (115,0)-(115,3) = "def" │ ├── operator_loc: ∅ diff --git a/test/prism/snapshots/unparser/corpus/literal/defs.txt b/test/prism/snapshots/unparser/corpus/literal/defs.txt index a035c84066..a8d230d772 100644 --- a/test/prism/snapshots/unparser/corpus/literal/defs.txt +++ b/test/prism/snapshots/unparser/corpus/literal/defs.txt @@ -35,7 +35,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [] │ ├── def_keyword_loc: (4,0)-(4,3) = "def" │ ├── operator_loc: (4,8)-(4,9) = "." @@ -61,7 +61,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── @ CallNode (location: (10,2)-(10,5)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -71,7 +71,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── locals: [] │ ├── def_keyword_loc: (8,0)-(8,3) = "def" │ ├── operator_loc: (8,8)-(8,9) = "." @@ -98,7 +98,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [] │ ├── def_keyword_loc: (13,0)-(13,3) = "def" │ ├── operator_loc: (13,7)-(13,8) = "." @@ -142,7 +142,7 @@ │ │ │ │ ├── opening_loc: (17,9)-(17,10) = "{" │ │ │ │ └── closing_loc: (18,0)-(18,1) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── opening_loc: (17,4)-(17,5) = "(" │ │ └── closing_loc: (18,1)-(18,2) = ")" │ ├── parameters: ∅ @@ -158,7 +158,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [] │ ├── def_keyword_loc: (17,0)-(17,3) = "def" │ ├── operator_loc: (18,2)-(18,3) = "." @@ -185,7 +185,7 @@ │ │ │ ├── closing_loc: (22,10)-(22,11) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── opening_loc: (22,4)-(22,5) = "(" │ │ └── closing_loc: (22,11)-(22,12) = ")" │ ├── parameters: ∅ @@ -201,7 +201,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [] │ ├── def_keyword_loc: (22,0)-(22,3) = "def" │ ├── operator_loc: (22,12)-(22,13) = "." @@ -232,7 +232,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── opening_loc: (26,4)-(26,5) = "(" │ │ └── closing_loc: (26,17)-(26,18) = ")" │ ├── parameters: ∅ @@ -248,7 +248,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── locals: [] │ ├── def_keyword_loc: (26,0)-(26,3) = "def" │ ├── operator_loc: (26,18)-(26,19) = "." @@ -285,7 +285,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── locals: [] │ ├── def_keyword_loc: (30,0)-(30,3) = "def" │ ├── operator_loc: (30,14)-(30,15) = "." @@ -312,7 +312,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── locals: [] │ ├── def_keyword_loc: (34,0)-(34,3) = "def" │ ├── operator_loc: (34,7)-(34,8) = "." @@ -333,7 +333,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── parameters: ∅ ├── body: │ @ StatementsNode (location: (39,2)-(39,5)) @@ -347,7 +347,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "baz" + │ └── name: :baz ├── locals: [] ├── def_keyword_loc: (38,0)-(38,3) = "def" ├── operator_loc: (38,7)-(38,8) = "." diff --git a/test/prism/snapshots/unparser/corpus/literal/dstr.txt b/test/prism/snapshots/unparser/corpus/literal/dstr.txt index 52365b2946..0c3c5c1af2 100644 --- a/test/prism/snapshots/unparser/corpus/literal/dstr.txt +++ b/test/prism/snapshots/unparser/corpus/literal/dstr.txt @@ -62,7 +62,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "x" + │ │ └── name: :x │ ├── consequent: ∅ │ └── end_keyword_loc: (11,0)-(11,3) = "end" ├── @ InterpolatedStringNode (location: (12,0)-(12,10)) @@ -253,7 +253,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "bar" + │ │ │ │ │ └── name: :bar │ │ │ │ └── closing_loc: (32,7)-(32,8) = "}" │ │ │ └── @ StringNode (location: (32,8)-(32,0)) │ │ │ ├── flags: ∅ @@ -265,7 +265,7 @@ │ ├── closing_loc: (31,14)-(31,15) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo └── @ CallNode (location: (34,0)-(37,1)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -297,7 +297,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── closing_loc: (35,7)-(35,8) = "}" │ │ └── @ StringNode (location: (35,8)-(35,0)) │ │ ├── flags: ∅ @@ -330,4 +330,4 @@ │ ├── opening_loc: (34,16)-(34,17) = "{" │ └── closing_loc: (37,0)-(37,1) = "}" ├── flags: ∅ - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/unparser/corpus/literal/flipflop.txt b/test/prism/snapshots/unparser/corpus/literal/flipflop.txt index 48913a9e3f..4a4c6c4744 100644 --- a/test/prism/snapshots/unparser/corpus/literal/flipflop.txt +++ b/test/prism/snapshots/unparser/corpus/literal/flipflop.txt @@ -27,7 +27,7 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "i" + │ │ │ │ │ │ └── name: :i │ │ │ │ │ ├── call_operator_loc: ∅ │ │ │ │ │ ├── message_loc: (1,7)-(1,9) = "==" │ │ │ │ │ ├── opening_loc: ∅ @@ -39,7 +39,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "==" + │ │ │ │ │ └── name: :== │ │ │ │ ├── opening_loc: (1,4)-(1,5) = "(" │ │ │ │ └── closing_loc: (1,11)-(1,12) = ")" │ │ │ ├── right: @@ -58,7 +58,7 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "i" + │ │ │ │ │ │ └── name: :i │ │ │ │ │ ├── call_operator_loc: ∅ │ │ │ │ │ ├── message_loc: (1,17)-(1,19) = "==" │ │ │ │ │ ├── opening_loc: ∅ @@ -70,7 +70,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "==" + │ │ │ │ │ └── name: :== │ │ │ │ ├── opening_loc: (1,14)-(1,15) = "(" │ │ │ │ └── closing_loc: (1,21)-(1,22) = ")" │ │ │ ├── operator_loc: (1,12)-(1,14) = ".." @@ -89,7 +89,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── consequent: ∅ │ └── end_keyword_loc: (3,0)-(3,3) = "end" └── @ IfNode (location: (4,0)-(6,3)) @@ -116,7 +116,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "i" + │ │ │ │ │ └── name: :i │ │ │ │ ├── call_operator_loc: ∅ │ │ │ │ ├── message_loc: (4,7)-(4,9) = "==" │ │ │ │ ├── opening_loc: ∅ @@ -128,7 +128,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "==" + │ │ │ │ └── name: :== │ │ │ ├── opening_loc: (4,4)-(4,5) = "(" │ │ │ └── closing_loc: (4,11)-(4,12) = ")" │ │ ├── right: @@ -147,7 +147,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "i" + │ │ │ │ │ └── name: :i │ │ │ │ ├── call_operator_loc: ∅ │ │ │ │ ├── message_loc: (4,18)-(4,20) = "==" │ │ │ │ ├── opening_loc: ∅ @@ -159,7 +159,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "==" + │ │ │ │ └── name: :== │ │ │ ├── opening_loc: (4,15)-(4,16) = "(" │ │ │ └── closing_loc: (4,22)-(4,23) = ")" │ │ ├── operator_loc: (4,12)-(4,15) = "..." @@ -178,6 +178,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── consequent: ∅ └── end_keyword_loc: (6,0)-(6,3) = "end" diff --git a/test/prism/snapshots/unparser/corpus/literal/for.txt b/test/prism/snapshots/unparser/corpus/literal/for.txt index 52fb1a4673..9565756661 100644 --- a/test/prism/snapshots/unparser/corpus/literal/for.txt +++ b/test/prism/snapshots/unparser/corpus/literal/for.txt @@ -26,7 +26,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── statements: │ │ │ @ StatementsNode (location: (2,2)-(2,5)) │ │ │ └── body: (length: 1) @@ -39,7 +39,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ ├── for_keyword_loc: (1,4)-(1,7) = "for" │ │ ├── in_keyword_loc: (1,10)-(1,12) = "in" │ │ ├── do_keyword_loc: (1,17)-(1,19) = "do" @@ -47,7 +47,7 @@ │ ├── closing_loc: (3,3)-(3,4) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ ForNode (location: (4,0)-(6,3)) │ ├── index: │ │ @ LocalVariableTargetNode (location: (4,4)-(4,5)) @@ -63,7 +63,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── statements: │ │ @ StatementsNode (location: (5,2)-(5,5)) │ │ └── body: (length: 1) @@ -76,7 +76,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── for_keyword_loc: (4,0)-(4,3) = "for" │ ├── in_keyword_loc: (4,6)-(4,8) = "in" │ ├── do_keyword_loc: (4,13)-(4,15) = "do" @@ -106,7 +106,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── statements: │ │ @ StatementsNode (location: (8,2)-(8,5)) │ │ └── body: (length: 1) @@ -119,7 +119,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── for_keyword_loc: (7,0)-(7,3) = "for" │ ├── in_keyword_loc: (7,12)-(7,14) = "in" │ ├── do_keyword_loc: (7,19)-(7,21) = "do" @@ -146,7 +146,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── statements: │ @ StatementsNode (location: (11,2)-(11,5)) │ └── body: (length: 1) @@ -159,7 +159,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "baz" + │ └── name: :baz ├── for_keyword_loc: (10,0)-(10,3) = "for" ├── in_keyword_loc: (10,11)-(10,13) = "in" ├── do_keyword_loc: (10,18)-(10,20) = "do" diff --git a/test/prism/snapshots/unparser/corpus/literal/hookexe.txt b/test/prism/snapshots/unparser/corpus/literal/hookexe.txt index 1637f95619..c1baa4ac12 100644 --- a/test/prism/snapshots/unparser/corpus/literal/hookexe.txt +++ b/test/prism/snapshots/unparser/corpus/literal/hookexe.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── keyword_loc: (1,0)-(1,5) = "BEGIN" │ ├── opening_loc: (1,6)-(1,7) = "{" │ └── closing_loc: (3,0)-(3,1) = "}" @@ -29,7 +29,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar └── @ PostExecutionNode (location: (5,0)-(7,1)) ├── statements: │ @ StatementsNode (location: (6,2)-(6,5)) @@ -43,7 +43,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "baz" + │ └── name: :baz ├── keyword_loc: (5,0)-(5,3) = "END" ├── opening_loc: (5,4)-(5,5) = "{" └── closing_loc: (7,0)-(7,1) = "}" diff --git a/test/prism/snapshots/unparser/corpus/literal/if.txt b/test/prism/snapshots/unparser/corpus/literal/if.txt index bf399d7dc9..57382c4090 100644 --- a/test/prism/snapshots/unparser/corpus/literal/if.txt +++ b/test/prism/snapshots/unparser/corpus/literal/if.txt @@ -24,7 +24,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── consequent: ∅ │ └── end_keyword_loc: (3,0)-(3,3) = "end" ├── @ IfNode (location: (4,0)-(6,3)) @@ -94,7 +94,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── statements: ∅ │ ├── consequent: ∅ │ └── end_keyword_loc: (19,0)-(19,3) = "end" @@ -130,7 +130,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── operator_loc: (22,6)-(22,7) = "=" │ │ ├── consequent: ∅ │ │ └── end_keyword_loc: ∅ @@ -168,7 +168,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── operator_loc: (26,6)-(26,7) = "=" │ │ ├── consequent: ∅ │ │ └── end_keyword_loc: ∅ @@ -186,7 +186,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── statements: │ │ @ StatementsNode (location: (29,2)-(29,11)) │ │ └── body: (length: 1) @@ -204,7 +204,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── operator_loc: (29,6)-(29,7) = "=" │ ├── consequent: ∅ │ └── end_keyword_loc: (30,0)-(30,3) = "end" @@ -246,7 +246,7 @@ │ │ ├── opening_loc: (31,7)-(31,8) = "{" │ │ └── closing_loc: (33,0)-(33,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (34,2)-(35,5)) │ └── body: (length: 2) diff --git a/test/prism/snapshots/unparser/corpus/literal/kwbegin.txt b/test/prism/snapshots/unparser/corpus/literal/kwbegin.txt index 06cf243ee8..d6b8a74610 100644 --- a/test/prism/snapshots/unparser/corpus/literal/kwbegin.txt +++ b/test/prism/snapshots/unparser/corpus/literal/kwbegin.txt @@ -42,7 +42,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -61,7 +61,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (15,0)-(16,3)) │ │ ├── keyword_loc: (15,0)-(15,6) = "rescue" @@ -80,7 +80,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -99,7 +99,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ └── @ CallNode (location: (21,2)-(21,3)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -109,7 +109,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── rescue_clause: │ │ @ RescueNode (location: (22,0)-(23,3)) │ │ ├── keyword_loc: (22,0)-(22,6) = "rescue" @@ -128,7 +128,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -182,7 +182,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (36,0)-(39,3)) │ │ ├── keyword_loc: (36,0)-(36,6) = "rescue" @@ -203,7 +203,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: │ │ @ RescueNode (location: (38,0)-(39,3)) │ │ ├── keyword_loc: (38,0)-(38,6) = "rescue" @@ -224,7 +224,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: @@ -242,7 +242,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ └── end_keyword_loc: (42,0)-(42,3) = "end" │ └── end_keyword_loc: (42,0)-(42,3) = "end" ├── @ BeginNode (location: (44,0)-(53,3)) @@ -267,7 +267,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── rescue_clause: │ │ │ @ RescueNode (location: (48,2)-(48,8)) │ │ │ ├── keyword_loc: (48,2)-(48,8) = "rescue" @@ -297,7 +297,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "baz" + │ │ │ │ └── name: :baz │ │ │ └── @ CallNode (location: (52,2)-(52,5)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ @@ -307,7 +307,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -332,7 +332,7 @@ │ │ │ ├── closing_loc: (56,17)-(56,18) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "raise" + │ │ │ └── name: :raise │ │ ├── keyword_loc: (56,19)-(56,25) = "rescue" │ │ └── rescue_expression: │ │ @ LocalVariableWriteNode (location: (56,26)-(56,35)) @@ -349,7 +349,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── operator_loc: (56,30)-(56,31) = "=" │ ├── rescue_clause: │ │ @ RescueNode (location: (57,0)-(57,16)) @@ -459,7 +459,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/unparser/corpus/literal/lambda.txt b/test/prism/snapshots/unparser/corpus/literal/lambda.txt index d1c6c75987..aeeaf194e3 100644 --- a/test/prism/snapshots/unparser/corpus/literal/lambda.txt +++ b/test/prism/snapshots/unparser/corpus/literal/lambda.txt @@ -18,7 +18,7 @@ │ │ ├── opening_loc: (1,7)-(1,8) = "{" │ │ └── closing_loc: (2,0)-(2,1) = "}" │ ├── flags: ∅ - │ └── name: "lambda" + │ └── name: :lambda ├── @ CallNode (location: (3,0)-(5,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -56,7 +56,7 @@ │ │ ├── opening_loc: (3,7)-(3,8) = "{" │ │ └── closing_loc: (5,0)-(5,1) = "}" │ ├── flags: ∅ - │ └── name: "lambda" + │ └── name: :lambda ├── @ LambdaNode (location: (6,0)-(7,1)) │ ├── locals: [] │ ├── operator_loc: (6,0)-(6,2) = "->" diff --git a/test/prism/snapshots/unparser/corpus/literal/literal.txt b/test/prism/snapshots/unparser/corpus/literal/literal.txt index 63524c5ef8..7c477382dc 100644 --- a/test/prism/snapshots/unparser/corpus/literal/literal.txt +++ b/test/prism/snapshots/unparser/corpus/literal/literal.txt @@ -136,7 +136,7 @@ │ │ ├── closing_loc: (6,12)-(6,13) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (6,13)-(6,14) = "." │ ├── message_loc: (6,14)-(6,15) = "a" │ ├── opening_loc: ∅ @@ -144,7 +144,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (9,0)-(9,8)) │ ├── receiver: │ │ @ CallNode (location: (9,0)-(9,6)) @@ -164,7 +164,7 @@ │ │ ├── closing_loc: (9,5)-(9,6) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (9,6)-(9,7) = "." │ ├── message_loc: (9,7)-(9,8) = "a" │ ├── opening_loc: ∅ @@ -172,7 +172,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ HashNode (location: (10,0)-(10,30)) │ ├── opening_loc: (10,0)-(10,1) = "{" │ ├── elements: (length: 2) @@ -217,7 +217,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── operator_loc: (10,23)-(10,25) = "**" │ └── closing_loc: (10,29)-(10,30) = "}" ├── @ HashNode (location: (13,0)-(13,23)) @@ -250,7 +250,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── operator_loc: (13,16)-(13,18) = "**" │ └── closing_loc: (13,22)-(13,23) = "}" ├── @ InterpolatedStringNode (location: (14,0)-(14,14)) @@ -297,7 +297,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+@" + │ └── name: :+@ ├── @ IntegerNode (location: (17,0)-(17,1)) │ └── flags: decimal ├── @ IntegerNode (location: (18,0)-(18,1)) @@ -374,7 +374,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── closing_loc: (29,13)-(29,14) = "}" │ └── closing_loc: (29,14)-(29,15) = "\"" ├── @ InterpolatedStringNode (location: (30,0)-(30,12)) @@ -649,7 +649,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── closing_loc: (58,10)-(58,11) = "}" │ │ └── @ StringNode (location: (58,11)-(58,14)) │ │ ├── flags: ∅ @@ -693,7 +693,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "/" + │ │ │ └── name: :/ │ │ ├── opening_loc: (60,0)-(60,1) = "(" │ │ └── closing_loc: (60,10)-(60,11) = ")" │ ├── right: @@ -723,7 +723,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "/" + │ │ │ └── name: :/ │ │ ├── opening_loc: (61,3)-(61,4) = "(" │ │ └── closing_loc: (61,13)-(61,14) = ")" │ ├── operator_loc: (61,1)-(61,3) = ".." @@ -747,7 +747,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "/" + │ │ │ └── name: :/ │ │ ├── opening_loc: (62,0)-(62,1) = "(" │ │ └── closing_loc: (62,10)-(62,11) = ")" │ ├── right: @@ -782,7 +782,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "n2" + │ │ └── name: :n2 │ ├── opening_loc: (66,0)-(66,1) = "[" │ └── closing_loc: (66,10)-(66,11) = "]" ├── @ ArrayNode (location: (67,0)-(67,3)) @@ -913,7 +913,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "foo" + │ │ │ │ │ └── name: :foo │ │ │ │ ├── opening_loc: (76,5)-(76,6) = "(" │ │ │ │ └── closing_loc: (76,18)-(76,19) = ")" │ │ │ └── operator_loc: ∅ @@ -1068,7 +1068,7 @@ │ │ ├── opening_loc: (83,4)-(83,5) = "{" │ │ └── closing_loc: (86,0)-(86,1) = "}" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ SymbolNode (location: (87,0)-(88,2)) │ ├── opening_loc: (87,0)-(87,2) = ":\"" │ ├── value_loc: (87,2)-(88,1) = "a\\\\\nb" @@ -1097,7 +1097,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── closing_loc: (90,5)-(90,6) = "}" │ └── @ StringNode (location: (90,6)-(91,1)) │ ├── flags: ∅ diff --git a/test/prism/snapshots/unparser/corpus/literal/module.txt b/test/prism/snapshots/unparser/corpus/literal/module.txt index 826b8628f7..f3b7e77371 100644 --- a/test/prism/snapshots/unparser/corpus/literal/module.txt +++ b/test/prism/snapshots/unparser/corpus/literal/module.txt @@ -76,11 +76,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "new" + │ │ │ └── name: :new │ │ ├── closing_loc: (11,15)-(11,16) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "include" + │ │ └── name: :include │ └── @ DefNode (location: (13,2)-(15,5)) │ ├── name: :foo │ ├── name_loc: (13,6)-(13,9) = "foo" diff --git a/test/prism/snapshots/unparser/corpus/literal/opasgn.txt b/test/prism/snapshots/unparser/corpus/literal/opasgn.txt index 91f92de04d..cf8382df72 100644 --- a/test/prism/snapshots/unparser/corpus/literal/opasgn.txt +++ b/test/prism/snapshots/unparser/corpus/literal/opasgn.txt @@ -61,7 +61,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── name: :a │ └── depth: 0 ├── @ LocalVariableOrWriteNode (location: (7,0)-(7,7)) @@ -95,7 +95,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (9,0)-(9,17)) │ ├── receiver: │ │ @ ParenthesesNode (location: (9,0)-(9,10)) @@ -129,7 +129,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "k" + │ │ │ └── name: :k │ │ └── @ CallNode (location: (9,16)-(9,17)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -139,11 +139,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "v" + │ │ └── name: :v │ ├── closing_loc: (9,12)-(9,13) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallOperatorWriteNode (location: (10,0)-(10,8)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (10,0)-(10,1)) @@ -155,8 +155,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "b" - │ ├── write_name: "b=" + │ ├── read_name: :b + │ ├── write_name: :b= │ ├── operator: :+ │ ├── operator_loc: (10,4)-(10,6) = "+=" │ └── value: @@ -173,8 +173,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "b" - │ ├── write_name: "b=" + │ ├── read_name: :b + │ ├── write_name: :b= │ ├── operator: :- │ ├── operator_loc: (11,4)-(11,6) = "-=" │ └── value: @@ -191,8 +191,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "b" - │ ├── write_name: "b=" + │ ├── read_name: :b + │ ├── write_name: :b= │ ├── operator: :** │ ├── operator_loc: (12,4)-(12,7) = "**=" │ └── value: @@ -209,8 +209,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "b" - │ ├── write_name: "b=" + │ ├── read_name: :b + │ ├── write_name: :b= │ ├── operator: :* │ ├── operator_loc: (13,4)-(13,6) = "*=" │ └── value: @@ -227,8 +227,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "b" - │ ├── write_name: "b=" + │ ├── read_name: :b + │ ├── write_name: :b= │ ├── operator: :/ │ ├── operator_loc: (14,4)-(14,6) = "/=" │ └── value: @@ -245,8 +245,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "b" - │ ├── write_name: "b=" + │ ├── read_name: :b + │ ├── write_name: :b= │ ├── operator_loc: (15,4)-(15,7) = "&&=" │ └── value: │ @ CallNode (location: (15,8)-(15,9)) @@ -258,7 +258,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b ├── @ CallOrWriteNode (location: (16,0)-(16,9)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (16,0)-(16,1)) @@ -270,8 +270,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "b" - │ ├── write_name: "b=" + │ ├── read_name: :b + │ ├── write_name: :b= │ ├── operator_loc: (16,4)-(16,7) = "||=" │ └── value: │ @ IntegerNode (location: (16,8)-(16,9)) @@ -296,11 +296,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── closing_loc: (17,3)-(17,4) = "]" │ ├── flags: ∅ - │ ├── read_name: "[]" - │ ├── write_name: "[]=" + │ ├── read_name: :[] + │ ├── write_name: :[]= │ ├── operator: :+ │ ├── operator_loc: (17,5)-(17,7) = "+=" │ └── value: @@ -326,11 +326,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── closing_loc: (18,3)-(18,4) = "]" │ ├── flags: ∅ - │ ├── read_name: "[]" - │ ├── write_name: "[]=" + │ ├── read_name: :[] + │ ├── write_name: :[]= │ ├── operator: :- │ ├── operator_loc: (18,5)-(18,7) = "-=" │ └── value: @@ -356,11 +356,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── closing_loc: (19,3)-(19,4) = "]" │ ├── flags: ∅ - │ ├── read_name: "[]" - │ ├── write_name: "[]=" + │ ├── read_name: :[] + │ ├── write_name: :[]= │ ├── operator: :** │ ├── operator_loc: (19,5)-(19,8) = "**=" │ └── value: @@ -386,11 +386,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── closing_loc: (20,3)-(20,4) = "]" │ ├── flags: ∅ - │ ├── read_name: "[]" - │ ├── write_name: "[]=" + │ ├── read_name: :[] + │ ├── write_name: :[]= │ ├── operator: :* │ ├── operator_loc: (20,5)-(20,7) = "*=" │ └── value: @@ -416,11 +416,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── closing_loc: (21,3)-(21,4) = "]" │ ├── flags: ∅ - │ ├── read_name: "[]" - │ ├── write_name: "[]=" + │ ├── read_name: :[] + │ ├── write_name: :[]= │ ├── operator: :/ │ ├── operator_loc: (21,5)-(21,7) = "/=" │ └── value: @@ -446,11 +446,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── closing_loc: (22,3)-(22,4) = "]" │ ├── flags: ∅ - │ ├── read_name: "[]" - │ ├── write_name: "[]=" + │ ├── read_name: :[] + │ ├── write_name: :[]= │ ├── operator_loc: (22,5)-(22,8) = "&&=" │ └── value: │ @ CallNode (location: (22,9)-(22,10)) @@ -462,7 +462,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b ├── @ CallOrWriteNode (location: (23,0)-(23,10)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (23,0)-(23,1)) @@ -483,11 +483,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── closing_loc: (23,3)-(23,4) = "]" │ ├── flags: ∅ - │ ├── read_name: "[]" - │ ├── write_name: "[]=" + │ ├── read_name: :[] + │ ├── write_name: :[]= │ ├── operator_loc: (23,5)-(23,8) = "||=" │ └── value: │ @ IntegerNode (location: (23,9)-(23,10)) @@ -503,15 +503,15 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: (24,3)-(24,4) = "." ├── message_loc: (24,4)-(24,5) = "A" ├── opening_loc: ∅ ├── arguments: ∅ ├── closing_loc: ∅ ├── flags: ∅ - ├── read_name: "A" - ├── write_name: "A=" + ├── read_name: :A + ├── write_name: :A= ├── operator: :+ ├── operator_loc: (24,6)-(24,8) = "+=" └── value: diff --git a/test/prism/snapshots/unparser/corpus/literal/pattern.txt b/test/prism/snapshots/unparser/corpus/literal/pattern.txt index a40093634c..cf0132df13 100644 --- a/test/prism/snapshots/unparser/corpus/literal/pattern.txt +++ b/test/prism/snapshots/unparser/corpus/literal/pattern.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 15) │ │ ├── @ InNode (location: (2,0)-(3,6)) │ │ │ ├── pattern: @@ -70,7 +70,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "y" + │ │ │ │ └── name: :y │ │ │ ├── in_loc: (4,0)-(4,2) = "in" │ │ │ └── then_loc: (4,12)-(4,16) = "then" │ │ ├── @ InNode (location: (6,0)-(7,6)) @@ -350,7 +350,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (35,0)-(35,17)) │ │ ├── pattern: @@ -392,7 +392,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 1) │ │ └── @ InNode (location: (38,0)-(38,4)) │ │ ├── pattern: diff --git a/test/prism/snapshots/unparser/corpus/literal/pragma.txt b/test/prism/snapshots/unparser/corpus/literal/pragma.txt index 5247dcc4f5..f6e4d9971e 100644 --- a/test/prism/snapshots/unparser/corpus/literal/pragma.txt +++ b/test/prism/snapshots/unparser/corpus/literal/pragma.txt @@ -16,4 +16,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "__dir__" + └── name: :__dir__ diff --git a/test/prism/snapshots/unparser/corpus/literal/rescue.txt b/test/prism/snapshots/unparser/corpus/literal/rescue.txt index 0472a94534..1b335442e8 100644 --- a/test/prism/snapshots/unparser/corpus/literal/rescue.txt +++ b/test/prism/snapshots/unparser/corpus/literal/rescue.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── keyword_loc: (1,4)-(1,10) = "rescue" │ └── rescue_expression: │ @ CallNode (location: (1,11)-(1,14)) @@ -26,7 +26,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── @ RescueModifierNode (location: (2,0)-(2,21)) │ ├── expression: │ │ @ CallNode (location: (2,0)-(2,3)) @@ -38,7 +38,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── keyword_loc: (2,4)-(2,10) = "rescue" │ └── rescue_expression: │ @ ReturnNode (location: (2,11)-(2,21)) @@ -55,7 +55,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar └── @ LocalVariableWriteNode (location: (3,0)-(3,27)) ├── name: :x ├── depth: 0 @@ -76,7 +76,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── keyword_loc: (3,9)-(3,15) = "rescue" │ │ └── rescue_expression: │ │ @ ReturnNode (location: (3,16)-(3,26)) @@ -93,7 +93,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── opening_loc: (3,4)-(3,5) = "(" │ └── closing_loc: (3,26)-(3,27) = ")" └── operator_loc: (3,2)-(3,3) = "=" diff --git a/test/prism/snapshots/unparser/corpus/literal/send.txt b/test/prism/snapshots/unparser/corpus/literal/send.txt index d2ec4b582f..d777f54615 100644 --- a/test/prism/snapshots/unparser/corpus/literal/send.txt +++ b/test/prism/snapshots/unparser/corpus/literal/send.txt @@ -41,7 +41,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ ├── opening_loc: (2,10)-(2,11) = "(" │ │ │ └── closing_loc: (2,21)-(2,22) = ")" │ │ ├── name: :foo @@ -77,7 +77,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── end_keyword_loc: (8,0)-(8,3) = "end" │ └── name: :A ├── @ CallNode (location: (9,0)-(10,7)) @@ -100,7 +100,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (11,0)-(12,7)) │ ├── receiver: │ │ @ ModuleNode (location: (11,0)-(12,3)) @@ -119,7 +119,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (13,0)-(15,7)) │ ├── receiver: │ │ @ BeginNode (location: (13,0)-(15,3)) @@ -143,7 +143,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (16,0)-(19,7)) │ ├── receiver: │ │ @ CaseNode (location: (16,0)-(19,3)) @@ -185,7 +185,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── statements: ∅ │ │ ├── consequent: ∅ │ │ ├── case_keyword_loc: (16,0)-(16,4) = "case" @@ -197,7 +197,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "baz" + │ └── name: :baz ├── @ CallNode (location: (20,0)-(22,7)) │ ├── receiver: │ │ @ CaseNode (location: (20,0)-(22,3)) @@ -211,7 +211,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── conditions: (length: 1) │ │ │ └── @ WhenNode (location: (21,0)-(21,8)) │ │ │ ├── keyword_loc: (21,0)-(21,4) = "when" @@ -225,7 +225,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── statements: ∅ │ │ ├── consequent: ∅ │ │ ├── case_keyword_loc: (20,0)-(20,4) = "case" @@ -237,7 +237,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "baz" + │ └── name: :baz ├── @ CallNode (location: (23,0)-(24,7)) │ ├── receiver: │ │ @ SingletonClassNode (location: (23,0)-(24,3)) @@ -255,7 +255,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (25,0)-(26,7)) │ ├── receiver: │ │ @ DefNode (location: (25,0)-(26,3)) @@ -279,7 +279,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (27,0)-(28,7)) │ ├── receiver: │ │ @ DefNode (location: (27,0)-(28,3)) @@ -302,7 +302,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (29,0)-(30,7)) │ ├── receiver: │ │ @ UntilNode (location: (29,0)-(30,3)) @@ -318,7 +318,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── statements: ∅ │ │ └── flags: ∅ │ ├── call_operator_loc: (30,3)-(30,4) = "." @@ -328,7 +328,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (31,0)-(32,7)) │ ├── receiver: │ │ @ WhileNode (location: (31,0)-(32,3)) @@ -344,7 +344,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── statements: ∅ │ │ └── flags: ∅ │ ├── call_operator_loc: (32,3)-(32,4) = "." @@ -354,7 +354,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (33,0)-(34,5)) │ ├── receiver: │ │ @ CallNode (location: (33,0)-(34,1)) @@ -372,7 +372,7 @@ │ │ │ ├── opening_loc: (33,5)-(33,6) = "{" │ │ │ └── closing_loc: (34,0)-(34,1) = "}" │ │ ├── flags: ∅ - │ │ └── name: "loop" + │ │ └── name: :loop │ ├── call_operator_loc: (34,1)-(34,2) = "." │ ├── message_loc: (34,2)-(34,5) = "bar" │ ├── opening_loc: ∅ @@ -380,7 +380,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (35,0)-(36,7)) │ ├── receiver: │ │ @ IfNode (location: (35,0)-(36,3)) @@ -395,7 +395,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── statements: ∅ │ │ ├── consequent: ∅ │ │ └── end_keyword_loc: (36,0)-(36,3) = "end" @@ -406,7 +406,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "baz" + │ └── name: :baz ├── @ CallNode (location: (37,0)-(37,19)) │ ├── receiver: │ │ @ ParenthesesNode (location: (37,0)-(37,15)) @@ -435,7 +435,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "=~" + │ │ │ └── name: :=~ │ │ ├── opening_loc: (37,0)-(37,1) = "(" │ │ └── closing_loc: (37,14)-(37,15) = ")" │ ├── call_operator_loc: (37,15)-(37,16) = "." @@ -445,7 +445,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (38,0)-(38,10)) │ ├── receiver: │ │ @ ParenthesesNode (location: (38,0)-(38,6)) @@ -470,7 +470,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "max" + │ └── name: :max ├── @ CallNode (location: (39,0)-(39,18)) │ ├── receiver: │ │ @ ParenthesesNode (location: (39,0)-(39,14)) @@ -488,7 +488,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (39,5)-(39,7) = "=~" │ │ │ ├── opening_loc: ∅ @@ -504,7 +504,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "=~" + │ │ │ └── name: :=~ │ │ ├── opening_loc: (39,0)-(39,1) = "(" │ │ └── closing_loc: (39,13)-(39,14) = ")" │ ├── call_operator_loc: (39,14)-(39,15) = "." @@ -514,7 +514,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (40,0)-(40,13)) │ ├── receiver: │ │ @ RegularExpressionNode (location: (40,0)-(40,5)) @@ -537,7 +537,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "=~" + │ └── name: :=~ ├── @ CallNode (location: (41,0)-(41,12)) │ ├── receiver: │ │ @ RegularExpressionNode (location: (41,0)-(41,5)) @@ -561,11 +561,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "=~" + │ └── name: :=~ ├── @ RangeNode (location: (42,0)-(42,8)) │ ├── left: │ │ @ IntegerNode (location: (42,0)-(42,1)) @@ -582,7 +582,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "max" + │ │ └── name: :max │ ├── operator_loc: (42,1)-(42,3) = ".." │ └── flags: ∅ ├── @ CallNode (location: (43,0)-(43,5)) @@ -596,7 +596,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (44,0)-(44,5)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -606,7 +606,7 @@ │ ├── closing_loc: (44,4)-(44,5) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "FOO" + │ └── name: :FOO ├── @ CallNode (location: (45,0)-(45,4)) │ ├── receiver: │ │ @ CallNode (location: (45,0)-(45,1)) @@ -618,7 +618,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (45,1)-(45,3) = "&." │ ├── message_loc: (45,3)-(45,4) = "b" │ ├── opening_loc: ∅ @@ -626,7 +626,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "b" + │ └── name: :b ├── @ CallNode (location: (46,0)-(46,5)) │ ├── receiver: │ │ @ CallNode (location: (46,0)-(46,1)) @@ -638,7 +638,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (46,1)-(46,2) = "." │ ├── message_loc: (46,2)-(46,5) = "foo" │ ├── opening_loc: ∅ @@ -646,7 +646,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (47,0)-(47,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -656,7 +656,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (48,0)-(48,18)) │ ├── receiver: │ │ @ CallNode (location: (48,0)-(48,3)) @@ -668,7 +668,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (48,4)-(48,6) = "<<" │ ├── opening_loc: ∅ @@ -690,7 +690,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (48,12)-(48,13) = "*" │ │ │ ├── opening_loc: ∅ @@ -706,17 +706,17 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "baz" + │ │ │ │ └── name: :baz │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "*" + │ │ │ └── name: :* │ │ ├── opening_loc: (48,7)-(48,8) = "(" │ │ └── closing_loc: (48,17)-(48,18) = ")" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<<" + │ └── name: :<< ├── @ CallNode (location: (49,0)-(49,12)) │ ├── receiver: │ │ @ CallNode (location: (49,0)-(49,3)) @@ -728,7 +728,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (49,4)-(49,6) = "=~" │ ├── opening_loc: ∅ @@ -744,7 +744,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "=~" + │ └── name: :=~ ├── @ CallNode (location: (50,0)-(50,17)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -770,7 +770,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "foo" + │ │ │ │ │ └── name: :foo │ │ │ │ ├── right: │ │ │ │ │ @ CallNode (location: (50,13)-(50,16)) │ │ │ │ │ ├── receiver: ∅ @@ -781,13 +781,13 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "bar" + │ │ │ │ │ └── name: :bar │ │ │ │ └── operator_loc: (50,10)-(50,12) = "||" │ │ │ ├── opening_loc: (50,5)-(50,6) = "(" │ │ │ └── closing_loc: (50,16)-(50,17) = ")" │ │ └── operator_loc: (50,4)-(50,5) = "&" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (51,0)-(51,10)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -807,10 +807,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "block" + │ │ │ └── name: :block │ │ └── operator_loc: (51,4)-(51,5) = "&" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (52,0)-(52,17)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -831,7 +831,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "args" + │ │ └── name: :args │ ├── closing_loc: (52,17)-(52,18) = ")" │ ├── block: │ │ @ BlockArgumentNode (location: (52,11)-(52,17)) @@ -845,10 +845,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "block" + │ │ │ └── name: :block │ │ └── operator_loc: (52,11)-(52,12) = "&" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (53,0)-(53,15)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -869,11 +869,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "arguments" + │ │ └── name: :arguments │ ├── closing_loc: (53,14)-(53,15) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (54,0)-(54,9)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -889,7 +889,7 @@ │ ├── closing_loc: (54,8)-(54,9) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (55,0)-(55,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -907,11 +907,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (55,7)-(55,8) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (56,0)-(56,15)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -929,7 +929,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── @ SplatNode (location: (56,9)-(56,14)) │ │ ├── operator_loc: (56,9)-(56,10) = "*" │ │ └── expression: @@ -942,11 +942,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "args" + │ │ └── name: :args │ ├── closing_loc: (56,14)-(56,15) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (57,0)-(57,17)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -966,7 +966,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (57,8)-(57,10) = "=~" │ │ ├── opening_loc: ∅ @@ -982,11 +982,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "=~" + │ │ └── name: :=~ │ ├── closing_loc: (57,16)-(57,17) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (58,0)-(58,12)) │ ├── receiver: │ │ @ CallNode (location: (58,0)-(58,3)) @@ -998,7 +998,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (58,3)-(58,4) = "." │ ├── message_loc: (58,4)-(58,7) = "bar" │ ├── opening_loc: (58,7)-(58,8) = "(" @@ -1016,10 +1016,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── operator_loc: (58,8)-(58,9) = "&" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (59,0)-(59,26)) │ ├── receiver: │ │ @ CallNode (location: (59,0)-(59,3)) @@ -1031,7 +1031,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (59,3)-(59,4) = "." │ ├── message_loc: (59,4)-(59,7) = "bar" │ ├── opening_loc: (59,7)-(59,8) = "(" @@ -1050,7 +1050,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "arga" + │ │ │ └── name: :arga │ │ ├── @ CallNode (location: (59,15)-(59,18)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ @@ -1060,7 +1060,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── @ SplatNode (location: (59,20)-(59,25)) │ │ ├── operator_loc: (59,20)-(59,21) = "*" │ │ └── expression: @@ -1073,11 +1073,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "argb" + │ │ └── name: :argb │ ├── closing_loc: (59,25)-(59,26) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (60,0)-(60,14)) │ ├── receiver: │ │ @ CallNode (location: (60,0)-(60,3)) @@ -1089,7 +1089,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (60,3)-(60,4) = "." │ ├── message_loc: (60,4)-(60,7) = "bar" │ ├── opening_loc: (60,7)-(60,8) = "(" @@ -1108,11 +1108,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "args" + │ │ └── name: :args │ ├── closing_loc: (60,13)-(60,14) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (61,0)-(61,19)) │ ├── receiver: │ │ @ CallNode (location: (61,0)-(61,3)) @@ -1124,7 +1124,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (61,3)-(61,4) = "." │ ├── message_loc: (61,4)-(61,7) = "bar" │ ├── opening_loc: (61,7)-(61,8) = "(" @@ -1143,7 +1143,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "args" + │ │ │ └── name: :args │ │ └── @ CallNode (location: (61,15)-(61,18)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -1153,11 +1153,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── closing_loc: (61,18)-(61,19) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (62,0)-(62,18)) │ ├── receiver: │ │ @ CallNode (location: (62,0)-(62,3)) @@ -1169,7 +1169,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (62,3)-(62,4) = "." │ ├── message_loc: (62,4)-(62,7) = "bar" │ ├── opening_loc: (62,7)-(62,8) = "(" @@ -1194,10 +1194,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── operator_loc: (62,14)-(62,15) = "&" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (63,0)-(63,17)) │ ├── receiver: │ │ @ CallNode (location: (63,0)-(63,3)) @@ -1209,7 +1209,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (63,3)-(63,4) = "." │ ├── message_loc: (63,4)-(63,7) = "bar" │ ├── opening_loc: (63,7)-(63,8) = "(" @@ -1235,12 +1235,12 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "boz" + │ │ │ └── name: :boz │ │ └── operator_loc: ∅ │ ├── closing_loc: (63,16)-(63,17) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (64,0)-(64,26)) │ ├── receiver: │ │ @ CallNode (location: (64,0)-(64,3)) @@ -1252,7 +1252,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (64,3)-(64,4) = "." │ ├── message_loc: (64,4)-(64,7) = "bar" │ ├── opening_loc: (64,7)-(64,8) = "(" @@ -1268,7 +1268,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── @ KeywordHashNode (location: (64,13)-(64,25)) │ │ └── elements: (length: 1) │ │ └── @ AssocNode (location: (64,13)-(64,25)) @@ -1289,12 +1289,12 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "boz" + │ │ │ └── name: :boz │ │ └── operator_loc: (64,19)-(64,21) = "=>" │ ├── closing_loc: (64,25)-(64,26) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (65,0)-(65,19)) │ ├── receiver: │ │ @ CallNode (location: (65,0)-(65,3)) @@ -1306,7 +1306,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (65,3)-(65,4) = "." │ ├── message_loc: (65,4)-(65,7) = "bar" │ ├── opening_loc: (65,7)-(65,8) = "(" @@ -1322,7 +1322,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── @ SplatNode (location: (65,13)-(65,18)) │ │ ├── operator_loc: (65,13)-(65,14) = "*" │ │ └── expression: @@ -1335,11 +1335,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "args" + │ │ └── name: :args │ ├── closing_loc: (65,18)-(65,19) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (66,0)-(66,26)) │ ├── receiver: │ │ @ CallNode (location: (66,0)-(66,3)) @@ -1351,7 +1351,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (66,3)-(66,4) = "." │ ├── message_loc: (66,4)-(66,7) = "bar" │ ├── opening_loc: (66,7)-(66,8) = "(" @@ -1367,7 +1367,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── @ SplatNode (location: (66,13)-(66,18)) │ │ ├── operator_loc: (66,13)-(66,14) = "*" │ │ └── expression: @@ -1380,7 +1380,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "args" + │ │ └── name: :args │ ├── closing_loc: (66,26)-(66,27) = ")" │ ├── block: │ │ @ BlockArgumentNode (location: (66,20)-(66,26)) @@ -1394,10 +1394,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "block" + │ │ │ └── name: :block │ │ └── operator_loc: (66,20)-(66,21) = "&" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (67,0)-(67,16)) │ ├── receiver: │ │ @ CallNode (location: (67,0)-(67,3)) @@ -1409,7 +1409,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (67,3)-(67,4) = "." │ ├── message_loc: (67,4)-(67,7) = "bar" │ ├── opening_loc: (67,7)-(67,8) = "(" @@ -1425,7 +1425,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── @ HashNode (location: (67,13)-(67,15)) │ │ ├── opening_loc: (67,13)-(67,14) = "{" │ │ ├── elements: (length: 0) @@ -1433,7 +1433,7 @@ │ ├── closing_loc: (67,15)-(67,16) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (68,0)-(68,26)) │ ├── receiver: │ │ @ CallNode (location: (68,0)-(68,3)) @@ -1445,7 +1445,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (68,3)-(68,4) = "." │ ├── message_loc: (68,4)-(68,7) = "bar" │ ├── opening_loc: (68,7)-(68,8) = "(" @@ -1472,7 +1472,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "boz" + │ │ │ │ │ └── name: :boz │ │ │ │ └── operator_loc: ∅ │ │ │ └── closing_loc: (68,19)-(68,20) = "}" │ │ └── @ CallNode (location: (68,22)-(68,25)) @@ -1484,11 +1484,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "boz" + │ │ └── name: :boz │ ├── closing_loc: (68,25)-(68,26) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── @ CallNode (location: (69,0)-(69,12)) │ ├── receiver: │ │ @ CallNode (location: (69,0)-(69,3)) @@ -1500,7 +1500,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (69,3)-(69,4) = "." │ ├── message_loc: (69,4)-(69,7) = "bar" │ ├── opening_loc: ∅ @@ -1515,7 +1515,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar=" + │ └── name: :bar= ├── @ CallNode (location: (70,0)-(70,9)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1543,12 +1543,12 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── operator_loc: ∅ │ ├── closing_loc: (70,8)-(70,9) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (71,0)-(71,11)) │ ├── receiver: │ │ @ CallNode (location: (71,0)-(71,3)) @@ -1560,7 +1560,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (71,3)-(71,4) = "." │ ├── message_loc: (71,4)-(71,5) = "&" │ ├── opening_loc: (71,5)-(71,6) = "(" @@ -1586,12 +1586,12 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── operator_loc: ∅ │ ├── closing_loc: (71,10)-(71,11) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "&" + │ └── name: :& ├── @ CallNode (location: (72,0)-(72,10)) │ ├── receiver: │ │ @ CallNode (location: (72,0)-(72,3)) @@ -1603,7 +1603,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (72,3)-(72,4) = "." │ ├── message_loc: (72,4)-(72,5) = "&" │ ├── opening_loc: (72,5)-(72,6) = "(" @@ -1623,12 +1623,12 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ └── operator_loc: (72,6)-(72,8) = "**" │ ├── closing_loc: (72,9)-(72,10) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "&" + │ └── name: :& ├── @ CallNode (location: (73,0)-(73,9)) │ ├── receiver: │ │ @ CallNode (location: (73,0)-(73,3)) @@ -1640,7 +1640,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (73,3)-(73,9) = "[*baz]" │ ├── opening_loc: (73,3)-(73,4) = "[" @@ -1659,11 +1659,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── closing_loc: (73,8)-(73,9) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ CallNode (location: (74,0)-(74,9)) │ ├── receiver: │ │ @ CallNode (location: (74,0)-(74,3)) @@ -1675,7 +1675,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (74,3)-(74,9) = "[1, 2]" │ ├── opening_loc: (74,3)-(74,4) = "[" @@ -1689,7 +1689,7 @@ │ ├── closing_loc: (74,8)-(74,9) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ CallNode (location: (75,0)-(75,5)) │ ├── receiver: │ │ @ CallNode (location: (75,0)-(75,3)) @@ -1701,7 +1701,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (75,3)-(75,5) = "[]" │ ├── opening_loc: (75,3)-(75,4) = "[" @@ -1709,7 +1709,7 @@ │ ├── closing_loc: (75,4)-(75,5) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ CallNode (location: (76,0)-(76,8)) │ ├── receiver: │ │ @ SelfNode (location: (76,0)-(76,4)) @@ -1720,7 +1720,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (77,0)-(77,13)) │ ├── receiver: │ │ @ SelfNode (location: (77,0)-(77,4)) @@ -1738,7 +1738,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo=" + │ └── name: :foo= ├── @ CallNode (location: (78,0)-(78,17)) │ ├── receiver: │ │ @ ParenthesesNode (location: (78,0)-(78,7)) @@ -1756,7 +1756,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (78,3)-(78,4) = "+" │ │ │ ├── opening_loc: ∅ @@ -1772,11 +1772,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "+" + │ │ │ └── name: :+ │ │ ├── opening_loc: (78,0)-(78,1) = "(" │ │ └── closing_loc: (78,6)-(78,7) = ")" │ ├── call_operator_loc: ∅ @@ -1800,7 +1800,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (78,13)-(78,14) = "-" │ │ │ ├── opening_loc: ∅ @@ -1816,17 +1816,17 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "d" + │ │ │ │ └── name: :d │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "-" + │ │ │ └── name: :- │ │ ├── opening_loc: (78,10)-(78,11) = "(" │ │ └── closing_loc: (78,16)-(78,17) = ")" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "/" + │ └── name: :/ ├── @ CallNode (location: (79,0)-(79,19)) │ ├── receiver: │ │ @ ParenthesesNode (location: (79,0)-(79,7)) @@ -1844,7 +1844,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (79,3)-(79,4) = "+" │ │ │ ├── opening_loc: ∅ @@ -1860,11 +1860,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "+" + │ │ │ └── name: :+ │ │ ├── opening_loc: (79,0)-(79,1) = "(" │ │ └── closing_loc: (79,6)-(79,7) = ")" │ ├── call_operator_loc: ∅ @@ -1884,7 +1884,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ ├── call_operator_loc: (79,11)-(79,12) = "." │ │ ├── message_loc: (79,12)-(79,13) = "-" │ │ ├── opening_loc: (79,13)-(79,14) = "(" @@ -1900,7 +1900,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "e" + │ │ │ │ └── name: :e │ │ │ └── @ CallNode (location: (79,17)-(79,18)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ @@ -1910,15 +1910,15 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "f" + │ │ │ └── name: :f │ │ ├── closing_loc: (79,18)-(79,19) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "-" + │ │ └── name: :- │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "/" + │ └── name: :/ ├── @ CallNode (location: (80,0)-(80,17)) │ ├── receiver: │ │ @ ParenthesesNode (location: (80,0)-(80,7)) @@ -1936,7 +1936,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (80,3)-(80,4) = "+" │ │ │ ├── opening_loc: ∅ @@ -1952,11 +1952,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "+" + │ │ │ └── name: :+ │ │ ├── opening_loc: (80,0)-(80,1) = "(" │ │ └── closing_loc: (80,6)-(80,7) = ")" │ ├── call_operator_loc: ∅ @@ -1976,7 +1976,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ ├── call_operator_loc: (80,11)-(80,12) = "." │ │ ├── message_loc: (80,12)-(80,13) = "-" │ │ ├── opening_loc: (80,13)-(80,14) = "(" @@ -1995,15 +1995,15 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "f" + │ │ │ └── name: :f │ │ ├── closing_loc: (80,16)-(80,17) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "-" + │ │ └── name: :- │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "/" + │ └── name: :/ ├── @ CallNode (location: (81,0)-(81,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -2025,12 +2025,12 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── operator_loc: (81,2)-(81,4) = "**" │ ├── closing_loc: (81,7)-(81,8) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "x" + │ └── name: :x ├── @ CallNode (location: (82,0)-(82,6)) │ ├── receiver: │ │ @ CallNode (location: (82,0)-(82,3)) @@ -2042,7 +2042,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (82,3)-(82,5) = "&." │ ├── message_loc: (82,5)-(82,6) = "!" │ ├── opening_loc: ∅ @@ -2050,7 +2050,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (83,0)-(83,8)) │ ├── receiver: │ │ @ CallNode (location: (83,0)-(83,3)) @@ -2062,7 +2062,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (83,3)-(83,4) = "." │ ├── message_loc: (83,4)-(83,5) = "~" │ ├── opening_loc: (83,5)-(83,6) = "(" @@ -2078,11 +2078,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── closing_loc: (83,7)-(83,8) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "~" + │ └── name: :~ └── @ CallNode (location: (84,0)-(84,7)) ├── receiver: │ @ CallNode (location: (84,0)-(84,1)) @@ -2094,7 +2094,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (84,1)-(84,3) = "&." ├── message_loc: (84,3)-(84,4) = "+" ├── opening_loc: (84,4)-(84,5) = "(" @@ -2110,8 +2110,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b ├── closing_loc: (84,6)-(84,7) = ")" ├── block: ∅ ├── flags: safe_navigation - └── name: "+" + └── name: :+ diff --git a/test/prism/snapshots/unparser/corpus/literal/since/27.txt b/test/prism/snapshots/unparser/corpus/literal/since/27.txt index f9277521a3..25073bb691 100644 --- a/test/prism/snapshots/unparser/corpus/literal/since/27.txt +++ b/test/prism/snapshots/unparser/corpus/literal/since/27.txt @@ -29,7 +29,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ └── @ ParenthesesNode (location: (4,0)-(4,5)) ├── body: │ @ StatementsNode (location: (4,1)-(4,4)) diff --git a/test/prism/snapshots/unparser/corpus/literal/since/31.txt b/test/prism/snapshots/unparser/corpus/literal/since/31.txt index d66a2017c2..59a2579952 100644 --- a/test/prism/snapshots/unparser/corpus/literal/since/31.txt +++ b/test/prism/snapshots/unparser/corpus/literal/since/31.txt @@ -35,7 +35,7 @@ │ │ │ ├── expression: ∅ │ │ │ └── operator_loc: (2,6)-(2,7) = "&" │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:&] │ ├── def_keyword_loc: (1,0)-(1,3) = "def" │ ├── operator_loc: ∅ @@ -77,7 +77,7 @@ │ │ ├── expression: ∅ │ │ └── operator_loc: (6,6)-(6,7) = "&" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:a, :&] ├── def_keyword_loc: (5,0)-(5,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/unparser/corpus/literal/since/32.txt b/test/prism/snapshots/unparser/corpus/literal/since/32.txt index aa8c15e0fb..be26ab9428 100644 --- a/test/prism/snapshots/unparser/corpus/literal/since/32.txt +++ b/test/prism/snapshots/unparser/corpus/literal/since/32.txt @@ -44,7 +44,7 @@ │ │ ├── closing_loc: (2,18)-(2,19) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:argument, :**] │ ├── def_keyword_loc: (1,0)-(1,3) = "def" │ ├── operator_loc: ∅ @@ -91,7 +91,7 @@ │ ├── closing_loc: (6,17)-(6,18) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:argument, :*] ├── def_keyword_loc: (5,0)-(5,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/unparser/corpus/literal/super.txt b/test/prism/snapshots/unparser/corpus/literal/super.txt index 7a6c241d6f..c85721b0e0 100644 --- a/test/prism/snapshots/unparser/corpus/literal/super.txt +++ b/test/prism/snapshots/unparser/corpus/literal/super.txt @@ -26,7 +26,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rparen_loc: (3,7)-(3,8) = ")" │ └── block: ∅ ├── @ SuperNode (location: (4,0)-(4,11)) @@ -44,7 +44,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ └── @ CallNode (location: (4,9)-(4,10)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -54,7 +54,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── rparen_loc: (4,10)-(4,11) = ")" │ └── block: ∅ ├── @ SuperNode (location: (5,0)-(5,12)) @@ -74,7 +74,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "block" + │ │ └── name: :block │ └── operator_loc: (5,6)-(5,7) = "&" ├── @ SuperNode (location: (6,0)-(6,15)) │ ├── keyword_loc: (6,0)-(6,5) = "super" @@ -91,7 +91,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rparen_loc: (6,15)-(6,16) = ")" │ └── block: │ @ BlockArgumentNode (location: (6,9)-(6,15)) @@ -105,7 +105,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "block" + │ │ └── name: :block │ └── operator_loc: (6,9)-(6,10) = "&" ├── @ SuperNode (location: (7,0)-(9,2)) │ ├── keyword_loc: (7,0)-(7,5) = "super" @@ -136,11 +136,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ ├── opening_loc: (7,8)-(7,9) = "{" │ │ │ └── closing_loc: (9,0)-(9,1) = "}" │ │ ├── flags: ∅ - │ │ └── name: "a" + │ │ └── name: :a │ ├── rparen_loc: (9,1)-(9,2) = ")" │ └── block: ∅ ├── @ ForwardingSuperNode (location: (10,0)-(12,1)) @@ -160,7 +160,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (10,6)-(10,7) = "{" │ └── closing_loc: (12,0)-(12,1) = "}" ├── @ SuperNode (location: (13,0)-(15,1)) @@ -178,7 +178,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rparen_loc: (13,7)-(13,8) = ")" │ └── block: │ @ BlockNode (location: (13,9)-(15,1)) @@ -196,7 +196,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (13,9)-(13,10) = "{" │ └── closing_loc: (15,0)-(15,1) = "}" ├── @ SuperNode (location: (16,0)-(18,1)) @@ -220,7 +220,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (16,8)-(16,9) = "{" │ └── closing_loc: (18,0)-(18,1) = "}" └── @ SuperNode (location: (19,0)-(21,1)) @@ -238,7 +238,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ └── @ CallNode (location: (19,9)-(19,10)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -248,7 +248,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b ├── rparen_loc: (19,10)-(19,11) = ")" └── block: @ BlockNode (location: (19,12)-(21,1)) @@ -266,6 +266,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── opening_loc: (19,12)-(19,13) = "{" └── closing_loc: (21,0)-(21,1) = "}" diff --git a/test/prism/snapshots/unparser/corpus/literal/unary.txt b/test/prism/snapshots/unparser/corpus/literal/unary.txt index b8586036bf..2a3330fdea 100644 --- a/test/prism/snapshots/unparser/corpus/literal/unary.txt +++ b/test/prism/snapshots/unparser/corpus/literal/unary.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (2,0)-(2,5)) │ ├── receiver: │ │ @ ParenthesesNode (location: (2,1)-(2,5)) @@ -32,7 +32,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "!" + │ │ │ └── name: :! │ │ ├── opening_loc: (2,1)-(2,2) = "(" │ │ └── closing_loc: (2,4)-(2,5) = ")" │ ├── call_operator_loc: ∅ @@ -42,7 +42,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (3,0)-(3,16)) │ ├── receiver: │ │ @ ParenthesesNode (location: (3,1)-(3,16)) @@ -66,7 +66,7 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "foo" + │ │ │ │ │ │ └── name: :foo │ │ │ │ │ ├── right: │ │ │ │ │ │ @ CallNode (location: (3,11)-(3,14)) │ │ │ │ │ │ ├── receiver: ∅ @@ -77,7 +77,7 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "bar" + │ │ │ │ │ │ └── name: :bar │ │ │ │ │ └── operator_loc: (3,8)-(3,10) = "||" │ │ │ │ ├── opening_loc: (3,3)-(3,4) = "(" │ │ │ │ └── closing_loc: (3,14)-(3,15) = ")" @@ -88,7 +88,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "!" + │ │ │ └── name: :! │ │ ├── opening_loc: (3,1)-(3,2) = "(" │ │ └── closing_loc: (3,15)-(3,16) = ")" │ ├── call_operator_loc: ∅ @@ -98,7 +98,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (4,0)-(4,9)) │ ├── receiver: │ │ @ CallNode (location: (4,1)-(4,9)) @@ -118,7 +118,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "!" + │ │ │ │ └── name: :! │ │ │ ├── opening_loc: (4,1)-(4,2) = "(" │ │ │ └── closing_loc: (4,4)-(4,5) = ")" │ │ ├── call_operator_loc: (4,5)-(4,6) = "." @@ -128,7 +128,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── call_operator_loc: ∅ │ ├── message_loc: (4,0)-(4,1) = "!" │ ├── opening_loc: ∅ @@ -136,7 +136,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (5,0)-(5,2)) │ ├── receiver: │ │ @ CallNode (location: (5,1)-(5,2)) @@ -148,7 +148,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: ∅ │ ├── message_loc: (5,0)-(5,1) = "~" │ ├── opening_loc: ∅ @@ -156,7 +156,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "~" + │ └── name: :~ ├── @ CallNode (location: (6,0)-(6,2)) │ ├── receiver: │ │ @ CallNode (location: (6,1)-(6,2)) @@ -168,7 +168,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: ∅ │ ├── message_loc: (6,0)-(6,1) = "-" │ ├── opening_loc: ∅ @@ -176,7 +176,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "-@" + │ └── name: :-@ ├── @ CallNode (location: (7,0)-(7,2)) │ ├── receiver: │ │ @ CallNode (location: (7,1)-(7,2)) @@ -188,7 +188,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: ∅ │ ├── message_loc: (7,0)-(7,1) = "+" │ ├── opening_loc: ∅ @@ -196,7 +196,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+@" + │ └── name: :+@ └── @ CallNode (location: (8,0)-(8,9)) ├── receiver: │ @ CallNode (location: (8,1)-(8,9)) @@ -216,7 +216,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (8,2)-(8,3) = "-" │ │ │ ├── opening_loc: ∅ @@ -224,7 +224,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "-@" + │ │ │ └── name: :-@ │ │ ├── opening_loc: (8,1)-(8,2) = "(" │ │ └── closing_loc: (8,4)-(8,5) = ")" │ ├── call_operator_loc: (8,5)-(8,6) = "." @@ -234,7 +234,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (8,0)-(8,1) = "-" ├── opening_loc: ∅ @@ -242,4 +242,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "-@" + └── name: :-@ diff --git a/test/prism/snapshots/unparser/corpus/literal/variables.txt b/test/prism/snapshots/unparser/corpus/literal/variables.txt index 94b6f067dc..a4a67f169d 100644 --- a/test/prism/snapshots/unparser/corpus/literal/variables.txt +++ b/test/prism/snapshots/unparser/corpus/literal/variables.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── @ InstanceVariableReadNode (location: (2,0)-(2,2)) │ └── name: :@a ├── @ ClassVariableReadNode (location: (3,0)-(3,3)) diff --git a/test/prism/snapshots/unparser/corpus/literal/while.txt b/test/prism/snapshots/unparser/corpus/literal/while.txt index aa47d33766..ecc2f83599 100644 --- a/test/prism/snapshots/unparser/corpus/literal/while.txt +++ b/test/prism/snapshots/unparser/corpus/literal/while.txt @@ -54,7 +54,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "foo" + │ │ │ │ │ └── name: :foo │ │ │ │ ├── statements: │ │ │ │ │ @ StatementsNode (location: (4,6)-(4,15)) │ │ │ │ │ └── body: (length: 1) @@ -71,7 +71,7 @@ │ │ │ ├── opening_loc: (2,6)-(2,7) = "{" │ │ │ └── closing_loc: (6,2)-(6,3) = "}" │ │ ├── flags: ∅ - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── end_keyword_loc: (7,0)-(7,3) = "end" │ └── name: :A ├── @ DefNode (location: (9,0)-(11,3)) @@ -106,11 +106,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "baz" + │ │ │ │ └── name: :baz │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "!=" + │ │ │ └── name: :!= │ │ ├── statements: │ │ │ @ StatementsNode (location: (10,2)-(10,11)) │ │ │ └── body: (length: 1) @@ -128,7 +128,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── operator_loc: (10,6)-(10,7) = "=" │ │ └── flags: ∅ │ ├── locals: [:foo] @@ -171,7 +171,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── operator_loc: (14,6)-(14,7) = "=" │ │ └── flags: ∅ │ ├── end_keyword_loc: (15,0)-(15,3) = "end" @@ -209,7 +209,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── operator_loc: (18,6)-(18,7) = "=" │ │ └── flags: ∅ │ ├── end_keyword_loc: (19,0)-(19,3) = "end" @@ -236,7 +236,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── statements: │ │ │ @ StatementsNode (location: (23,4)-(23,13)) │ │ │ └── body: (length: 1) @@ -254,7 +254,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── operator_loc: (23,8)-(23,9) = "=" │ │ └── flags: ∅ │ ├── end_keyword_loc: (25,0)-(25,3) = "end" @@ -310,7 +310,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "foo" + │ │ │ │ │ └── name: :foo │ │ │ │ ├── statements: │ │ │ │ │ @ StatementsNode (location: (30,6)-(30,15)) │ │ │ │ │ └── body: (length: 1) @@ -328,13 +328,13 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "bar" + │ │ │ │ │ │ └── name: :bar │ │ │ │ │ └── operator_loc: (30,10)-(30,11) = "=" │ │ │ │ └── flags: ∅ │ │ │ ├── opening_loc: (28,7)-(28,8) = "{" │ │ │ └── closing_loc: (32,2)-(32,3) = "}" │ │ ├── flags: ∅ - │ │ └── name: "each" + │ │ └── name: :each │ ├── end_keyword_loc: (33,0)-(33,3) = "end" │ └── name: :A ├── @ ModuleNode (location: (35,0)-(41,3)) @@ -399,13 +399,13 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "bar" + │ │ │ │ │ │ └── name: :bar │ │ │ │ │ └── operator_loc: (38,10)-(38,11) = "=" │ │ │ │ └── flags: ∅ │ │ │ ├── opening_loc: (36,7)-(36,8) = "{" │ │ │ └── closing_loc: (40,2)-(40,3) = "}" │ │ ├── flags: ∅ - │ │ └── name: "each" + │ │ └── name: :each │ ├── end_keyword_loc: (41,0)-(41,3) = "end" │ └── name: :A ├── @ LocalVariableWriteNode (location: (42,0)-(44,14)) @@ -430,7 +430,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "baz" + │ │ │ │ └── name: :baz │ │ │ ├── statements: │ │ │ │ @ StatementsNode (location: (42,5)-(44,3)) │ │ │ │ └── body: (length: 1) @@ -448,7 +448,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "foo" + │ │ │ │ │ └── name: :foo │ │ │ │ ├── rescue_clause: ∅ │ │ │ │ ├── else_clause: ∅ │ │ │ │ ├── ensure_clause: ∅ @@ -470,7 +470,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── statements: │ │ @ StatementsNode (location: (45,0)-(47,3)) │ │ └── body: (length: 1) @@ -488,7 +488,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── rescue_clause: ∅ │ │ ├── else_clause: ∅ │ │ ├── ensure_clause: ∅ @@ -507,7 +507,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── statements: │ │ @ StatementsNode (location: (48,0)-(51,3)) │ │ └── body: (length: 1) @@ -525,7 +525,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ └── @ CallNode (location: (50,2)-(50,5)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ @@ -535,7 +535,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── rescue_clause: ∅ │ │ ├── else_clause: ∅ │ │ ├── ensure_clause: ∅ @@ -554,7 +554,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── statements: │ │ @ StatementsNode (location: (52,0)-(55,3)) │ │ └── body: (length: 1) @@ -572,7 +572,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ └── @ CallNode (location: (54,2)-(54,5)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ @@ -582,7 +582,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── rescue_clause: ∅ │ │ ├── else_clause: ∅ │ │ ├── ensure_clause: ∅ @@ -629,7 +629,7 @@ │ │ │ │ ├── opening_loc: (61,11)-(61,12) = "{" │ │ │ │ └── closing_loc: (62,0)-(62,1) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── opening_loc: (61,6)-(61,7) = "(" │ │ └── closing_loc: (62,1)-(62,2) = ")" │ ├── statements: @@ -682,7 +682,7 @@ │ │ │ ├── opening_loc: (70,11)-(70,12) = "{" │ │ │ └── closing_loc: (71,0)-(71,1) = "}" │ │ ├── flags: ∅ - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (70,6)-(70,7) = "(" │ └── closing_loc: (71,1)-(71,2) = ")" ├── statements: diff --git a/test/prism/snapshots/unparser/corpus/literal/yield.txt b/test/prism/snapshots/unparser/corpus/literal/yield.txt index fc9bc27cc1..5fc92d2129 100644 --- a/test/prism/snapshots/unparser/corpus/literal/yield.txt +++ b/test/prism/snapshots/unparser/corpus/literal/yield.txt @@ -23,7 +23,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ └── rparen_loc: (2,7)-(2,8) = ")" └── @ YieldNode (location: (3,0)-(3,11)) ├── keyword_loc: (3,0)-(3,5) = "yield" @@ -40,7 +40,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ └── @ CallNode (location: (3,9)-(3,10)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -50,5 +50,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "b" + │ └── name: :b └── rparen_loc: (3,10)-(3,11) = ")" diff --git a/test/prism/snapshots/unparser/corpus/semantic/and.txt b/test/prism/snapshots/unparser/corpus/semantic/and.txt index b4136ecdac..ae4d01a7d6 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/and.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/and.txt @@ -16,7 +16,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── right: │ │ │ @ CallNode (location: (1,4)-(1,5)) │ │ │ ├── receiver: ∅ @@ -27,7 +27,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── operator_loc: (1,1)-(1,4) = "..." │ │ └── flags: exclude_end │ ├── right: @@ -42,7 +42,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ ├── right: │ │ │ @ CallNode (location: (1,13)-(1,14)) │ │ │ ├── receiver: ∅ @@ -53,7 +53,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── operator_loc: (1,10)-(1,13) = "..." │ │ └── flags: exclude_end │ └── operator_loc: (1,6)-(1,8) = "or" @@ -70,7 +70,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── right: │ │ │ @ CallNode (location: (2,4)-(2,5)) │ │ │ ├── receiver: ∅ @@ -81,7 +81,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── operator_loc: (2,1)-(2,4) = "..." │ │ └── flags: exclude_end │ ├── right: @@ -96,7 +96,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ ├── right: │ │ │ @ CallNode (location: (2,14)-(2,15)) │ │ │ ├── receiver: ∅ @@ -107,7 +107,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── operator_loc: (2,11)-(2,14) = "..." │ │ └── flags: exclude_end │ └── operator_loc: (2,6)-(2,9) = "and" @@ -127,7 +127,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── right: │ │ │ │ @ CallNode (location: (4,7)-(4,8)) │ │ │ │ ├── receiver: ∅ @@ -138,7 +138,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ ├── operator_loc: (4,4)-(4,7) = "..." │ │ │ └── flags: exclude_end │ │ ├── right: @@ -153,7 +153,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── right: │ │ │ │ @ CallNode (location: (4,16)-(4,17)) │ │ │ │ ├── receiver: ∅ @@ -164,7 +164,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "d" + │ │ │ │ └── name: :d │ │ │ ├── operator_loc: (4,13)-(4,16) = "..." │ │ │ └── flags: exclude_end │ │ └── operator_loc: (4,9)-(4,11) = "or" @@ -187,7 +187,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── right: │ │ │ @ CallNode (location: (7,7)-(7,8)) │ │ │ ├── receiver: ∅ @@ -198,7 +198,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── operator_loc: (7,4)-(7,7) = "..." │ │ └── flags: exclude_end │ ├── right: @@ -213,7 +213,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "c" + │ │ │ └── name: :c │ │ ├── right: │ │ │ @ CallNode (location: (7,17)-(7,18)) │ │ │ ├── receiver: ∅ @@ -224,7 +224,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── operator_loc: (7,14)-(7,17) = "..." │ │ └── flags: exclude_end │ └── operator_loc: (7,9)-(7,12) = "and" diff --git a/test/prism/snapshots/unparser/corpus/semantic/block.txt b/test/prism/snapshots/unparser/corpus/semantic/block.txt index 741a810c4b..d1abdb22cc 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/block.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/block.txt @@ -18,7 +18,7 @@ │ │ ├── opening_loc: (1,4)-(1,6) = "do" │ │ └── closing_loc: (2,0)-(2,3) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (4,0)-(6,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -48,7 +48,7 @@ │ │ ├── opening_loc: (4,4)-(4,6) = "do" │ │ └── closing_loc: (6,0)-(6,3) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (8,0)-(11,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -73,7 +73,7 @@ │ │ ├── opening_loc: (8,4)-(8,6) = "do" │ │ └── closing_loc: (11,0)-(11,3) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (13,0)-(14,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -104,7 +104,7 @@ │ │ ├── opening_loc: (13,4)-(13,6) = "do" │ │ └── closing_loc: (14,0)-(14,3) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (16,0)-(20,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -148,7 +148,7 @@ │ │ ├── opening_loc: (16,12)-(16,14) = "do" │ │ └── closing_loc: (20,0)-(20,3) = "end" │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo └── @ CallNode (location: (22,0)-(26,3)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -180,8 +180,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── opening_loc: (22,12)-(22,14) = "do" │ └── closing_loc: (26,0)-(26,3) = "end" ├── flags: ∅ - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/unparser/corpus/semantic/def.txt b/test/prism/snapshots/unparser/corpus/semantic/def.txt index 0f9242b53a..c8a24b4b97 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/def.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/def.txt @@ -26,7 +26,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (2,5)-(2,6) = "-" │ │ │ ├── opening_loc: ∅ @@ -42,11 +42,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "-" + │ │ │ └── name: :- │ │ ├── opening_loc: (2,2)-(2,3) = "(" │ │ └── closing_loc: (2,8)-(2,9) = ")" │ ├── locals: [] @@ -75,7 +75,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── keyword_loc: (6,4)-(6,10) = "rescue" │ └── rescue_expression: │ @ ConstantReadNode (location: (6,11)-(6,20)) diff --git a/test/prism/snapshots/unparser/corpus/semantic/kwbegin.txt b/test/prism/snapshots/unparser/corpus/semantic/kwbegin.txt index 5a4881abd6..9499e968ad 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/kwbegin.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/kwbegin.txt @@ -49,7 +49,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -68,7 +68,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── rescue_clause: │ │ @ RescueNode (location: (16,0)-(17,3)) │ │ ├── keyword_loc: (16,0)-(16,6) = "rescue" @@ -87,7 +87,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -106,7 +106,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ └── @ CallNode (location: (22,2)-(22,3)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -116,7 +116,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── rescue_clause: │ │ @ RescueNode (location: (23,0)-(24,3)) │ │ ├── keyword_loc: (23,0)-(23,6) = "rescue" @@ -135,7 +135,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -194,7 +194,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── rescue_clause: │ @ RescueNode (location: (36,0)-(39,3)) │ ├── keyword_loc: (36,0)-(36,6) = "rescue" @@ -215,7 +215,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── consequent: │ @ RescueNode (location: (38,0)-(39,3)) │ ├── keyword_loc: (38,0)-(38,6) = "rescue" @@ -236,7 +236,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ └── consequent: ∅ ├── else_clause: ∅ ├── ensure_clause: @@ -254,6 +254,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "d" + │ │ └── name: :d │ └── end_keyword_loc: (42,0)-(42,3) = "end" └── end_keyword_loc: (42,0)-(42,3) = "end" diff --git a/test/prism/snapshots/unparser/corpus/semantic/literal.txt b/test/prism/snapshots/unparser/corpus/semantic/literal.txt index c7f4fa8f9b..c79d0370da 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/literal.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/literal.txt @@ -81,12 +81,12 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── closing_loc: (14,9)-(14,10) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "w" + └── name: :w diff --git a/test/prism/snapshots/unparser/corpus/semantic/send.txt b/test/prism/snapshots/unparser/corpus/semantic/send.txt index 700b94d8ec..f1f5362ce8 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/send.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/send.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (2,0)-(2,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -26,7 +26,7 @@ │ ├── closing_loc: (2,5)-(2,6) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (4,0)-(4,15)) │ ├── receiver: │ │ @ CallNode (location: (4,0)-(4,10)) @@ -42,7 +42,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ ├── call_operator_loc: (4,1)-(4,2) = "." │ │ │ ├── message_loc: (4,2)-(4,5) = "===" │ │ │ ├── opening_loc: (4,5)-(4,6) = "(" @@ -58,11 +58,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "b" + │ │ │ │ └── name: :b │ │ │ ├── closing_loc: (4,7)-(4,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "===" + │ │ │ └── name: :=== │ │ ├── call_operator_loc: (4,8)-(4,9) = "." │ │ ├── message_loc: (4,9)-(4,10) = "c" │ │ ├── opening_loc: ∅ @@ -70,7 +70,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "c" + │ │ └── name: :c │ ├── call_operator_loc: ∅ │ ├── message_loc: (4,11)-(4,13) = "==" │ ├── opening_loc: ∅ @@ -86,11 +86,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "d" + │ │ └── name: :d │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "==" + │ └── name: :== └── @ CallNode (location: (6,0)-(6,15)) ├── receiver: │ @ CallNode (location: (6,0)-(6,1)) @@ -102,7 +102,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: ∅ ├── message_loc: (6,2)-(6,4) = "==" ├── opening_loc: ∅ @@ -122,7 +122,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "d" + │ │ │ └── name: :d │ │ ├── call_operator_loc: (6,6)-(6,7) = "." │ │ ├── message_loc: (6,7)-(6,8) = "c" │ │ ├── opening_loc: ∅ @@ -130,7 +130,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "c" + │ │ └── name: :c │ ├── call_operator_loc: (6,8)-(6,9) = "." │ ├── message_loc: (6,9)-(6,12) = "===" │ ├── opening_loc: (6,12)-(6,13) = "(" @@ -146,12 +146,12 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "c" + │ │ └── name: :c │ ├── closing_loc: (6,14)-(6,15) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "===" + │ └── name: :=== ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "==" + └── name: :== diff --git a/test/prism/snapshots/unparser/corpus/semantic/while.txt b/test/prism/snapshots/unparser/corpus/semantic/while.txt index f723dc6305..f06dc58136 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/while.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/while.txt @@ -22,7 +22,7 @@ │ │ │ ├── opening_loc: (1,11)-(1,12) = "{" │ │ │ └── closing_loc: (1,12)-(1,13) = "}" │ │ ├── flags: ∅ - │ │ └── name: "b?" + │ │ └── name: :b? │ ├── statements: │ │ @ StatementsNode (location: (1,0)-(1,1)) │ │ └── body: (length: 1) @@ -35,7 +35,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ └── flags: ∅ ├── @ UntilNode (location: (3,0)-(5,3)) │ ├── keyword_loc: (3,0)-(3,5) = "until" @@ -56,7 +56,7 @@ │ │ │ ├── opening_loc: (3,9)-(3,10) = "{" │ │ │ └── closing_loc: (3,10)-(3,11) = "}" │ │ ├── flags: ∅ - │ │ └── name: "b?" + │ │ └── name: :b? │ ├── statements: │ │ @ StatementsNode (location: (4,2)-(4,3)) │ │ └── body: (length: 1) @@ -69,7 +69,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ └── flags: ∅ ├── @ WhileNode (location: (7,0)-(7,19)) │ ├── keyword_loc: (7,10)-(7,15) = "while" @@ -95,7 +95,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── operator_loc: (7,4)-(7,5) = "=" │ └── flags: ∅ ├── @ UntilNode (location: (9,0)-(9,18)) @@ -113,7 +113,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ ├── right: │ │ │ @ CallNode (location: (9,13)-(9,18)) │ │ │ ├── receiver: ∅ @@ -130,7 +130,7 @@ │ │ │ │ ├── opening_loc: (9,15)-(9,16) = "{" │ │ │ │ └── closing_loc: (9,17)-(9,18) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ └── operator_loc: (9,10)-(9,12) = "&&" │ ├── statements: │ │ @ StatementsNode (location: (9,0)-(9,1)) @@ -144,7 +144,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ └── flags: ∅ ├── @ WhileNode (location: (11,0)-(13,3)) │ ├── keyword_loc: (11,0)-(11,5) = "while" @@ -164,7 +164,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── operator_loc: (11,8)-(11,9) = "=" │ ├── statements: │ │ @ StatementsNode (location: (12,2)-(12,3)) @@ -208,11 +208,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── opening_loc: (15,18)-(15,20) = "do" │ │ │ └── closing_loc: (18,0)-(18,3) = "end" │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ ├── statements: │ │ @ StatementsNode (location: (15,0)-(15,1)) │ │ └── body: (length: 1) @@ -243,7 +243,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "exp" + │ │ │ └── name: :exp │ │ └── operator_loc: (21,6)-(21,7) = "=" │ └── @ WhileNode (location: (22,2)-(24,5)) │ ├── keyword_loc: (22,2)-(22,7) = "while" @@ -269,7 +269,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── operator_loc: (23,8)-(23,9) = "=" │ └── flags: ∅ ├── end_keyword_loc: (25,0)-(25,3) = "end" diff --git a/test/prism/snapshots/until.txt b/test/prism/snapshots/until.txt index e707dad95a..97fef37a41 100644 --- a/test/prism/snapshots/until.txt +++ b/test/prism/snapshots/until.txt @@ -74,7 +74,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar?" + │ └── name: :bar? ├── statements: │ @ StatementsNode (location: (11,0)-(11,10)) │ └── body: (length: 1) @@ -99,5 +99,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo └── flags: ∅ diff --git a/test/prism/snapshots/variables.txt b/test/prism/snapshots/variables.txt index 8366c5b9e4..8a0942b778 100644 --- a/test/prism/snapshots/variables.txt +++ b/test/prism/snapshots/variables.txt @@ -64,7 +64,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── @ LocalVariableWriteNode (location: (19,0)-(19,7)) │ ├── name: :abc │ ├── depth: 0 @@ -297,7 +297,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── @ CallNode (location: (45,4)-(45,5)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ @@ -307,7 +307,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ └── @ CallNode (location: (45,7)-(45,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -317,6 +317,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "c" + │ └── name: :c ├── opening_loc: (45,0)-(45,1) = "(" └── closing_loc: (45,8)-(45,9) = ")" diff --git a/test/prism/snapshots/while.txt b/test/prism/snapshots/while.txt index 0ad9740324..6d3ec17d6c 100644 --- a/test/prism/snapshots/while.txt +++ b/test/prism/snapshots/while.txt @@ -74,7 +74,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar?" + │ │ └── name: :bar? │ ├── statements: │ │ @ StatementsNode (location: (11,0)-(11,10)) │ │ └── body: (length: 1) @@ -99,7 +99,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "foo" + │ │ └── name: :foo │ └── flags: ∅ ├── @ WhileNode (location: (13,0)-(13,50)) │ ├── keyword_loc: (13,0)-(13,5) = "while" @@ -134,7 +134,7 @@ │ │ │ │ │ ├── opening_loc: (13,27)-(13,29) = "do" │ │ │ │ │ └── closing_loc: (13,30)-(13,33) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "tap" + │ │ │ │ └── name: :tap │ │ │ ├── rest: ∅ │ │ │ ├── posts: (length: 0) │ │ │ ├── keywords: (length: 0) @@ -190,7 +190,7 @@ │ │ │ │ │ ├── opening_loc: (15,24)-(15,26) = "do" │ │ │ │ │ └── closing_loc: (15,27)-(15,30) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "tap" + │ │ │ │ └── name: :tap │ │ │ └── operator_loc: (15,18)-(15,19) = "=" │ │ ├── end_keyword_loc: (15,32)-(15,35) = "end" │ │ └── name: :Foo @@ -229,7 +229,7 @@ │ │ │ │ ├── opening_loc: (17,25)-(17,27) = "do" │ │ │ │ └── closing_loc: (17,28)-(17,31) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "tap" + │ │ │ └── name: :tap │ │ └── end_keyword_loc: (17,33)-(17,36) = "end" │ ├── statements: │ │ @ StatementsNode (location: (17,38)-(17,43)) @@ -271,7 +271,7 @@ │ │ │ │ ├── opening_loc: (19,29)-(19,31) = "do" │ │ │ │ └── closing_loc: (19,32)-(19,35) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "tap" + │ │ │ └── name: :tap │ │ └── operator_loc: (19,23)-(19,24) = "=" │ └── end_keyword_loc: (19,37)-(19,40) = "end" ├── statements: diff --git a/test/prism/snapshots/whitequark/ambiuous_quoted_label_in_ternary_operator.txt b/test/prism/snapshots/whitequark/ambiuous_quoted_label_in_ternary_operator.txt index 3d68cecdc2..33c19ac9d1 100644 --- a/test/prism/snapshots/whitequark/ambiuous_quoted_label_in_ternary_operator.txt +++ b/test/prism/snapshots/whitequark/ambiuous_quoted_label_in_ternary_operator.txt @@ -15,7 +15,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── statements: │ @ StatementsNode (location: (1,4)-(1,10)) │ └── body: (length: 1) @@ -30,7 +30,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,6)-(1,7) = "&" │ ├── opening_loc: ∅ @@ -46,7 +46,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "&" + │ └── name: :& ├── consequent: │ @ ElseNode (location: (1,10)-(1,15)) │ ├── else_keyword_loc: (1,10)-(1,11) = ":" diff --git a/test/prism/snapshots/whitequark/and.txt b/test/prism/snapshots/whitequark/and.txt index ae1b5880d8..dd415893a8 100644 --- a/test/prism/snapshots/whitequark/and.txt +++ b/test/prism/snapshots/whitequark/and.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── right: │ │ @ CallNode (location: (1,7)-(1,10)) │ │ ├── receiver: ∅ @@ -25,7 +25,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── operator_loc: (1,4)-(1,6) = "&&" └── @ AndNode (location: (3,0)-(3,11)) ├── left: @@ -38,7 +38,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── right: │ @ CallNode (location: (3,8)-(3,11)) │ ├── receiver: ∅ @@ -49,5 +49,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar └── operator_loc: (3,4)-(3,7) = "and" diff --git a/test/prism/snapshots/whitequark/and_asgn.txt b/test/prism/snapshots/whitequark/and_asgn.txt index 5e4675ac91..e02a3d8ab8 100644 --- a/test/prism/snapshots/whitequark/and_asgn.txt +++ b/test/prism/snapshots/whitequark/and_asgn.txt @@ -14,15 +14,15 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: (1,4)-(1,5) = "a" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "a" - │ ├── write_name: "a=" + │ ├── read_name: :a + │ ├── write_name: :a= │ ├── operator_loc: (1,6)-(1,9) = "&&=" │ └── value: │ @ IntegerNode (location: (1,10)-(1,11)) @@ -38,7 +38,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (3,3)-(3,9) = "[0, 1]" ├── opening_loc: (3,3)-(3,4) = "[" @@ -51,8 +51,8 @@ │ └── flags: decimal ├── closing_loc: (3,8)-(3,9) = "]" ├── flags: ∅ - ├── read_name: "[]" - ├── write_name: "[]=" + ├── read_name: :[] + ├── write_name: :[]= ├── operator_loc: (3,10)-(3,13) = "&&=" └── value: @ IntegerNode (location: (3,14)-(3,15)) diff --git a/test/prism/snapshots/whitequark/and_or_masgn.txt b/test/prism/snapshots/whitequark/and_or_masgn.txt index 9b6bb94096..370fa32afa 100644 --- a/test/prism/snapshots/whitequark/and_or_masgn.txt +++ b/test/prism/snapshots/whitequark/and_or_masgn.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── right: │ │ @ ParenthesesNode (location: (1,7)-(1,19)) │ │ ├── body: @@ -41,7 +41,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── opening_loc: (1,7)-(1,8) = "(" │ │ └── closing_loc: (1,18)-(1,19) = ")" │ └── operator_loc: (1,4)-(1,6) = "&&" @@ -56,7 +56,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── right: │ @ ParenthesesNode (location: (3,7)-(3,19)) │ ├── body: @@ -83,7 +83,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── opening_loc: (3,7)-(3,8) = "(" │ └── closing_loc: (3,18)-(3,19) = ")" └── operator_loc: (3,4)-(3,6) = "||" diff --git a/test/prism/snapshots/whitequark/anonymous_blockarg.txt b/test/prism/snapshots/whitequark/anonymous_blockarg.txt index 3afc2995f2..2b03263a50 100644 --- a/test/prism/snapshots/whitequark/anonymous_blockarg.txt +++ b/test/prism/snapshots/whitequark/anonymous_blockarg.txt @@ -35,7 +35,7 @@ │ │ ├── expression: ∅ │ │ └── operator_loc: (1,16)-(1,17) = "&" │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:&] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/arg_label.txt b/test/prism/snapshots/whitequark/arg_label.txt index 1d9b43332a..879c0d18f2 100644 --- a/test/prism/snapshots/whitequark/arg_label.txt +++ b/test/prism/snapshots/whitequark/arg_label.txt @@ -27,7 +27,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "a" + │ │ └── name: :a │ ├── locals: [] │ ├── def_keyword_loc: (1,0)-(1,3) = "def" │ ├── operator_loc: ∅ @@ -59,7 +59,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "a" + │ │ └── name: :a │ ├── locals: [] │ ├── def_keyword_loc: (4,0)-(4,3) = "def" │ ├── operator_loc: ∅ @@ -102,8 +102,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "a" + │ │ └── name: :a │ ├── opening_loc: (6,2)-(6,3) = "{" │ └── closing_loc: (6,11)-(6,12) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/whitequark/arg_scope.txt b/test/prism/snapshots/whitequark/arg_scope.txt index cfe376d04d..48ed1b3e96 100644 --- a/test/prism/snapshots/whitequark/arg_scope.txt +++ b/test/prism/snapshots/whitequark/arg_scope.txt @@ -30,4 +30,4 @@ │ ├── opening_loc: (1,6)-(1,7) = "{" │ └── closing_loc: (1,12)-(1,13) = "}" ├── flags: ∅ - └── name: "lambda" + └── name: :lambda diff --git a/test/prism/snapshots/whitequark/args_args_assocs.txt b/test/prism/snapshots/whitequark/args_args_assocs.txt index 38d1a2622d..c788ce9cb6 100644 --- a/test/prism/snapshots/whitequark/args_args_assocs.txt +++ b/test/prism/snapshots/whitequark/args_args_assocs.txt @@ -20,7 +20,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── @ KeywordHashNode (location: (1,9)-(1,18)) │ │ └── elements: (length: 1) │ │ └── @ AssocNode (location: (1,9)-(1,18)) @@ -37,7 +37,7 @@ │ ├── closing_loc: (1,18)-(1,19) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun └── @ CallNode (location: (3,0)-(3,24)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -55,7 +55,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── @ KeywordHashNode (location: (3,9)-(3,18)) │ └── elements: (length: 1) │ └── @ AssocNode (location: (3,9)-(3,18)) @@ -82,7 +82,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ └── operator_loc: (3,20)-(3,21) = "&" ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/args_args_assocs_comma.txt b/test/prism/snapshots/whitequark/args_args_assocs_comma.txt index 80a6079616..d4501d3dba 100644 --- a/test/prism/snapshots/whitequark/args_args_assocs_comma.txt +++ b/test/prism/snapshots/whitequark/args_args_assocs_comma.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,3)-(1,20) = "[bar, :baz => 1,]" ├── opening_loc: (1,3)-(1,4) = "[" @@ -30,7 +30,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── @ KeywordHashNode (location: (1,9)-(1,18)) │ └── elements: (length: 1) │ └── @ AssocNode (location: (1,9)-(1,18)) @@ -47,4 +47,4 @@ ├── closing_loc: (1,19)-(1,20) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]" + └── name: :[] diff --git a/test/prism/snapshots/whitequark/args_args_comma.txt b/test/prism/snapshots/whitequark/args_args_comma.txt index 1b2709bfcc..7df98053e7 100644 --- a/test/prism/snapshots/whitequark/args_args_comma.txt +++ b/test/prism/snapshots/whitequark/args_args_comma.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,3)-(1,9) = "[bar,]" ├── opening_loc: (1,3)-(1,4) = "[" @@ -30,8 +30,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── closing_loc: (1,8)-(1,9) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]" + └── name: :[] diff --git a/test/prism/snapshots/whitequark/args_args_star.txt b/test/prism/snapshots/whitequark/args_args_star.txt index 64ea48909c..7240a1bfd0 100644 --- a/test/prism/snapshots/whitequark/args_args_star.txt +++ b/test/prism/snapshots/whitequark/args_args_star.txt @@ -20,7 +20,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── @ SplatNode (location: (1,9)-(1,13)) │ │ ├── operator_loc: (1,9)-(1,10) = "*" │ │ └── expression: @@ -33,11 +33,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (1,13)-(1,14) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun └── @ CallNode (location: (3,0)-(3,19)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -55,7 +55,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── @ SplatNode (location: (3,9)-(3,13)) │ ├── operator_loc: (3,9)-(3,10) = "*" │ └── expression: @@ -68,7 +68,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── closing_loc: (3,19)-(3,20) = ")" ├── block: │ @ BlockArgumentNode (location: (3,15)-(3,19)) @@ -82,7 +82,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ └── operator_loc: (3,15)-(3,16) = "&" ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/args_assocs.txt b/test/prism/snapshots/whitequark/args_assocs.txt index 518b760764..efca0773c7 100644 --- a/test/prism/snapshots/whitequark/args_assocs.txt +++ b/test/prism/snapshots/whitequark/args_assocs.txt @@ -27,7 +27,7 @@ │ ├── closing_loc: (1,13)-(1,14) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (3,0)-(3,19)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -62,10 +62,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── operator_loc: (3,15)-(3,16) = "&" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (5,0)-(5,21)) │ ├── receiver: │ │ @ SelfNode (location: (5,0)-(5,4)) @@ -84,7 +84,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── @ KeywordHashNode (location: (5,14)-(5,21)) │ │ └── elements: (length: 1) │ │ └── @ AssocNode (location: (5,14)-(5,21)) @@ -101,7 +101,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallNode (location: (7,0)-(7,15)) │ ├── receiver: │ │ @ SelfNode (location: (7,0)-(7,4)) @@ -127,7 +127,7 @@ │ ├── closing_loc: (7,14)-(7,15) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ SuperNode (location: (9,0)-(9,17)) │ ├── keyword_loc: (9,0)-(9,5) = "super" │ ├── lparen_loc: (9,5)-(9,6) = "(" diff --git a/test/prism/snapshots/whitequark/args_assocs_comma.txt b/test/prism/snapshots/whitequark/args_assocs_comma.txt index 238ba6ff28..0d62b9df38 100644 --- a/test/prism/snapshots/whitequark/args_assocs_comma.txt +++ b/test/prism/snapshots/whitequark/args_assocs_comma.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,3)-(1,15) = "[:baz => 1,]" ├── opening_loc: (1,3)-(1,4) = "[" @@ -37,4 +37,4 @@ ├── closing_loc: (1,14)-(1,15) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]" + └── name: :[] diff --git a/test/prism/snapshots/whitequark/args_assocs_legacy.txt b/test/prism/snapshots/whitequark/args_assocs_legacy.txt index 518b760764..efca0773c7 100644 --- a/test/prism/snapshots/whitequark/args_assocs_legacy.txt +++ b/test/prism/snapshots/whitequark/args_assocs_legacy.txt @@ -27,7 +27,7 @@ │ ├── closing_loc: (1,13)-(1,14) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (3,0)-(3,19)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -62,10 +62,10 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── operator_loc: (3,15)-(3,16) = "&" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (5,0)-(5,21)) │ ├── receiver: │ │ @ SelfNode (location: (5,0)-(5,4)) @@ -84,7 +84,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── @ KeywordHashNode (location: (5,14)-(5,21)) │ │ └── elements: (length: 1) │ │ └── @ AssocNode (location: (5,14)-(5,21)) @@ -101,7 +101,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]=" + │ └── name: :[]= ├── @ CallNode (location: (7,0)-(7,15)) │ ├── receiver: │ │ @ SelfNode (location: (7,0)-(7,4)) @@ -127,7 +127,7 @@ │ ├── closing_loc: (7,14)-(7,15) = "]" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "[]" + │ └── name: :[] ├── @ SuperNode (location: (9,0)-(9,17)) │ ├── keyword_loc: (9,0)-(9,5) = "super" │ ├── lparen_loc: (9,5)-(9,6) = "(" diff --git a/test/prism/snapshots/whitequark/args_block_pass.txt b/test/prism/snapshots/whitequark/args_block_pass.txt index 2cc3008c2e..690f2056f0 100644 --- a/test/prism/snapshots/whitequark/args_block_pass.txt +++ b/test/prism/snapshots/whitequark/args_block_pass.txt @@ -22,7 +22,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── operator_loc: (1,4)-(1,5) = "&" ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/args_cmd.txt b/test/prism/snapshots/whitequark/args_cmd.txt index cd16a4d354..3e5243f363 100644 --- a/test/prism/snapshots/whitequark/args_cmd.txt +++ b/test/prism/snapshots/whitequark/args_cmd.txt @@ -28,12 +28,12 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── closing_loc: (1,9)-(1,10) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/args_star.txt b/test/prism/snapshots/whitequark/args_star.txt index 13b48ff6bb..3c919b3397 100644 --- a/test/prism/snapshots/whitequark/args_star.txt +++ b/test/prism/snapshots/whitequark/args_star.txt @@ -23,11 +23,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (1,8)-(1,9) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun └── @ CallNode (location: (3,0)-(3,14)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -48,7 +48,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── closing_loc: (3,14)-(3,15) = ")" ├── block: │ @ BlockArgumentNode (location: (3,10)-(3,14)) @@ -62,7 +62,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ └── operator_loc: (3,10)-(3,11) = "&" ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/array_splat.txt b/test/prism/snapshots/whitequark/array_splat.txt index c25c8719b6..573a4652da 100644 --- a/test/prism/snapshots/whitequark/array_splat.txt +++ b/test/prism/snapshots/whitequark/array_splat.txt @@ -17,7 +17,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (1,0)-(1,1) = "[" │ └── closing_loc: (1,5)-(1,6) = "]" ├── @ ArrayNode (location: (3,0)-(3,12)) @@ -36,7 +36,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ └── @ IntegerNode (location: (3,10)-(3,11)) │ │ └── flags: decimal │ ├── opening_loc: (3,0)-(3,1) = "[" @@ -57,6 +57,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── opening_loc: (5,0)-(5,1) = "[" └── closing_loc: (5,8)-(5,9) = "]" diff --git a/test/prism/snapshots/whitequark/array_symbols_interp.txt b/test/prism/snapshots/whitequark/array_symbols_interp.txt index de1a25f97e..c163a1f450 100644 --- a/test/prism/snapshots/whitequark/array_symbols_interp.txt +++ b/test/prism/snapshots/whitequark/array_symbols_interp.txt @@ -27,7 +27,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── closing_loc: (1,12)-(1,13) = "}" │ │ └── closing_loc: ∅ │ ├── opening_loc: (1,0)-(1,3) = "%I[" @@ -57,7 +57,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── closing_loc: (3,11)-(3,12) = "}" │ └── closing_loc: ∅ ├── opening_loc: (3,0)-(3,3) = "%I[" diff --git a/test/prism/snapshots/whitequark/array_words_interp.txt b/test/prism/snapshots/whitequark/array_words_interp.txt index 8645425e25..906673dc7f 100644 --- a/test/prism/snapshots/whitequark/array_words_interp.txt +++ b/test/prism/snapshots/whitequark/array_words_interp.txt @@ -28,7 +28,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── closing_loc: (1,12)-(1,13) = "}" │ │ └── closing_loc: ∅ │ ├── opening_loc: (1,0)-(1,3) = "%W[" @@ -58,7 +58,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── closing_loc: (3,12)-(3,13) = "}" │ │ ├── @ StringNode (location: (3,13)-(3,16)) │ │ │ ├── flags: ∅ diff --git a/test/prism/snapshots/whitequark/asgn_cmd.txt b/test/prism/snapshots/whitequark/asgn_cmd.txt index 13268c70b1..ca0d72c937 100644 --- a/test/prism/snapshots/whitequark/asgn_cmd.txt +++ b/test/prism/snapshots/whitequark/asgn_cmd.txt @@ -27,7 +27,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "m" + │ │ │ └── name: :m │ │ └── operator_loc: (1,10)-(1,11) = "=" │ └── operator_loc: (1,4)-(1,5) = "=" └── @ LocalVariableWriteNode (location: (3,0)-(3,11)) @@ -49,5 +49,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m └── operator_loc: (3,4)-(3,5) = "=" diff --git a/test/prism/snapshots/whitequark/asgn_mrhs.txt b/test/prism/snapshots/whitequark/asgn_mrhs.txt index bb86015289..93571f27ac 100644 --- a/test/prism/snapshots/whitequark/asgn_mrhs.txt +++ b/test/prism/snapshots/whitequark/asgn_mrhs.txt @@ -22,7 +22,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── opening_loc: ∅ │ │ └── closing_loc: ∅ │ └── operator_loc: (1,4)-(1,5) = "=" @@ -42,7 +42,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── @ IntegerNode (location: (3,11)-(3,12)) │ │ │ └── flags: decimal │ │ ├── opening_loc: ∅ @@ -64,7 +64,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── @ SplatNode (location: (5,11)-(5,15)) │ │ ├── operator_loc: (5,11)-(5,12) = "*" │ │ └── expression: @@ -77,7 +77,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── opening_loc: ∅ │ └── closing_loc: ∅ └── operator_loc: (5,4)-(5,5) = "=" diff --git a/test/prism/snapshots/whitequark/bang.txt b/test/prism/snapshots/whitequark/bang.txt index da83d817a5..f045313ec6 100644 --- a/test/prism/snapshots/whitequark/bang.txt +++ b/test/prism/snapshots/whitequark/bang.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,0)-(1,1) = "!" ├── opening_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/whitequark/bang_cmd.txt b/test/prism/snapshots/whitequark/bang_cmd.txt index 27b0a1ebdf..75439934fd 100644 --- a/test/prism/snapshots/whitequark/bang_cmd.txt +++ b/test/prism/snapshots/whitequark/bang_cmd.txt @@ -22,11 +22,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── call_operator_loc: ∅ ├── message_loc: (1,0)-(1,1) = "!" ├── opening_loc: ∅ @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/whitequark/begin_cmdarg.txt b/test/prism/snapshots/whitequark/begin_cmdarg.txt index 833863958f..a85a8a0e1e 100644 --- a/test/prism/snapshots/whitequark/begin_cmdarg.txt +++ b/test/prism/snapshots/whitequark/begin_cmdarg.txt @@ -37,7 +37,7 @@ │ │ │ ├── opening_loc: (1,16)-(1,18) = "do" │ │ │ └── closing_loc: (1,21)-(1,24) = "end" │ │ ├── flags: ∅ - │ │ └── name: "times" + │ │ └── name: :times │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -45,4 +45,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/whitequark/beginless_erange_after_newline.txt b/test/prism/snapshots/whitequark/beginless_erange_after_newline.txt index 0bea43c7f2..ad0628c509 100644 --- a/test/prism/snapshots/whitequark/beginless_erange_after_newline.txt +++ b/test/prism/snapshots/whitequark/beginless_erange_after_newline.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo └── @ RangeNode (location: (2,0)-(2,6)) ├── left: ∅ ├── right: diff --git a/test/prism/snapshots/whitequark/beginless_irange_after_newline.txt b/test/prism/snapshots/whitequark/beginless_irange_after_newline.txt index ab2fa8064f..58ad1bfa4e 100644 --- a/test/prism/snapshots/whitequark/beginless_irange_after_newline.txt +++ b/test/prism/snapshots/whitequark/beginless_irange_after_newline.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo └── @ RangeNode (location: (2,0)-(2,5)) ├── left: ∅ ├── right: diff --git a/test/prism/snapshots/whitequark/blockargs.txt b/test/prism/snapshots/whitequark/blockargs.txt index a9692cbaed..a6ce114266 100644 --- a/test/prism/snapshots/whitequark/blockargs.txt +++ b/test/prism/snapshots/whitequark/blockargs.txt @@ -18,7 +18,7 @@ │ │ ├── opening_loc: (1,1)-(1,2) = "{" │ │ └── closing_loc: (1,4)-(1,5) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (3,0)-(3,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -39,7 +39,7 @@ │ │ ├── opening_loc: (3,1)-(3,2) = "{" │ │ └── closing_loc: (3,7)-(3,8) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (5,0)-(5,9)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -72,7 +72,7 @@ │ │ ├── opening_loc: (5,1)-(5,2) = "{" │ │ └── closing_loc: (5,8)-(5,9) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (7,0)-(7,16)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -109,7 +109,7 @@ │ │ ├── opening_loc: (7,1)-(7,2) = "{" │ │ └── closing_loc: (7,15)-(7,16) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (9,0)-(9,12)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -146,7 +146,7 @@ │ │ ├── opening_loc: (9,1)-(9,2) = "{" │ │ └── closing_loc: (9,11)-(9,12) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (11,0)-(11,16)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -185,7 +185,7 @@ │ │ ├── opening_loc: (11,1)-(11,2) = "{" │ │ └── closing_loc: (11,15)-(11,16) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (13,0)-(13,13)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -222,7 +222,7 @@ │ │ ├── opening_loc: (13,1)-(13,2) = "{" │ │ └── closing_loc: (13,12)-(13,13) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (15,0)-(15,9)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -255,7 +255,7 @@ │ │ ├── opening_loc: (15,1)-(15,2) = "{" │ │ └── closing_loc: (15,8)-(15,9) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (17,0)-(17,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -288,7 +288,7 @@ │ │ ├── opening_loc: (17,1)-(17,2) = "{" │ │ └── closing_loc: (17,7)-(17,8) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (19,0)-(21,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -311,7 +311,7 @@ │ │ ├── opening_loc: (19,1)-(19,2) = "{" │ │ └── closing_loc: (21,2)-(21,3) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (23,0)-(23,9)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -334,7 +334,7 @@ │ │ ├── opening_loc: (23,1)-(23,2) = "{" │ │ └── closing_loc: (23,8)-(23,9) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (25,0)-(25,12)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -369,7 +369,7 @@ │ │ ├── opening_loc: (25,1)-(25,2) = "{" │ │ └── closing_loc: (25,11)-(25,12) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (27,0)-(27,15)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -408,7 +408,7 @@ │ │ ├── opening_loc: (27,1)-(27,2) = "{" │ │ └── closing_loc: (27,14)-(27,15) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (29,0)-(29,19)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -449,7 +449,7 @@ │ │ ├── opening_loc: (29,1)-(29,2) = "{" │ │ └── closing_loc: (29,18)-(29,19) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (31,0)-(31,16)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -488,7 +488,7 @@ │ │ ├── opening_loc: (31,1)-(31,2) = "{" │ │ └── closing_loc: (31,15)-(31,16) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (33,0)-(33,12)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -523,7 +523,7 @@ │ │ ├── opening_loc: (33,1)-(33,2) = "{" │ │ └── closing_loc: (33,11)-(33,12) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (35,0)-(35,11)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -558,7 +558,7 @@ │ │ ├── opening_loc: (35,1)-(35,2) = "{" │ │ └── closing_loc: (35,10)-(35,11) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (37,0)-(37,12)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -595,7 +595,7 @@ │ │ ├── opening_loc: (37,1)-(37,2) = "{" │ │ └── closing_loc: (37,11)-(37,12) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (39,0)-(39,11)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -628,7 +628,7 @@ │ │ ├── opening_loc: (39,1)-(39,2) = "{" │ │ └── closing_loc: (39,10)-(39,11) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (41,0)-(41,17)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -670,7 +670,7 @@ │ │ ├── opening_loc: (41,1)-(41,2) = "{" │ │ └── closing_loc: (41,16)-(41,17) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (43,0)-(43,24)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -718,7 +718,7 @@ │ │ ├── opening_loc: (43,1)-(43,2) = "{" │ │ └── closing_loc: (43,23)-(43,24) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (45,0)-(45,27)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -771,7 +771,7 @@ │ │ ├── opening_loc: (45,1)-(45,2) = "{" │ │ └── closing_loc: (45,26)-(45,27) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (47,0)-(47,20)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -815,7 +815,7 @@ │ │ ├── opening_loc: (47,1)-(47,2) = "{" │ │ └── closing_loc: (47,19)-(47,20) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (49,0)-(49,9)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -850,7 +850,7 @@ │ │ ├── opening_loc: (49,1)-(49,2) = "{" │ │ └── closing_loc: (49,8)-(49,9) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (51,0)-(51,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -881,7 +881,7 @@ │ │ ├── opening_loc: (51,1)-(51,2) = "{" │ │ └── closing_loc: (51,7)-(51,8) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (53,0)-(53,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -912,7 +912,7 @@ │ │ ├── opening_loc: (53,1)-(53,2) = "{" │ │ └── closing_loc: (53,7)-(53,8) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (55,0)-(55,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -943,7 +943,7 @@ │ │ ├── opening_loc: (55,1)-(55,2) = "{" │ │ └── closing_loc: (55,7)-(55,8) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (57,0)-(57,17)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -982,7 +982,7 @@ │ │ ├── opening_loc: (57,1)-(57,2) = "{" │ │ └── closing_loc: (57,16)-(57,17) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (59,0)-(59,32)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1031,7 +1031,7 @@ │ │ ├── opening_loc: (59,1)-(59,2) = "{" │ │ └── closing_loc: (59,31)-(59,32) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (61,0)-(61,11)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1064,7 +1064,7 @@ │ │ ├── opening_loc: (61,1)-(61,2) = "{" │ │ └── closing_loc: (61,10)-(61,11) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (63,0)-(63,14)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1104,7 +1104,7 @@ │ │ ├── opening_loc: (63,1)-(63,2) = "{" │ │ └── closing_loc: (63,13)-(63,14) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (65,0)-(65,18)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1148,7 +1148,7 @@ │ │ ├── opening_loc: (65,1)-(65,2) = "{" │ │ └── closing_loc: (65,17)-(65,18) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (67,0)-(67,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1194,7 +1194,7 @@ │ │ ├── opening_loc: (67,1)-(67,2) = "{" │ │ └── closing_loc: (67,20)-(67,21) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ CallNode (location: (69,0)-(69,17)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1236,7 +1236,7 @@ │ │ ├── opening_loc: (69,1)-(69,2) = "{" │ │ └── closing_loc: (69,16)-(69,17) = "}" │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f └── @ CallNode (location: (71,0)-(71,7)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -1257,4 +1257,4 @@ │ ├── opening_loc: (71,1)-(71,2) = "{" │ └── closing_loc: (71,6)-(71,7) = "}" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/whitequark/break.txt b/test/prism/snapshots/whitequark/break.txt index 7f375d2d3f..5674b2fb80 100644 --- a/test/prism/snapshots/whitequark/break.txt +++ b/test/prism/snapshots/whitequark/break.txt @@ -19,7 +19,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── keyword_loc: (3,0)-(3,5) = "break" ├── @ BreakNode (location: (5,0)-(5,7)) │ ├── arguments: @@ -47,7 +47,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (7,5)-(7,6) = "(" │ └── closing_loc: (7,9)-(7,10) = ")" └── keyword_loc: (7,0)-(7,5) = "break" diff --git a/test/prism/snapshots/whitequark/break_block.txt b/test/prism/snapshots/whitequark/break_block.txt index 58e972f226..7272982228 100644 --- a/test/prism/snapshots/whitequark/break_block.txt +++ b/test/prism/snapshots/whitequark/break_block.txt @@ -24,7 +24,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (1,14)-(1,20)) @@ -34,5 +34,5 @@ │ │ ├── opening_loc: (1,14)-(1,16) = "do" │ │ └── closing_loc: (1,17)-(1,20) = "end" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun └── keyword_loc: (1,0)-(1,5) = "break" diff --git a/test/prism/snapshots/whitequark/bug_447.txt b/test/prism/snapshots/whitequark/bug_447.txt index 40a6d81e4c..be8be90f92 100644 --- a/test/prism/snapshots/whitequark/bug_447.txt +++ b/test/prism/snapshots/whitequark/bug_447.txt @@ -24,7 +24,7 @@ │ │ ├── opening_loc: (1,5)-(1,7) = "do" │ │ └── closing_loc: (1,8)-(1,11) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m └── @ CallNode (location: (3,0)-(3,14)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -48,4 +48,4 @@ │ ├── opening_loc: (3,8)-(3,10) = "do" │ └── closing_loc: (3,11)-(3,14) = "end" ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/bug_452.txt b/test/prism/snapshots/whitequark/bug_452.txt index e7ecdcb2c7..201eb19554 100644 --- a/test/prism/snapshots/whitequark/bug_452.txt +++ b/test/prism/snapshots/whitequark/bug_452.txt @@ -28,11 +28,11 @@ │ │ ├── closing_loc: (1,20)-(1,21) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "toString" + │ │ └── name: :toString │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "td" + │ └── name: :td └── @ CallNode (location: (1,23)-(1,37)) ├── receiver: │ @ CallNode (location: (1,23)-(1,25)) @@ -44,7 +44,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "td" + │ └── name: :td ├── call_operator_loc: (1,25)-(1,26) = "." ├── message_loc: (1,26)-(1,29) = "num" ├── opening_loc: ∅ @@ -58,4 +58,4 @@ │ ├── opening_loc: (1,30)-(1,32) = "do" │ └── closing_loc: (1,34)-(1,37) = "end" ├── flags: ∅ - └── name: "num" + └── name: :num diff --git a/test/prism/snapshots/whitequark/bug_466.txt b/test/prism/snapshots/whitequark/bug_466.txt index f69841c32d..f39c510a67 100644 --- a/test/prism/snapshots/whitequark/bug_466.txt +++ b/test/prism/snapshots/whitequark/bug_466.txt @@ -40,7 +40,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "+" + │ │ │ │ │ └── name: :+ │ │ │ │ ├── opening_loc: (1,7)-(1,8) = "(" │ │ │ │ └── closing_loc: (1,11)-(1,12) = ")" │ │ │ ├── call_operator_loc: (1,12)-(1,13) = "." @@ -50,7 +50,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "to_i" + │ │ │ └── name: :to_i │ │ └── closing_loc: (1,17)-(1,18) = "}" │ └── closing_loc: (1,18)-(1,19) = "\"" ├── closing_loc: ∅ @@ -62,4 +62,4 @@ │ ├── opening_loc: (1,20)-(1,22) = "do" │ └── closing_loc: (1,24)-(1,27) = "end" ├── flags: ∅ - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/whitequark/bug_473.txt b/test/prism/snapshots/whitequark/bug_473.txt index cfdeb9d2f3..612673169e 100644 --- a/test/prism/snapshots/whitequark/bug_473.txt +++ b/test/prism/snapshots/whitequark/bug_473.txt @@ -28,4 +28,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/bug_480.txt b/test/prism/snapshots/whitequark/bug_480.txt index d7beb238e7..249e4f10d6 100644 --- a/test/prism/snapshots/whitequark/bug_480.txt +++ b/test/prism/snapshots/whitequark/bug_480.txt @@ -32,4 +32,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/bug_481.txt b/test/prism/snapshots/whitequark/bug_481.txt index 7baad1034c..78babf0cc5 100644 --- a/test/prism/snapshots/whitequark/bug_481.txt +++ b/test/prism/snapshots/whitequark/bug_481.txt @@ -27,7 +27,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m └── @ CallNode (location: (1,16)-(1,28)) ├── receiver: │ @ IntegerNode (location: (1,16)-(1,17)) @@ -45,4 +45,4 @@ │ ├── opening_loc: (1,22)-(1,24) = "do" │ └── closing_loc: (1,25)-(1,28) = "end" ├── flags: ∅ - └── name: "tap" + └── name: :tap diff --git a/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt b/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt index 6945f3e301..7af3bd3f89 100644 --- a/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt +++ b/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt @@ -26,4 +26,4 @@ │ ├── opening_loc: (1,11)-(1,13) = "do" │ └── closing_loc: (1,14)-(1,17) = "end" ├── flags: ∅ - └── name: "desc" + └── name: :desc diff --git a/test/prism/snapshots/whitequark/bug_cmdarg.txt b/test/prism/snapshots/whitequark/bug_cmdarg.txt index d3968f4eab..9243d9fb58 100644 --- a/test/prism/snapshots/whitequark/bug_cmdarg.txt +++ b/test/prism/snapshots/whitequark/bug_cmdarg.txt @@ -26,7 +26,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "assert" + │ └── name: :assert ├── @ CallNode (location: (3,0)-(3,11)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -44,11 +44,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "dogs" + │ │ └── name: :dogs │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "assert" + │ └── name: :assert └── @ CallNode (location: (5,0)-(5,26)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -91,9 +91,9 @@ │ │ │ ├── opening_loc: (5,16)-(5,18) = "do" │ │ │ └── closing_loc: (5,19)-(5,22) = "end" │ │ ├── flags: ∅ - │ │ └── name: "meth" + │ │ └── name: :meth │ └── operator_loc: ∅ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt b/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt index 75be678df6..fe4272602c 100644 --- a/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt +++ b/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt @@ -35,7 +35,7 @@ │ │ │ ├── opening_loc: (1,23)-(1,25) = "do" │ │ │ └── closing_loc: (1,26)-(1,29) = "end" │ │ ├── flags: ∅ - │ │ └── name: "each" + │ │ └── name: :each │ ├── locals: [] │ ├── def_keyword_loc: (1,4)-(1,7) = "def" │ ├── operator_loc: ∅ @@ -46,4 +46,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "bar" + └── name: :bar diff --git a/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt b/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt index 2a0fc1fa70..5a52f22cc7 100644 --- a/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt +++ b/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt @@ -30,10 +30,10 @@ │ │ │ ├── opening_loc: (1,10)-(1,12) = "do" │ │ │ └── closing_loc: (1,13)-(1,16) = "end" │ │ ├── flags: ∅ - │ │ └── name: "proc" + │ │ └── name: :proc │ ├── opening_loc: (1,4)-(1,5) = "(" │ └── closing_loc: (1,16)-(1,17) = ")" ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "tap" + └── name: :tap diff --git a/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt b/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt index d1212e077a..dc9373612c 100644 --- a/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt +++ b/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt @@ -42,7 +42,7 @@ │ │ │ │ │ │ ├── opening_loc: (1,19)-(1,21) = "do" │ │ │ │ │ │ └── closing_loc: (1,22)-(1,25) = "end" │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "proc" + │ │ │ │ │ └── name: :proc │ │ │ │ └── operator_loc: ∅ │ │ │ └── @ AssocNode (location: (1,27)-(1,41)) │ │ │ ├── key: @@ -67,13 +67,13 @@ │ │ │ │ │ ├── opening_loc: (1,35)-(1,37) = "do" │ │ │ │ │ └── closing_loc: (1,38)-(1,41) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "proc" + │ │ │ │ └── name: :proc │ │ │ └── operator_loc: ∅ │ │ └── closing_loc: (1,41)-(1,42) = "}" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (3,0)-(3,40)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -107,7 +107,7 @@ │ │ │ │ │ │ ├── opening_loc: (3,17)-(3,19) = "do" │ │ │ │ │ │ └── closing_loc: (3,20)-(3,23) = "end" │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "proc" + │ │ │ │ │ └── name: :proc │ │ │ │ └── operator_loc: (3,9)-(3,11) = "**" │ │ │ └── @ AssocNode (location: (3,25)-(3,39)) │ │ │ ├── key: @@ -132,13 +132,13 @@ │ │ │ │ │ ├── opening_loc: (3,33)-(3,35) = "do" │ │ │ │ │ └── closing_loc: (3,36)-(3,39) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "proc" + │ │ │ │ └── name: :proc │ │ │ └── operator_loc: ∅ │ │ └── closing_loc: (3,39)-(3,40) = "}" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (5,0)-(5,43)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -178,7 +178,7 @@ │ │ │ │ │ │ ├── opening_loc: (5,20)-(5,22) = "do" │ │ │ │ │ │ └── closing_loc: (5,23)-(5,26) = "end" │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "proc" + │ │ │ │ │ └── name: :proc │ │ │ │ └── operator_loc: (5,12)-(5,14) = "=>" │ │ │ └── @ AssocNode (location: (5,28)-(5,42)) │ │ │ ├── key: @@ -203,13 +203,13 @@ │ │ │ │ │ ├── opening_loc: (5,36)-(5,38) = "do" │ │ │ │ │ └── closing_loc: (5,39)-(5,42) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "proc" + │ │ │ │ └── name: :proc │ │ │ └── operator_loc: ∅ │ │ └── closing_loc: (5,42)-(5,43) = "}" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (7,0)-(7,40)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -249,7 +249,7 @@ │ │ │ │ │ │ ├── opening_loc: (7,17)-(7,19) = "do" │ │ │ │ │ │ └── closing_loc: (7,20)-(7,23) = "end" │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "proc" + │ │ │ │ │ └── name: :proc │ │ │ │ └── operator_loc: ∅ │ │ │ └── @ AssocNode (location: (7,25)-(7,39)) │ │ │ ├── key: @@ -274,13 +274,13 @@ │ │ │ │ │ ├── opening_loc: (7,33)-(7,35) = "do" │ │ │ │ │ └── closing_loc: (7,36)-(7,39) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "proc" + │ │ │ │ └── name: :proc │ │ │ └── operator_loc: ∅ │ │ └── closing_loc: (7,39)-(7,40) = "}" │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p └── @ CallNode (location: (9,0)-(9,52)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -314,7 +314,7 @@ │ │ │ │ │ ├── opening_loc: (9,14)-(9,16) = "do" │ │ │ │ │ └── closing_loc: (9,17)-(9,20) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "proc" + │ │ │ │ └── name: :proc │ │ │ ├── value: │ │ │ │ @ CallNode (location: (9,24)-(9,35)) │ │ │ │ ├── receiver: ∅ @@ -331,7 +331,7 @@ │ │ │ │ │ ├── opening_loc: (9,29)-(9,31) = "do" │ │ │ │ │ └── closing_loc: (9,32)-(9,35) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "proc" + │ │ │ │ └── name: :proc │ │ │ └── operator_loc: (9,21)-(9,23) = "=>" │ │ └── @ AssocNode (location: (9,37)-(9,51)) │ │ ├── key: @@ -356,10 +356,10 @@ │ │ │ │ ├── opening_loc: (9,45)-(9,47) = "do" │ │ │ │ └── closing_loc: (9,48)-(9,51) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "proc" + │ │ │ └── name: :proc │ │ └── operator_loc: ∅ │ └── closing_loc: (9,51)-(9,52) = "}" ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/whitequark/bug_heredoc_do.txt b/test/prism/snapshots/whitequark/bug_heredoc_do.txt index 306de35b95..1702599412 100644 --- a/test/prism/snapshots/whitequark/bug_heredoc_do.txt +++ b/test/prism/snapshots/whitequark/bug_heredoc_do.txt @@ -26,4 +26,4 @@ │ ├── opening_loc: (1,11)-(1,13) = "do" │ └── closing_loc: (3,0)-(3,3) = "end" ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/whitequark/bug_lambda_leakage.txt b/test/prism/snapshots/whitequark/bug_lambda_leakage.txt index ff21708d38..b78d1fde08 100644 --- a/test/prism/snapshots/whitequark/bug_lambda_leakage.txt +++ b/test/prism/snapshots/whitequark/bug_lambda_leakage.txt @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "scope" + └── name: :scope diff --git a/test/prism/snapshots/whitequark/bug_while_not_parens_do.txt b/test/prism/snapshots/whitequark/bug_while_not_parens_do.txt index 1d71742a6f..a2918093f8 100644 --- a/test/prism/snapshots/whitequark/bug_while_not_parens_do.txt +++ b/test/prism/snapshots/whitequark/bug_while_not_parens_do.txt @@ -23,6 +23,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── statements: ∅ └── flags: ∅ diff --git a/test/prism/snapshots/whitequark/case_cond.txt b/test/prism/snapshots/whitequark/case_cond.txt index c919344722..f78cf93ba3 100644 --- a/test/prism/snapshots/whitequark/case_cond.txt +++ b/test/prism/snapshots/whitequark/case_cond.txt @@ -18,7 +18,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── statements: │ @ StatementsNode (location: (1,16)-(1,21)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/whitequark/case_cond_else.txt b/test/prism/snapshots/whitequark/case_cond_else.txt index 7e6b9ec30f..f2f41e61b8 100644 --- a/test/prism/snapshots/whitequark/case_cond_else.txt +++ b/test/prism/snapshots/whitequark/case_cond_else.txt @@ -18,7 +18,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── statements: │ @ StatementsNode (location: (1,16)-(1,21)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/whitequark/case_expr.txt b/test/prism/snapshots/whitequark/case_expr.txt index 44c8045a5f..e58144aa76 100644 --- a/test/prism/snapshots/whitequark/case_expr.txt +++ b/test/prism/snapshots/whitequark/case_expr.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── conditions: (length: 1) │ └── @ WhenNode (location: (1,10)-(1,25)) │ ├── keyword_loc: (1,10)-(1,14) = "when" @@ -37,7 +37,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: ∅ ├── case_keyword_loc: (1,0)-(1,4) = "case" └── end_keyword_loc: (1,27)-(1,30) = "end" diff --git a/test/prism/snapshots/whitequark/case_expr_else.txt b/test/prism/snapshots/whitequark/case_expr_else.txt index 2c6a5f8c65..5f59e744f3 100644 --- a/test/prism/snapshots/whitequark/case_expr_else.txt +++ b/test/prism/snapshots/whitequark/case_expr_else.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── conditions: (length: 1) │ └── @ WhenNode (location: (1,10)-(1,25)) │ ├── keyword_loc: (1,10)-(1,14) = "when" @@ -37,7 +37,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: │ @ ElseNode (location: (1,27)-(1,40)) │ ├── else_keyword_loc: (1,27)-(1,31) = "else" @@ -53,7 +53,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ └── end_keyword_loc: (1,37)-(1,40) = "end" ├── case_keyword_loc: (1,0)-(1,4) = "case" └── end_keyword_loc: (1,37)-(1,40) = "end" diff --git a/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt b/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt index ce384a6a5a..6348eb580e 100644 --- a/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt +++ b/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt @@ -36,7 +36,7 @@ │ │ │ │ │ ├── opening_loc: (1,29)-(1,31) = "do" │ │ │ │ │ └── closing_loc: (1,32)-(1,35) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "tap" + │ │ │ │ └── name: :tap │ │ │ └── operator_loc: (1,23)-(1,24) = "=" │ │ └── end_keyword_loc: (1,37)-(1,40) = "end" │ ├── statements: @@ -74,7 +74,7 @@ │ │ │ │ ├── opening_loc: (3,25)-(3,27) = "do" │ │ │ │ └── closing_loc: (3,28)-(3,31) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "tap" + │ │ │ └── name: :tap │ │ └── end_keyword_loc: (3,33)-(3,36) = "end" │ ├── statements: │ │ @ StatementsNode (location: (3,38)-(3,43)) @@ -118,7 +118,7 @@ │ │ │ │ │ ├── opening_loc: (5,24)-(5,26) = "do" │ │ │ │ │ └── closing_loc: (5,27)-(5,30) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "tap" + │ │ │ │ └── name: :tap │ │ │ └── operator_loc: (5,18)-(5,19) = "=" │ │ ├── end_keyword_loc: (5,32)-(5,35) = "end" │ │ └── name: :Foo @@ -159,7 +159,7 @@ │ │ │ ├── opening_loc: (7,21)-(7,23) = "do" │ │ │ └── closing_loc: (7,24)-(7,27) = "end" │ │ ├── flags: ∅ - │ │ └── name: "tap" + │ │ └── name: :tap │ ├── end_keyword_loc: (7,29)-(7,32) = "end" │ └── name: :Foo ├── statements: diff --git a/test/prism/snapshots/whitequark/class_super_label.txt b/test/prism/snapshots/whitequark/class_super_label.txt index 60826a72b9..e49b2d1f17 100644 --- a/test/prism/snapshots/whitequark/class_super_label.txt +++ b/test/prism/snapshots/whitequark/class_super_label.txt @@ -27,7 +27,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── body: ∅ ├── end_keyword_loc: (1,17)-(1,20) = "end" └── name: :Foo diff --git a/test/prism/snapshots/whitequark/comments_before_leading_dot__27.txt b/test/prism/snapshots/whitequark/comments_before_leading_dot__27.txt index 5315ed5d17..68fe52ffd2 100644 --- a/test/prism/snapshots/whitequark/comments_before_leading_dot__27.txt +++ b/test/prism/snapshots/whitequark/comments_before_leading_dot__27.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (3,0)-(3,2) = "&." │ ├── message_loc: (3,2)-(3,5) = "foo" │ ├── opening_loc: ∅ @@ -22,7 +22,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (6,0)-(8,4)) │ ├── receiver: │ │ @ CallNode (location: (6,0)-(6,1)) @@ -34,7 +34,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (8,0)-(8,1) = "." │ ├── message_loc: (8,1)-(8,4) = "foo" │ ├── opening_loc: ∅ @@ -42,7 +42,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo ├── @ CallNode (location: (11,0)-(13,5)) │ ├── receiver: │ │ @ CallNode (location: (11,0)-(11,1)) @@ -54,7 +54,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: (13,0)-(13,2) = "&." │ ├── message_loc: (13,2)-(13,5) = "foo" │ ├── opening_loc: ∅ @@ -62,7 +62,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: safe_navigation - │ └── name: "foo" + │ └── name: :foo └── @ CallNode (location: (16,0)-(18,4)) ├── receiver: │ @ CallNode (location: (16,0)-(16,1)) @@ -74,7 +74,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (18,0)-(18,1) = "." ├── message_loc: (18,1)-(18,4) = "foo" ├── opening_loc: ∅ @@ -82,4 +82,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/whitequark/cond_begin.txt b/test/prism/snapshots/whitequark/cond_begin.txt index 085f240ebd..cc52c5fdaf 100644 --- a/test/prism/snapshots/whitequark/cond_begin.txt +++ b/test/prism/snapshots/whitequark/cond_begin.txt @@ -19,7 +19,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── opening_loc: (1,3)-(1,4) = "(" │ └── closing_loc: (1,7)-(1,8) = ")" ├── statements: @@ -34,6 +34,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── consequent: ∅ └── end_keyword_loc: (1,15)-(1,18) = "end" diff --git a/test/prism/snapshots/whitequark/cond_begin_masgn.txt b/test/prism/snapshots/whitequark/cond_begin_masgn.txt index 9ec167665e..e30a3989f4 100644 --- a/test/prism/snapshots/whitequark/cond_begin_masgn.txt +++ b/test/prism/snapshots/whitequark/cond_begin_masgn.txt @@ -19,7 +19,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── @ MultiWriteNode (location: (1,9)-(1,19)) │ │ ├── targets: (length: 2) │ │ │ ├── @ LocalVariableTargetNode (location: (1,9)-(1,10)) @@ -41,7 +41,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (1,3)-(1,4) = "(" │ └── closing_loc: (1,19)-(1,20) = ")" ├── statements: ∅ diff --git a/test/prism/snapshots/whitequark/cond_eflipflop.txt b/test/prism/snapshots/whitequark/cond_eflipflop.txt index 89976af9e9..9f4e79ce10 100644 --- a/test/prism/snapshots/whitequark/cond_eflipflop.txt +++ b/test/prism/snapshots/whitequark/cond_eflipflop.txt @@ -20,7 +20,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ ├── right: │ │ │ │ @ CallNode (location: (1,8)-(1,11)) │ │ │ │ ├── receiver: ∅ @@ -31,7 +31,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── operator_loc: (1,5)-(1,8) = "..." │ │ │ └── flags: exclude_end │ │ ├── opening_loc: (1,1)-(1,2) = "(" @@ -43,7 +43,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! └── @ IfNode (location: (3,0)-(3,17)) ├── if_keyword_loc: (3,0)-(3,2) = "if" ├── predicate: @@ -58,7 +58,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── right: │ │ @ CallNode (location: (3,9)-(3,12)) │ │ ├── receiver: ∅ @@ -69,7 +69,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── operator_loc: (3,6)-(3,9) = "..." │ └── flags: exclude_end ├── statements: ∅ diff --git a/test/prism/snapshots/whitequark/cond_iflipflop.txt b/test/prism/snapshots/whitequark/cond_iflipflop.txt index 1dcece1aef..93aaf20f28 100644 --- a/test/prism/snapshots/whitequark/cond_iflipflop.txt +++ b/test/prism/snapshots/whitequark/cond_iflipflop.txt @@ -20,7 +20,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ ├── right: │ │ │ │ @ CallNode (location: (1,7)-(1,10)) │ │ │ │ ├── receiver: ∅ @@ -31,7 +31,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── operator_loc: (1,5)-(1,7) = ".." │ │ │ └── flags: ∅ │ │ ├── opening_loc: (1,1)-(1,2) = "(" @@ -43,7 +43,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! └── @ IfNode (location: (3,0)-(3,16)) ├── if_keyword_loc: (3,0)-(3,2) = "if" ├── predicate: @@ -58,7 +58,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── right: │ │ @ CallNode (location: (3,8)-(3,11)) │ │ ├── receiver: ∅ @@ -69,7 +69,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── operator_loc: (3,6)-(3,8) = ".." │ └── flags: ∅ ├── statements: ∅ diff --git a/test/prism/snapshots/whitequark/cond_match_current_line.txt b/test/prism/snapshots/whitequark/cond_match_current_line.txt index 679e903681..e13cb573c6 100644 --- a/test/prism/snapshots/whitequark/cond_match_current_line.txt +++ b/test/prism/snapshots/whitequark/cond_match_current_line.txt @@ -18,7 +18,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! └── @ IfNode (location: (3,0)-(3,13)) ├── if_keyword_loc: (3,0)-(3,2) = "if" ├── predicate: diff --git a/test/prism/snapshots/whitequark/dedenting_heredoc.txt b/test/prism/snapshots/whitequark/dedenting_heredoc.txt index c0babc6ba1..891eba567f 100644 --- a/test/prism/snapshots/whitequark/dedenting_heredoc.txt +++ b/test/prism/snapshots/whitequark/dedenting_heredoc.txt @@ -42,7 +42,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (6,0)-(6,8)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -74,7 +74,7 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "foo" + │ │ │ │ │ └── name: :foo │ │ │ │ └── closing_loc: (8,7)-(8,8) = "}" │ │ │ └── @ StringNode (location: (8,8)-(8,0)) │ │ │ ├── flags: ∅ @@ -86,7 +86,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (11,0)-(11,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -104,7 +104,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (16,0)-(16,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -122,7 +122,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (21,0)-(21,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -140,7 +140,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (26,0)-(26,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -158,7 +158,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (31,0)-(31,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -176,7 +176,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (36,0)-(36,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -194,7 +194,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (41,0)-(41,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -212,7 +212,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (44,0)-(44,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -230,7 +230,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (50,0)-(50,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -248,7 +248,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (56,0)-(56,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -266,7 +266,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (61,0)-(61,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -284,7 +284,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (65,0)-(65,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -302,7 +302,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── @ CallNode (location: (69,0)-(69,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -320,7 +320,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p └── @ CallNode (location: (72,0)-(72,8)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -352,7 +352,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "foo" + │ │ │ │ └── name: :foo │ │ │ └── closing_loc: (74,7)-(74,8) = "}" │ │ └── @ StringNode (location: (74,8)-(74,0)) │ │ ├── flags: ∅ @@ -364,4 +364,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/whitequark/defined.txt b/test/prism/snapshots/whitequark/defined.txt index 475e6a2734..a7073313f6 100644 --- a/test/prism/snapshots/whitequark/defined.txt +++ b/test/prism/snapshots/whitequark/defined.txt @@ -22,7 +22,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── rparen_loc: ∅ │ └── keyword_loc: (3,0)-(3,8) = "defined?" └── @ DefinedNode (location: (5,0)-(5,13)) @@ -37,6 +37,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── rparen_loc: (5,12)-(5,13) = ")" └── keyword_loc: (5,0)-(5,8) = "defined?" diff --git a/test/prism/snapshots/whitequark/defs.txt b/test/prism/snapshots/whitequark/defs.txt index bdb96e83b0..609897e293 100644 --- a/test/prism/snapshots/whitequark/defs.txt +++ b/test/prism/snapshots/whitequark/defs.txt @@ -18,7 +18,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── opening_loc: (1,4)-(1,5) = "(" │ │ └── closing_loc: (1,8)-(1,9) = ")" │ ├── parameters: ∅ diff --git a/test/prism/snapshots/whitequark/endless_comparison_method.txt b/test/prism/snapshots/whitequark/endless_comparison_method.txt index ee65681c02..5d6b5a1afa 100644 --- a/test/prism/snapshots/whitequark/endless_comparison_method.txt +++ b/test/prism/snapshots/whitequark/endless_comparison_method.txt @@ -30,7 +30,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "do_something" + │ │ └── name: :do_something │ ├── locals: [:other] │ ├── def_keyword_loc: (1,0)-(1,3) = "def" │ ├── operator_loc: ∅ @@ -65,7 +65,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "do_something" + │ │ └── name: :do_something │ ├── locals: [:other] │ ├── def_keyword_loc: (3,0)-(3,3) = "def" │ ├── operator_loc: ∅ @@ -100,7 +100,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "do_something" + │ │ └── name: :do_something │ ├── locals: [:other] │ ├── def_keyword_loc: (5,0)-(5,3) = "def" │ ├── operator_loc: ∅ @@ -135,7 +135,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "do_something" + │ │ └── name: :do_something │ ├── locals: [:other] │ ├── def_keyword_loc: (7,0)-(7,3) = "def" │ ├── operator_loc: ∅ @@ -170,7 +170,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "do_something" + │ │ └── name: :do_something │ ├── locals: [:other] │ ├── def_keyword_loc: (9,0)-(9,3) = "def" │ ├── operator_loc: ∅ @@ -205,7 +205,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "do_something" + │ └── name: :do_something ├── locals: [:other] ├── def_keyword_loc: (11,0)-(11,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/endless_method.txt b/test/prism/snapshots/whitequark/endless_method.txt index 4d1d01bde0..8d229c2a72 100644 --- a/test/prism/snapshots/whitequark/endless_method.txt +++ b/test/prism/snapshots/whitequark/endless_method.txt @@ -54,7 +54,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+" + │ │ └── name: :+ │ ├── locals: [:x] │ ├── def_keyword_loc: (3,0)-(3,3) = "def" │ ├── operator_loc: ∅ @@ -75,7 +75,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "obj" + │ │ └── name: :obj │ ├── parameters: ∅ │ ├── body: │ │ @ StatementsNode (location: (5,16)-(5,18)) @@ -102,7 +102,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "obj" + │ └── name: :obj ├── parameters: │ @ ParametersNode (location: (7,12)-(7,13)) │ ├── requireds: (length: 1) @@ -133,7 +133,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── locals: [:x] ├── def_keyword_loc: (7,0)-(7,3) = "def" ├── operator_loc: (7,7)-(7,8) = "." diff --git a/test/prism/snapshots/whitequark/endless_method_command_syntax.txt b/test/prism/snapshots/whitequark/endless_method_command_syntax.txt index 0943a1edf3..a3e07e68a4 100644 --- a/test/prism/snapshots/whitequark/endless_method_command_syntax.txt +++ b/test/prism/snapshots/whitequark/endless_method_command_syntax.txt @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "puts" + │ │ └── name: :puts │ ├── locals: [] │ ├── def_keyword_loc: (1,0)-(1,3) = "def" │ ├── operator_loc: ∅ @@ -61,7 +61,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "puts" + │ │ └── name: :puts │ ├── locals: [] │ ├── def_keyword_loc: (3,0)-(3,3) = "def" │ ├── operator_loc: ∅ @@ -101,7 +101,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "puts" + │ │ └── name: :puts │ ├── locals: [:x] │ ├── def_keyword_loc: (5,0)-(5,3) = "def" │ ├── operator_loc: ∅ @@ -122,7 +122,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "obj" + │ │ └── name: :obj │ ├── parameters: ∅ │ ├── body: │ │ @ StatementsNode (location: (7,14)-(7,26)) @@ -144,7 +144,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "puts" + │ │ └── name: :puts │ ├── locals: [] │ ├── def_keyword_loc: (7,0)-(7,3) = "def" │ ├── operator_loc: (7,7)-(7,8) = "." @@ -165,7 +165,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "obj" + │ │ └── name: :obj │ ├── parameters: ∅ │ ├── body: │ │ @ StatementsNode (location: (9,16)-(9,28)) @@ -187,7 +187,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "puts" + │ │ └── name: :puts │ ├── locals: [] │ ├── def_keyword_loc: (9,0)-(9,3) = "def" │ ├── operator_loc: (9,7)-(9,8) = "." @@ -208,7 +208,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "obj" + │ │ └── name: :obj │ ├── parameters: │ │ @ ParametersNode (location: (11,12)-(11,13)) │ │ ├── requireds: (length: 1) @@ -237,7 +237,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "puts" + │ │ └── name: :puts │ ├── locals: [:x] │ ├── def_keyword_loc: (11,0)-(11,3) = "def" │ ├── operator_loc: (11,7)-(11,8) = "." @@ -303,7 +303,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "raise" + │ │ └── name: :raise │ ├── locals: [:x] │ ├── def_keyword_loc: (13,0)-(13,3) = "def" │ ├── operator_loc: ∅ @@ -370,7 +370,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "raise" + │ └── name: :raise ├── locals: [:x] ├── def_keyword_loc: (15,0)-(15,3) = "def" ├── operator_loc: (15,8)-(15,9) = "." diff --git a/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt b/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt index ebdfd4c5cc..c5b7ca8b2c 100644 --- a/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt +++ b/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt @@ -32,7 +32,7 @@ │ ├── closing_loc: (1,22)-(1,23) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/ensure.txt b/test/prism/snapshots/whitequark/ensure.txt index a82ec2c148..0e3c04b050 100644 --- a/test/prism/snapshots/whitequark/ensure.txt +++ b/test/prism/snapshots/whitequark/ensure.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── rescue_clause: ∅ ├── else_clause: ∅ ├── ensure_clause: @@ -35,6 +35,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── end_keyword_loc: (1,26)-(1,29) = "end" └── end_keyword_loc: (1,26)-(1,29) = "end" diff --git a/test/prism/snapshots/whitequark/for.txt b/test/prism/snapshots/whitequark/for.txt index 19118c0c54..d4d4dc1602 100644 --- a/test/prism/snapshots/whitequark/for.txt +++ b/test/prism/snapshots/whitequark/for.txt @@ -18,7 +18,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── statements: │ │ @ StatementsNode (location: (1,16)-(1,19)) │ │ └── body: (length: 1) @@ -36,7 +36,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "p" + │ │ └── name: :p │ ├── for_keyword_loc: (1,0)-(1,3) = "for" │ ├── in_keyword_loc: (1,6)-(1,8) = "in" │ ├── do_keyword_loc: (1,13)-(1,15) = "do" @@ -56,7 +56,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (3,14)-(3,17)) │ └── body: (length: 1) @@ -74,7 +74,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── for_keyword_loc: (3,0)-(3,3) = "for" ├── in_keyword_loc: (3,6)-(3,8) = "in" ├── do_keyword_loc: ∅ diff --git a/test/prism/snapshots/whitequark/for_mlhs.txt b/test/prism/snapshots/whitequark/for_mlhs.txt index 3fbca4d299..ef15199a80 100644 --- a/test/prism/snapshots/whitequark/for_mlhs.txt +++ b/test/prism/snapshots/whitequark/for_mlhs.txt @@ -25,7 +25,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (1,17)-(1,23)) │ └── body: (length: 1) @@ -46,7 +46,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "p" + │ └── name: :p ├── for_keyword_loc: (1,0)-(1,3) = "for" ├── in_keyword_loc: (1,9)-(1,11) = "in" ├── do_keyword_loc: ∅ diff --git a/test/prism/snapshots/whitequark/forward_arg.txt b/test/prism/snapshots/whitequark/forward_arg.txt index 37f836e372..6db649d9cd 100644 --- a/test/prism/snapshots/whitequark/forward_arg.txt +++ b/test/prism/snapshots/whitequark/forward_arg.txt @@ -32,7 +32,7 @@ │ ├── closing_loc: (1,21)-(1,22) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt b/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt index 7c498718cf..28f8e2c846 100644 --- a/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt +++ b/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt @@ -36,7 +36,7 @@ │ │ │ ├── closing_loc: (2,9)-(2,10) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── locals: [:"..."] │ │ ├── def_keyword_loc: (1,1)-(1,4) = "def" │ │ ├── operator_loc: ∅ @@ -79,7 +79,7 @@ │ │ │ ├── closing_loc: (5,21)-(5,22) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── locals: [:"..."] │ │ ├── def_keyword_loc: (5,1)-(5,4) = "def" │ │ ├── operator_loc: ∅ @@ -140,7 +140,7 @@ │ │ ├── closing_loc: (10,20)-(10,21) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:"..."] │ ├── def_keyword_loc: (10,0)-(10,3) = "def" │ ├── operator_loc: ∅ @@ -179,7 +179,7 @@ │ │ ├── closing_loc: (13,9)-(13,10) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:a, :"..."] │ ├── def_keyword_loc: (12,0)-(12,3) = "def" │ ├── operator_loc: ∅ @@ -218,7 +218,7 @@ │ │ ├── closing_loc: (16,23)-(16,24) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:a, :"..."] │ ├── def_keyword_loc: (16,0)-(16,3) = "def" │ ├── operator_loc: ∅ @@ -293,7 +293,7 @@ │ │ ├── closing_loc: (22,9)-(22,10) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:b, :"..."] │ ├── def_keyword_loc: (21,0)-(21,3) = "def" │ ├── operator_loc: ∅ @@ -337,7 +337,7 @@ │ │ ├── closing_loc: (25,27)-(25,28) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:b, :"..."] │ ├── def_keyword_loc: (25,0)-(25,3) = "def" │ ├── operator_loc: ∅ @@ -376,7 +376,7 @@ │ ├── closing_loc: (27,23)-(27,24) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:a, :"..."] ├── def_keyword_loc: (27,0)-(27,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/forward_args_legacy.txt b/test/prism/snapshots/whitequark/forward_args_legacy.txt index ea271bd9ce..281e5e97c0 100644 --- a/test/prism/snapshots/whitequark/forward_args_legacy.txt +++ b/test/prism/snapshots/whitequark/forward_args_legacy.txt @@ -32,7 +32,7 @@ │ │ ├── closing_loc: (1,21)-(1,22) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── locals: [:"..."] │ ├── def_keyword_loc: (1,0)-(1,3) = "def" │ ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt b/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt index 3a3ddaea6e..62e1b55680 100644 --- a/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt +++ b/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt @@ -44,7 +44,7 @@ │ ├── closing_loc: (1,39)-(1,40) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:argument, :**] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt b/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt index 5c1d350672..59e728ad89 100644 --- a/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt +++ b/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt @@ -42,7 +42,7 @@ │ ├── closing_loc: (1,37)-(1,38) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:argument, :*] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt b/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt index 3690613d9e..c460b5a637 100644 --- a/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt +++ b/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt @@ -39,7 +39,7 @@ │ ├── closing_loc: (1,19)-(1,20) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:**] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt b/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt index 87fbc462fc..68caaadd0e 100644 --- a/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt +++ b/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt @@ -49,7 +49,7 @@ │ ├── closing_loc: (1,35)-(1,36) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:**] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/forwarded_restarg.txt b/test/prism/snapshots/whitequark/forwarded_restarg.txt index 4ff9bf55a8..66c344a7ef 100644 --- a/test/prism/snapshots/whitequark/forwarded_restarg.txt +++ b/test/prism/snapshots/whitequark/forwarded_restarg.txt @@ -37,7 +37,7 @@ │ ├── closing_loc: (1,17)-(1,18) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:*] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/hash_kwsplat.txt b/test/prism/snapshots/whitequark/hash_kwsplat.txt index 506f054071..8751e31cf4 100644 --- a/test/prism/snapshots/whitequark/hash_kwsplat.txt +++ b/test/prism/snapshots/whitequark/hash_kwsplat.txt @@ -28,6 +28,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── operator_loc: (1,10)-(1,12) = "**" └── closing_loc: (1,16)-(1,17) = "}" diff --git a/test/prism/snapshots/whitequark/hash_label_end.txt b/test/prism/snapshots/whitequark/hash_label_end.txt index dfa6eb4da5..f3e3d502d0 100644 --- a/test/prism/snapshots/whitequark/hash_label_end.txt +++ b/test/prism/snapshots/whitequark/hash_label_end.txt @@ -23,7 +23,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── statements: │ │ │ @ StatementsNode (location: (1,6)-(1,9)) │ │ │ └── body: (length: 1) @@ -46,7 +46,7 @@ │ ├── closing_loc: (1,11)-(1,12) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "f" + │ └── name: :f ├── @ HashNode (location: (3,0)-(3,12)) │ ├── opening_loc: (3,0)-(3,1) = "{" │ ├── elements: (length: 1) diff --git a/test/prism/snapshots/whitequark/hash_pair_value_omission.txt b/test/prism/snapshots/whitequark/hash_pair_value_omission.txt index 37e3098369..205d2ce10c 100644 --- a/test/prism/snapshots/whitequark/hash_pair_value_omission.txt +++ b/test/prism/snapshots/whitequark/hash_pair_value_omission.txt @@ -42,7 +42,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "a" + │ │ │ │ └── name: :a │ │ │ └── operator_loc: ∅ │ │ └── @ AssocNode (location: (3,5)-(3,7)) │ │ ├── key: @@ -63,7 +63,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── operator_loc: ∅ │ └── closing_loc: (3,7)-(3,8) = "}" └── @ HashNode (location: (5,0)-(5,7)) @@ -88,6 +88,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "puts" + │ │ └── name: :puts │ └── operator_loc: ∅ └── closing_loc: (5,6)-(5,7) = "}" diff --git a/test/prism/snapshots/whitequark/if.txt b/test/prism/snapshots/whitequark/if.txt index c5a422008e..ccd906a003 100644 --- a/test/prism/snapshots/whitequark/if.txt +++ b/test/prism/snapshots/whitequark/if.txt @@ -15,7 +15,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── statements: │ │ @ StatementsNode (location: (1,12)-(1,15)) │ │ └── body: (length: 1) @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── consequent: ∅ │ └── end_keyword_loc: (1,17)-(1,20) = "end" └── @ IfNode (location: (3,0)-(3,16)) @@ -43,7 +43,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (3,8)-(3,11)) │ └── body: (length: 1) @@ -56,6 +56,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: ∅ └── end_keyword_loc: (3,13)-(3,16) = "end" diff --git a/test/prism/snapshots/whitequark/if_else.txt b/test/prism/snapshots/whitequark/if_else.txt index a0b8a8d842..56644ac978 100644 --- a/test/prism/snapshots/whitequark/if_else.txt +++ b/test/prism/snapshots/whitequark/if_else.txt @@ -15,7 +15,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── statements: │ │ @ StatementsNode (location: (1,12)-(1,15)) │ │ └── body: (length: 1) @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── consequent: │ │ @ ElseNode (location: (1,17)-(1,30)) │ │ ├── else_keyword_loc: (1,17)-(1,21) = "else" @@ -44,7 +44,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── end_keyword_loc: (1,27)-(1,30) = "end" │ └── end_keyword_loc: (1,27)-(1,30) = "end" └── @ IfNode (location: (3,0)-(3,26)) @@ -59,7 +59,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (3,8)-(3,11)) │ └── body: (length: 1) @@ -72,7 +72,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: │ @ ElseNode (location: (3,13)-(3,26)) │ ├── else_keyword_loc: (3,13)-(3,17) = "else" @@ -88,6 +88,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ └── end_keyword_loc: (3,23)-(3,26) = "end" └── end_keyword_loc: (3,23)-(3,26) = "end" diff --git a/test/prism/snapshots/whitequark/if_elsif.txt b/test/prism/snapshots/whitequark/if_elsif.txt index cf55c74095..7f0c3b879b 100644 --- a/test/prism/snapshots/whitequark/if_elsif.txt +++ b/test/prism/snapshots/whitequark/if_elsif.txt @@ -15,7 +15,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (1,8)-(1,11)) │ └── body: (length: 1) @@ -28,7 +28,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: │ @ IfNode (location: (1,13)-(1,38)) │ ├── if_keyword_loc: (1,13)-(1,18) = "elsif" @@ -42,7 +42,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ ├── statements: │ │ @ StatementsNode (location: (1,24)-(1,25)) │ │ └── body: (length: 1) diff --git a/test/prism/snapshots/whitequark/if_masgn__24.txt b/test/prism/snapshots/whitequark/if_masgn__24.txt index 3202633df6..bcd74cc067 100644 --- a/test/prism/snapshots/whitequark/if_masgn__24.txt +++ b/test/prism/snapshots/whitequark/if_masgn__24.txt @@ -31,7 +31,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (1,3)-(1,4) = "(" │ └── closing_loc: (1,14)-(1,15) = ")" ├── statements: ∅ diff --git a/test/prism/snapshots/whitequark/if_mod.txt b/test/prism/snapshots/whitequark/if_mod.txt index 1e0f7f0bb0..8ef98ce5cd 100644 --- a/test/prism/snapshots/whitequark/if_mod.txt +++ b/test/prism/snapshots/whitequark/if_mod.txt @@ -15,7 +15,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (1,0)-(1,3)) │ └── body: (length: 1) @@ -28,6 +28,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: ∅ └── end_keyword_loc: ∅ diff --git a/test/prism/snapshots/whitequark/if_nl_then.txt b/test/prism/snapshots/whitequark/if_nl_then.txt index 17355a73d3..8a1a9302c0 100644 --- a/test/prism/snapshots/whitequark/if_nl_then.txt +++ b/test/prism/snapshots/whitequark/if_nl_then.txt @@ -15,7 +15,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (2,5)-(2,8)) │ └── body: (length: 1) @@ -28,6 +28,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: ∅ └── end_keyword_loc: (2,9)-(2,12) = "end" diff --git a/test/prism/snapshots/whitequark/keyword_argument_omission.txt b/test/prism/snapshots/whitequark/keyword_argument_omission.txt index b9774ebbec..1557f333db 100644 --- a/test/prism/snapshots/whitequark/keyword_argument_omission.txt +++ b/test/prism/snapshots/whitequark/keyword_argument_omission.txt @@ -32,7 +32,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ └── operator_loc: ∅ │ └── @ AssocNode (location: (1,8)-(1,10)) │ ├── key: @@ -53,9 +53,9 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ └── operator_loc: ∅ ├── closing_loc: (1,10)-(1,11) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/whitequark/kwbegin_compstmt.txt b/test/prism/snapshots/whitequark/kwbegin_compstmt.txt index 0d1f9e6afa..e4da7c1eb0 100644 --- a/test/prism/snapshots/whitequark/kwbegin_compstmt.txt +++ b/test/prism/snapshots/whitequark/kwbegin_compstmt.txt @@ -17,7 +17,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "foo!" + │ │ └── name: :foo! │ └── @ CallNode (location: (1,12)-(1,16)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -27,7 +27,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar!" + │ └── name: :bar! ├── rescue_clause: ∅ ├── else_clause: ∅ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/whitequark/kwnilarg.txt b/test/prism/snapshots/whitequark/kwnilarg.txt index 42c0815710..de2173b1c6 100644 --- a/test/prism/snapshots/whitequark/kwnilarg.txt +++ b/test/prism/snapshots/whitequark/kwnilarg.txt @@ -81,4 +81,4 @@ │ ├── opening_loc: (5,2)-(5,3) = "{" │ └── closing_loc: (5,12)-(5,13) = "}" ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt b/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt index 64ac6a7cf3..0bba782af6 100644 --- a/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt +++ b/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt @@ -44,7 +44,7 @@ │ ├── closing_loc: (1,23)-(1,24) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "b" + │ └── name: :b ├── locals: [:a, :**] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt b/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt index 3bce83afdf..c5d89b9c9e 100644 --- a/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt +++ b/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt @@ -45,8 +45,8 @@ │ │ │ ├── opening_loc: (1,13)-(1,15) = "do" │ │ │ └── closing_loc: (1,17)-(1,20) = "end" │ │ ├── flags: ∅ - │ │ └── name: "m" + │ │ └── name: :m │ ├── opening_loc: (1,9)-(1,10) = "{" │ └── closing_loc: (1,21)-(1,22) = "}" ├── flags: ∅ - └── name: "let" + └── name: :let diff --git a/test/prism/snapshots/whitequark/lparenarg_after_lvar__since_25.txt b/test/prism/snapshots/whitequark/lparenarg_after_lvar__since_25.txt index a3442293f2..f1e5b280e8 100644 --- a/test/prism/snapshots/whitequark/lparenarg_after_lvar__since_25.txt +++ b/test/prism/snapshots/whitequark/lparenarg_after_lvar__since_25.txt @@ -27,11 +27,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "abs" + │ │ └── name: :abs │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "foo" + │ └── name: :foo └── @ CallNode (location: (3,0)-(3,15)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -56,8 +56,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "abs" + │ └── name: :abs ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "meth" + └── name: :meth diff --git a/test/prism/snapshots/whitequark/lvar.txt b/test/prism/snapshots/whitequark/lvar.txt index 1585d64cd9..8c7b232cb2 100644 --- a/test/prism/snapshots/whitequark/lvar.txt +++ b/test/prism/snapshots/whitequark/lvar.txt @@ -12,4 +12,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/whitequark/lvar_injecting_match.txt b/test/prism/snapshots/whitequark/lvar_injecting_match.txt index b457f19086..eb655f0c05 100644 --- a/test/prism/snapshots/whitequark/lvar_injecting_match.txt +++ b/test/prism/snapshots/whitequark/lvar_injecting_match.txt @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "=~" + │ │ └── name: :=~ │ └── locals: [:match] └── @ LocalVariableReadNode (location: (1,26)-(1,31)) ├── name: :match diff --git a/test/prism/snapshots/whitequark/masgn_attr.txt b/test/prism/snapshots/whitequark/masgn_attr.txt index c4464f01d4..d5852f019e 100644 --- a/test/prism/snapshots/whitequark/masgn_attr.txt +++ b/test/prism/snapshots/whitequark/masgn_attr.txt @@ -15,7 +15,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "A=" + │ │ │ └── name: :A= │ │ └── @ LocalVariableTargetNode (location: (1,8)-(1,11)) │ │ ├── name: :foo │ │ └── depth: 0 @@ -38,7 +38,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "a=" + │ │ │ └── name: :a= │ │ └── @ CallNode (location: (3,8)-(3,18)) │ │ ├── receiver: │ │ │ @ SelfNode (location: (3,8)-(3,12)) @@ -55,7 +55,7 @@ │ │ ├── closing_loc: (3,17)-(3,18) = "]" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "[]=" + │ │ └── name: :[]= │ ├── lparen_loc: ∅ │ ├── rparen_loc: ∅ │ ├── operator_loc: (3,19)-(3,20) = "=" @@ -75,7 +75,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "a=" + │ │ └── name: :a= │ └── @ LocalVariableTargetNode (location: (5,9)-(5,12)) │ ├── name: :foo │ └── depth: 0 diff --git a/test/prism/snapshots/whitequark/masgn_cmd.txt b/test/prism/snapshots/whitequark/masgn_cmd.txt index e2bfcffa0b..883ef06975 100644 --- a/test/prism/snapshots/whitequark/masgn_cmd.txt +++ b/test/prism/snapshots/whitequark/masgn_cmd.txt @@ -29,4 +29,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/masgn_nested.txt b/test/prism/snapshots/whitequark/masgn_nested.txt index 9fac89a301..45e05e574d 100644 --- a/test/prism/snapshots/whitequark/masgn_nested.txt +++ b/test/prism/snapshots/whitequark/masgn_nested.txt @@ -28,7 +28,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo └── @ MultiWriteNode (location: (3,0)-(3,15)) ├── targets: (length: 2) │ ├── @ LocalVariableTargetNode (location: (3,0)-(3,1)) @@ -57,4 +57,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "foo" + └── name: :foo diff --git a/test/prism/snapshots/whitequark/masgn_splat.txt b/test/prism/snapshots/whitequark/masgn_splat.txt index f4148d5102..a818fc141d 100644 --- a/test/prism/snapshots/whitequark/masgn_splat.txt +++ b/test/prism/snapshots/whitequark/masgn_splat.txt @@ -21,7 +21,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── @ MultiWriteNode (location: (3,0)-(3,13)) │ ├── targets: (length: 3) │ │ ├── @ MultiTargetNode (location: (3,0)-(3,1)) @@ -50,7 +50,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── @ MultiWriteNode (location: (5,0)-(5,8)) │ ├── targets: (length: 1) │ │ └── @ SplatNode (location: (5,0)-(5,2)) @@ -72,7 +72,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── @ MultiWriteNode (location: (7,0)-(7,11)) │ ├── targets: (length: 2) │ │ ├── @ MultiTargetNode (location: (7,0)-(7,2)) @@ -101,7 +101,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── @ MultiWriteNode (location: (9,0)-(9,18)) │ ├── targets: (length: 2) │ │ ├── @ InstanceVariableTargetNode (location: (9,0)-(9,4)) @@ -126,7 +126,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: ∅ │ └── closing_loc: ∅ ├── @ MultiWriteNode (location: (11,0)-(11,10)) @@ -150,7 +150,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── @ MultiWriteNode (location: (13,0)-(13,13)) │ ├── targets: (length: 3) │ │ ├── @ LocalVariableTargetNode (location: (13,0)-(13,1)) @@ -175,7 +175,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── @ MultiWriteNode (location: (15,0)-(15,11)) │ ├── targets: (length: 2) │ │ ├── @ LocalVariableTargetNode (location: (15,0)-(15,1)) @@ -200,7 +200,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── @ MultiWriteNode (location: (17,0)-(17,14)) │ ├── targets: (length: 3) │ │ ├── @ LocalVariableTargetNode (location: (17,0)-(17,1)) @@ -228,7 +228,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar └── @ MultiWriteNode (location: (19,0)-(19,16)) ├── targets: (length: 2) │ ├── @ LocalVariableTargetNode (location: (19,0)-(19,1)) @@ -255,7 +255,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── @ CallNode (location: (19,13)-(19,16)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -265,6 +265,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── opening_loc: ∅ └── closing_loc: ∅ diff --git a/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt b/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt index 2ecf554690..523b92e7ab 100644 --- a/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt +++ b/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt @@ -35,7 +35,7 @@ │ │ │ │ │ ├── opening_loc: (1,22)-(1,24) = "do" │ │ │ │ │ └── closing_loc: (1,25)-(1,28) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "tap" + │ │ │ │ └── name: :tap │ │ │ ├── rest: ∅ │ │ │ ├── posts: (length: 0) │ │ │ ├── keywords: (length: 0) @@ -83,7 +83,7 @@ │ │ │ │ ├── opening_loc: (3,19)-(3,21) = "do" │ │ │ │ └── closing_loc: (3,22)-(3,25) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "tap" + │ │ │ └── name: :tap │ │ ├── locals: [] │ │ ├── def_keyword_loc: (3,6)-(3,9) = "def" │ │ ├── operator_loc: ∅ @@ -131,7 +131,7 @@ │ │ │ │ │ ├── opening_loc: (5,27)-(5,29) = "do" │ │ │ │ │ └── closing_loc: (5,30)-(5,33) = "end" │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "tap" + │ │ │ │ └── name: :tap │ │ │ ├── rest: ∅ │ │ │ ├── posts: (length: 0) │ │ │ ├── keywords: (length: 0) @@ -180,7 +180,7 @@ │ │ │ ├── opening_loc: (7,24)-(7,26) = "do" │ │ │ └── closing_loc: (7,27)-(7,30) = "end" │ │ ├── flags: ∅ - │ │ └── name: "tap" + │ │ └── name: :tap │ ├── locals: [] │ ├── def_keyword_loc: (7,6)-(7,9) = "def" │ ├── operator_loc: (7,14)-(7,15) = "." diff --git a/test/prism/snapshots/whitequark/newline_in_hash_argument.txt b/test/prism/snapshots/whitequark/newline_in_hash_argument.txt index 6c91492ca8..2f6aae2e65 100644 --- a/test/prism/snapshots/whitequark/newline_in_hash_argument.txt +++ b/test/prism/snapshots/whitequark/newline_in_hash_argument.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── conditions: (length: 2) │ │ ├── @ InNode (location: (2,0)-(4,4)) │ │ │ ├── pattern: @@ -80,7 +80,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "obj" + │ │ └── name: :obj │ ├── call_operator_loc: (10,3)-(10,4) = "." │ ├── message_loc: (10,4)-(10,7) = "set" │ ├── opening_loc: ∅ @@ -103,7 +103,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "set" + │ └── name: :set └── @ CallNode (location: (13,0)-(14,1)) ├── receiver: │ @ CallNode (location: (13,0)-(13,3)) @@ -115,7 +115,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "obj" + │ └── name: :obj ├── call_operator_loc: (13,3)-(13,4) = "." ├── message_loc: (13,4)-(13,7) = "set" ├── opening_loc: ∅ @@ -138,4 +138,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "set" + └── name: :set diff --git a/test/prism/snapshots/whitequark/next.txt b/test/prism/snapshots/whitequark/next.txt index b7d05ff9aa..fa560a0d83 100644 --- a/test/prism/snapshots/whitequark/next.txt +++ b/test/prism/snapshots/whitequark/next.txt @@ -19,7 +19,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── keyword_loc: (3,0)-(3,4) = "next" ├── @ NextNode (location: (5,0)-(5,6)) │ ├── arguments: @@ -47,7 +47,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (7,4)-(7,5) = "(" │ └── closing_loc: (7,8)-(7,9) = ")" └── keyword_loc: (7,0)-(7,4) = "next" diff --git a/test/prism/snapshots/whitequark/next_block.txt b/test/prism/snapshots/whitequark/next_block.txt index 59cb11ac87..ce2ec1ad32 100644 --- a/test/prism/snapshots/whitequark/next_block.txt +++ b/test/prism/snapshots/whitequark/next_block.txt @@ -24,7 +24,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (1,13)-(1,19)) @@ -34,5 +34,5 @@ │ │ ├── opening_loc: (1,13)-(1,15) = "do" │ │ └── closing_loc: (1,16)-(1,19) = "end" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun └── keyword_loc: (1,0)-(1,4) = "next" diff --git a/test/prism/snapshots/whitequark/non_lvar_injecting_match.txt b/test/prism/snapshots/whitequark/non_lvar_injecting_match.txt index d31b67c689..5917aabf29 100644 --- a/test/prism/snapshots/whitequark/non_lvar_injecting_match.txt +++ b/test/prism/snapshots/whitequark/non_lvar_injecting_match.txt @@ -39,4 +39,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "=~" + └── name: :=~ diff --git a/test/prism/snapshots/whitequark/not.txt b/test/prism/snapshots/whitequark/not.txt index c7706f13ba..16bff85016 100644 --- a/test/prism/snapshots/whitequark/not.txt +++ b/test/prism/snapshots/whitequark/not.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,0)-(1,3) = "not" │ ├── opening_loc: ∅ @@ -22,7 +22,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! ├── @ CallNode (location: (3,0)-(3,5)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -32,7 +32,7 @@ │ ├── closing_loc: (3,4)-(3,5) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!" + │ └── name: :! └── @ CallNode (location: (5,0)-(5,8)) ├── receiver: │ @ CallNode (location: (5,4)-(5,7)) @@ -44,7 +44,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (5,0)-(5,3) = "not" ├── opening_loc: (5,3)-(5,4) = "(" @@ -52,4 +52,4 @@ ├── closing_loc: (5,7)-(5,8) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/whitequark/not_cmd.txt b/test/prism/snapshots/whitequark/not_cmd.txt index c31c06dc6b..f07b4aba35 100644 --- a/test/prism/snapshots/whitequark/not_cmd.txt +++ b/test/prism/snapshots/whitequark/not_cmd.txt @@ -22,11 +22,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── call_operator_loc: ∅ ├── message_loc: (1,0)-(1,3) = "not" ├── opening_loc: ∅ @@ -34,4 +34,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/whitequark/not_masgn__24.txt b/test/prism/snapshots/whitequark/not_masgn__24.txt index 971d985d11..3ca00981a3 100644 --- a/test/prism/snapshots/whitequark/not_masgn__24.txt +++ b/test/prism/snapshots/whitequark/not_masgn__24.txt @@ -30,7 +30,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (1,1)-(1,2) = "(" │ └── closing_loc: (1,12)-(1,13) = ")" ├── call_operator_loc: ∅ @@ -40,4 +40,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "!" + └── name: :! diff --git a/test/prism/snapshots/whitequark/numbered_args_after_27.txt b/test/prism/snapshots/whitequark/numbered_args_after_27.txt index d6dfd5e1b5..0d677068e6 100644 --- a/test/prism/snapshots/whitequark/numbered_args_after_27.txt +++ b/test/prism/snapshots/whitequark/numbered_args_after_27.txt @@ -29,7 +29,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ LambdaNode (location: (3,0)-(3,13)) │ ├── locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9] │ ├── operator_loc: (3,0)-(3,2) = "->" @@ -56,7 +56,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ CallNode (location: (5,0)-(5,16)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -88,11 +88,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "+" + │ │ │ └── name: :+ │ │ ├── opening_loc: (5,2)-(5,4) = "do" │ │ └── closing_loc: (5,13)-(5,16) = "end" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m └── @ CallNode (location: (7,0)-(7,13)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -124,8 +124,8 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "+" + │ │ └── name: :+ │ ├── opening_loc: (7,2)-(7,3) = "{" │ └── closing_loc: (7,12)-(7,13) = "}" ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/numparam_outside_block.txt b/test/prism/snapshots/whitequark/numparam_outside_block.txt index 544d9c2744..d9e417f2a5 100644 --- a/test/prism/snapshots/whitequark/numparam_outside_block.txt +++ b/test/prism/snapshots/whitequark/numparam_outside_block.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "_1" + │ └── name: :_1 ├── @ SingletonClassNode (location: (3,0)-(3,21)) │ ├── locals: [] │ ├── class_keyword_loc: (3,0)-(3,5) = "class" @@ -27,7 +27,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── body: │ │ @ StatementsNode (location: (3,14)-(3,16)) │ │ └── body: (length: 1) @@ -40,7 +40,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "_1" + │ │ └── name: :_1 │ └── end_keyword_loc: (3,18)-(3,21) = "end" ├── @ ClassNode (location: (5,0)-(5,16)) │ ├── locals: [] @@ -62,7 +62,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "_1" + │ │ └── name: :_1 │ ├── end_keyword_loc: (5,13)-(5,16) = "end" │ └── name: :A ├── @ DefNode (location: (7,0)-(7,19)) @@ -83,7 +83,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "_1" + │ │ └── name: :_1 │ ├── locals: [] │ ├── def_keyword_loc: (7,0)-(7,3) = "def" │ ├── operator_loc: (7,8)-(7,9) = "." @@ -109,6 +109,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "_1" + │ └── name: :_1 ├── end_keyword_loc: (9,14)-(9,17) = "end" └── name: :A diff --git a/test/prism/snapshots/whitequark/op_asgn.txt b/test/prism/snapshots/whitequark/op_asgn.txt index 4594c1006e..69672acac5 100644 --- a/test/prism/snapshots/whitequark/op_asgn.txt +++ b/test/prism/snapshots/whitequark/op_asgn.txt @@ -14,15 +14,15 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: (1,4)-(1,5) = "A" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "A" - │ ├── write_name: "A=" + │ ├── read_name: :A + │ ├── write_name: :A= │ ├── operator: :+ │ ├── operator_loc: (1,6)-(1,8) = "+=" │ └── value: @@ -39,15 +39,15 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (3,3)-(3,4) = "." │ ├── message_loc: (3,4)-(3,5) = "a" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "a" - │ ├── write_name: "a=" + │ ├── read_name: :a + │ ├── write_name: :a= │ ├── operator: :+ │ ├── operator_loc: (3,6)-(3,8) = "+=" │ └── value: @@ -64,15 +64,15 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: (5,3)-(5,5) = "::" ├── message_loc: (5,5)-(5,6) = "a" ├── opening_loc: ∅ ├── arguments: ∅ ├── closing_loc: ∅ ├── flags: ∅ - ├── read_name: "a" - ├── write_name: "a=" + ├── read_name: :a + ├── write_name: :a= ├── operator: :+ ├── operator_loc: (5,7)-(5,9) = "+=" └── value: diff --git a/test/prism/snapshots/whitequark/op_asgn_cmd.txt b/test/prism/snapshots/whitequark/op_asgn_cmd.txt index c2af985002..985defd839 100644 --- a/test/prism/snapshots/whitequark/op_asgn_cmd.txt +++ b/test/prism/snapshots/whitequark/op_asgn_cmd.txt @@ -14,15 +14,15 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: (1,4)-(1,5) = "A" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "A" - │ ├── write_name: "A=" + │ ├── read_name: :A + │ ├── write_name: :A= │ ├── operator: :+ │ ├── operator_loc: (1,6)-(1,8) = "+=" │ └── value: @@ -43,11 +43,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ CallOperatorWriteNode (location: (3,0)-(3,14)) │ ├── receiver: │ │ @ CallNode (location: (3,0)-(3,3)) @@ -59,15 +59,15 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (3,3)-(3,4) = "." │ ├── message_loc: (3,4)-(3,5) = "a" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "a" - │ ├── write_name: "a=" + │ ├── read_name: :a + │ ├── write_name: :a= │ ├── operator: :+ │ ├── operator_loc: (3,6)-(3,8) = "+=" │ └── value: @@ -88,11 +88,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── @ ConstantPathOperatorWriteNode (location: (5,0)-(5,15)) │ ├── target: │ │ @ ConstantPathNode (location: (5,0)-(5,6)) @@ -106,7 +106,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── child: │ │ │ @ ConstantReadNode (location: (5,5)-(5,6)) │ │ │ └── name: :A @@ -130,11 +130,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "m" + │ │ └── name: :m │ └── operator: :+ └── @ CallOperatorWriteNode (location: (7,0)-(7,15)) ├── receiver: @@ -147,15 +147,15 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: (7,3)-(7,5) = "::" ├── message_loc: (7,5)-(7,6) = "a" ├── opening_loc: ∅ ├── arguments: ∅ ├── closing_loc: ∅ ├── flags: ∅ - ├── read_name: "a" - ├── write_name: "a=" + ├── read_name: :a + ├── write_name: :a= ├── operator: :+ ├── operator_loc: (7,7)-(7,9) = "+=" └── value: @@ -176,8 +176,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/op_asgn_index.txt b/test/prism/snapshots/whitequark/op_asgn_index.txt index f44bd7a4c4..106c5b3402 100644 --- a/test/prism/snapshots/whitequark/op_asgn_index.txt +++ b/test/prism/snapshots/whitequark/op_asgn_index.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,3)-(1,9) = "[0, 1]" ├── opening_loc: (1,3)-(1,4) = "[" @@ -27,8 +27,8 @@ │ └── flags: decimal ├── closing_loc: (1,8)-(1,9) = "]" ├── flags: ∅ - ├── read_name: "[]" - ├── write_name: "[]=" + ├── read_name: :[] + ├── write_name: :[]= ├── operator: :+ ├── operator_loc: (1,10)-(1,12) = "+=" └── value: diff --git a/test/prism/snapshots/whitequark/op_asgn_index_cmd.txt b/test/prism/snapshots/whitequark/op_asgn_index_cmd.txt index dac4a7970e..08b7d4cf1b 100644 --- a/test/prism/snapshots/whitequark/op_asgn_index_cmd.txt +++ b/test/prism/snapshots/whitequark/op_asgn_index_cmd.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,3)-(1,9) = "[0, 1]" ├── opening_loc: (1,3)-(1,4) = "[" @@ -27,8 +27,8 @@ │ └── flags: decimal ├── closing_loc: (1,8)-(1,9) = "]" ├── flags: ∅ - ├── read_name: "[]" - ├── write_name: "[]=" + ├── read_name: :[] + ├── write_name: :[]= ├── operator: :+ ├── operator_loc: (1,10)-(1,12) = "+=" └── value: @@ -49,8 +49,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/or.txt b/test/prism/snapshots/whitequark/or.txt index 713ca53ad7..9e755a1271 100644 --- a/test/prism/snapshots/whitequark/or.txt +++ b/test/prism/snapshots/whitequark/or.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── right: │ │ @ CallNode (location: (1,7)-(1,10)) │ │ ├── receiver: ∅ @@ -25,7 +25,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── operator_loc: (1,4)-(1,6) = "or" └── @ OrNode (location: (3,0)-(3,10)) ├── left: @@ -38,7 +38,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── right: │ @ CallNode (location: (3,7)-(3,10)) │ ├── receiver: ∅ @@ -49,5 +49,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar └── operator_loc: (3,4)-(3,6) = "||" diff --git a/test/prism/snapshots/whitequark/or_asgn.txt b/test/prism/snapshots/whitequark/or_asgn.txt index db0b4a5adc..e41c0892d8 100644 --- a/test/prism/snapshots/whitequark/or_asgn.txt +++ b/test/prism/snapshots/whitequark/or_asgn.txt @@ -14,15 +14,15 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: (1,4)-(1,5) = "a" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "a" - │ ├── write_name: "a=" + │ ├── read_name: :a + │ ├── write_name: :a= │ ├── operator_loc: (1,6)-(1,9) = "||=" │ └── value: │ @ IntegerNode (location: (1,10)-(1,11)) @@ -38,7 +38,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (3,3)-(3,9) = "[0, 1]" ├── opening_loc: (3,3)-(3,4) = "[" @@ -51,8 +51,8 @@ │ └── flags: decimal ├── closing_loc: (3,8)-(3,9) = "]" ├── flags: ∅ - ├── read_name: "[]" - ├── write_name: "[]=" + ├── read_name: :[] + ├── write_name: :[]= ├── operator_loc: (3,10)-(3,13) = "||=" └── value: @ IntegerNode (location: (3,14)-(3,15)) diff --git a/test/prism/snapshots/whitequark/parser_bug_272.txt b/test/prism/snapshots/whitequark/parser_bug_272.txt index e60da94c2a..bd88fb27c0 100644 --- a/test/prism/snapshots/whitequark/parser_bug_272.txt +++ b/test/prism/snapshots/whitequark/parser_bug_272.txt @@ -37,4 +37,4 @@ │ ├── opening_loc: (1,5)-(1,7) = "do" │ └── closing_loc: (1,12)-(1,15) = "end" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/whitequark/parser_bug_525.txt b/test/prism/snapshots/whitequark/parser_bug_525.txt index 9b85fcb785..dc7ddde663 100644 --- a/test/prism/snapshots/whitequark/parser_bug_525.txt +++ b/test/prism/snapshots/whitequark/parser_bug_525.txt @@ -30,7 +30,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "m2" + │ │ └── name: :m2 │ └── operator_loc: (1,6)-(1,8) = "=>" ├── closing_loc: ∅ ├── block: @@ -55,8 +55,8 @@ │ │ │ ├── opening_loc: (1,21)-(1,23) = "do" │ │ │ └── closing_loc: (1,24)-(1,27) = "end" │ │ ├── flags: ∅ - │ │ └── name: "m3" + │ │ └── name: :m3 │ ├── opening_loc: (1,12)-(1,14) = "do" │ └── closing_loc: (1,29)-(1,32) = "end" ├── flags: ∅ - └── name: "m1" + └── name: :m1 diff --git a/test/prism/snapshots/whitequark/parser_bug_604.txt b/test/prism/snapshots/whitequark/parser_bug_604.txt index 3e03983f6e..1be0b52b55 100644 --- a/test/prism/snapshots/whitequark/parser_bug_604.txt +++ b/test/prism/snapshots/whitequark/parser_bug_604.txt @@ -22,7 +22,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "a" + │ │ └── name: :a │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,4)-(1,5) = "+" │ ├── opening_loc: ∅ @@ -38,11 +38,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "b" + │ │ └── name: :b │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── closing_loc: ∅ ├── block: │ @ BlockNode (location: (1,8)-(1,14)) @@ -52,4 +52,4 @@ │ ├── opening_loc: (1,8)-(1,10) = "do" │ └── closing_loc: (1,11)-(1,14) = "end" ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt b/test/prism/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt index 1fc938e1ed..e1e452d49f 100644 --- a/test/prism/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt +++ b/test/prism/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt @@ -23,7 +23,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "+" + │ │ │ └── name: :+ │ │ └── @ SourceEncodingNode (location: (1,38)-(1,50)) │ ├── opening_loc: (1,13)-(1,14) = "[" │ └── closing_loc: (1,50)-(1,51) = "]" diff --git a/test/prism/snapshots/whitequark/procarg0.txt b/test/prism/snapshots/whitequark/procarg0.txt index 8518cbf811..72652f9ef9 100644 --- a/test/prism/snapshots/whitequark/procarg0.txt +++ b/test/prism/snapshots/whitequark/procarg0.txt @@ -39,7 +39,7 @@ │ │ ├── opening_loc: (1,2)-(1,3) = "{" │ │ └── closing_loc: (1,17)-(1,18) = "}" │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m └── @ CallNode (location: (3,0)-(3,11)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -70,4 +70,4 @@ │ ├── opening_loc: (3,2)-(3,3) = "{" │ └── closing_loc: (3,10)-(3,11) = "}" ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/regex_interp.txt b/test/prism/snapshots/whitequark/regex_interp.txt index 71d88cae70..35ec025343 100644 --- a/test/prism/snapshots/whitequark/regex_interp.txt +++ b/test/prism/snapshots/whitequark/regex_interp.txt @@ -26,7 +26,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── closing_loc: (1,9)-(1,10) = "}" │ └── @ StringNode (location: (1,10)-(1,13)) │ ├── flags: ∅ diff --git a/test/prism/snapshots/whitequark/resbody_list.txt b/test/prism/snapshots/whitequark/resbody_list.txt index 2611c028cb..4165aa2737 100644 --- a/test/prism/snapshots/whitequark/resbody_list.txt +++ b/test/prism/snapshots/whitequark/resbody_list.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── rescue_clause: │ @ RescueNode (location: (1,13)-(1,34)) │ ├── keyword_loc: (1,13)-(1,19) = "rescue" @@ -38,7 +38,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── consequent: ∅ ├── else_clause: ∅ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/whitequark/resbody_list_mrhs.txt b/test/prism/snapshots/whitequark/resbody_list_mrhs.txt index 72758b6c97..1273482001 100644 --- a/test/prism/snapshots/whitequark/resbody_list_mrhs.txt +++ b/test/prism/snapshots/whitequark/resbody_list_mrhs.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── rescue_clause: │ @ RescueNode (location: (1,13)-(1,39)) │ ├── keyword_loc: (1,13)-(1,19) = "rescue" @@ -33,7 +33,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── operator_loc: ∅ │ ├── reference: ∅ │ ├── statements: @@ -48,7 +48,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── consequent: ∅ ├── else_clause: ∅ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/whitequark/resbody_list_var.txt b/test/prism/snapshots/whitequark/resbody_list_var.txt index 27798cd610..c9c3174bae 100644 --- a/test/prism/snapshots/whitequark/resbody_list_var.txt +++ b/test/prism/snapshots/whitequark/resbody_list_var.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── rescue_clause: │ @ RescueNode (location: (1,13)-(1,34)) │ ├── keyword_loc: (1,13)-(1,19) = "rescue" @@ -31,7 +31,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── operator_loc: (1,24)-(1,26) = "=>" │ ├── reference: │ │ @ LocalVariableTargetNode (location: (1,27)-(1,29)) @@ -49,7 +49,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── consequent: ∅ ├── else_clause: ∅ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/whitequark/resbody_var.txt b/test/prism/snapshots/whitequark/resbody_var.txt index 1428a7e6c3..11585faf17 100644 --- a/test/prism/snapshots/whitequark/resbody_var.txt +++ b/test/prism/snapshots/whitequark/resbody_var.txt @@ -17,7 +17,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── rescue_clause: │ │ @ RescueNode (location: (1,13)-(1,31)) │ │ ├── keyword_loc: (1,13)-(1,19) = "rescue" @@ -38,7 +38,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── consequent: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ @@ -57,7 +57,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── rescue_clause: │ @ RescueNode (location: (3,13)-(3,30)) │ ├── keyword_loc: (3,13)-(3,19) = "rescue" @@ -79,7 +79,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── consequent: ∅ ├── else_clause: ∅ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/whitequark/rescue.txt b/test/prism/snapshots/whitequark/rescue.txt index 8bf45b892e..9464adb233 100644 --- a/test/prism/snapshots/whitequark/rescue.txt +++ b/test/prism/snapshots/whitequark/rescue.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── rescue_clause: │ @ RescueNode (location: (1,13)-(1,24)) │ ├── keyword_loc: (1,13)-(1,19) = "rescue" @@ -36,7 +36,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── consequent: ∅ ├── else_clause: ∅ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/whitequark/rescue_else.txt b/test/prism/snapshots/whitequark/rescue_else.txt index 9d39f38aef..4da165abf0 100644 --- a/test/prism/snapshots/whitequark/rescue_else.txt +++ b/test/prism/snapshots/whitequark/rescue_else.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── rescue_clause: │ @ RescueNode (location: (1,13)-(1,24)) │ ├── keyword_loc: (1,13)-(1,19) = "rescue" @@ -36,7 +36,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── consequent: ∅ ├── else_clause: │ @ ElseNode (location: (1,26)-(1,40)) @@ -53,7 +53,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── end_keyword_loc: (1,37)-(1,40) = "end" ├── ensure_clause: ∅ └── end_keyword_loc: (1,37)-(1,40) = "end" diff --git a/test/prism/snapshots/whitequark/rescue_else_ensure.txt b/test/prism/snapshots/whitequark/rescue_else_ensure.txt index f3d59057e7..d8f2454c1a 100644 --- a/test/prism/snapshots/whitequark/rescue_else_ensure.txt +++ b/test/prism/snapshots/whitequark/rescue_else_ensure.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── rescue_clause: │ @ RescueNode (location: (1,13)-(1,24)) │ ├── keyword_loc: (1,13)-(1,19) = "rescue" @@ -36,7 +36,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ └── consequent: ∅ ├── else_clause: │ @ ElseNode (location: (1,26)-(1,42)) @@ -53,7 +53,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── end_keyword_loc: (1,36)-(1,42) = "ensure" ├── ensure_clause: │ @ EnsureNode (location: (1,36)-(1,51)) @@ -70,6 +70,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── end_keyword_loc: (1,48)-(1,51) = "end" └── end_keyword_loc: (1,48)-(1,51) = "end" diff --git a/test/prism/snapshots/whitequark/rescue_ensure.txt b/test/prism/snapshots/whitequark/rescue_ensure.txt index f709474a7c..ead7dce44a 100644 --- a/test/prism/snapshots/whitequark/rescue_ensure.txt +++ b/test/prism/snapshots/whitequark/rescue_ensure.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── rescue_clause: │ @ RescueNode (location: (1,13)-(1,24)) │ ├── keyword_loc: (1,13)-(1,19) = "rescue" @@ -36,7 +36,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ └── consequent: ∅ ├── else_clause: ∅ ├── ensure_clause: @@ -54,6 +54,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── end_keyword_loc: (1,39)-(1,42) = "end" └── end_keyword_loc: (1,39)-(1,42) = "end" diff --git a/test/prism/snapshots/whitequark/rescue_mod.txt b/test/prism/snapshots/whitequark/rescue_mod.txt index a0d9cc6ceb..2e6e6b105b 100644 --- a/test/prism/snapshots/whitequark/rescue_mod.txt +++ b/test/prism/snapshots/whitequark/rescue_mod.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── keyword_loc: (1,5)-(1,11) = "rescue" └── rescue_expression: @ CallNode (location: (1,12)-(1,15)) @@ -26,4 +26,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: variable_call - └── name: "bar" + └── name: :bar diff --git a/test/prism/snapshots/whitequark/rescue_mod_asgn.txt b/test/prism/snapshots/whitequark/rescue_mod_asgn.txt index 85c68e719b..1ef5e233f6 100644 --- a/test/prism/snapshots/whitequark/rescue_mod_asgn.txt +++ b/test/prism/snapshots/whitequark/rescue_mod_asgn.txt @@ -19,7 +19,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── keyword_loc: (1,11)-(1,17) = "rescue" │ └── rescue_expression: │ @ CallNode (location: (1,18)-(1,21)) @@ -31,5 +31,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar └── operator_loc: (1,4)-(1,5) = "=" diff --git a/test/prism/snapshots/whitequark/rescue_mod_masgn.txt b/test/prism/snapshots/whitequark/rescue_mod_masgn.txt index bf2db50258..c7d96c45c2 100644 --- a/test/prism/snapshots/whitequark/rescue_mod_masgn.txt +++ b/test/prism/snapshots/whitequark/rescue_mod_masgn.txt @@ -26,7 +26,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── keyword_loc: (1,16)-(1,22) = "rescue" └── rescue_expression: @ ArrayNode (location: (1,23)-(1,29)) diff --git a/test/prism/snapshots/whitequark/rescue_mod_op_assign.txt b/test/prism/snapshots/whitequark/rescue_mod_op_assign.txt index 32aa9d3880..b8343159ad 100644 --- a/test/prism/snapshots/whitequark/rescue_mod_op_assign.txt +++ b/test/prism/snapshots/whitequark/rescue_mod_op_assign.txt @@ -18,7 +18,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── keyword_loc: (1,12)-(1,18) = "rescue" │ └── rescue_expression: │ @ CallNode (location: (1,19)-(1,22)) @@ -30,7 +30,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── name: :foo ├── operator: :+ └── depth: 0 diff --git a/test/prism/snapshots/whitequark/rescue_without_begin_end.txt b/test/prism/snapshots/whitequark/rescue_without_begin_end.txt index 250b63fdda..9978f9a3db 100644 --- a/test/prism/snapshots/whitequark/rescue_without_begin_end.txt +++ b/test/prism/snapshots/whitequark/rescue_without_begin_end.txt @@ -29,7 +29,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── rescue_clause: │ │ │ @ RescueNode (location: (1,14)-(1,25)) │ │ │ ├── keyword_loc: (1,14)-(1,20) = "rescue" @@ -48,7 +48,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── consequent: ∅ │ │ ├── else_clause: ∅ │ │ ├── ensure_clause: ∅ @@ -56,4 +56,4 @@ │ ├── opening_loc: (1,5)-(1,7) = "do" │ └── closing_loc: (1,27)-(1,30) = "end" ├── flags: ∅ - └── name: "meth" + └── name: :meth diff --git a/test/prism/snapshots/whitequark/return.txt b/test/prism/snapshots/whitequark/return.txt index 5bf8d4ca10..2013088e96 100644 --- a/test/prism/snapshots/whitequark/return.txt +++ b/test/prism/snapshots/whitequark/return.txt @@ -20,7 +20,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── @ ReturnNode (location: (5,0)-(5,8)) │ ├── keyword_loc: (5,0)-(5,6) = "return" │ └── arguments: @@ -48,6 +48,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── opening_loc: (7,6)-(7,7) = "(" └── closing_loc: (7,10)-(7,11) = ")" diff --git a/test/prism/snapshots/whitequark/return_block.txt b/test/prism/snapshots/whitequark/return_block.txt index 91cd334f06..8f5db24522 100644 --- a/test/prism/snapshots/whitequark/return_block.txt +++ b/test/prism/snapshots/whitequark/return_block.txt @@ -25,7 +25,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── closing_loc: ∅ ├── block: │ @ BlockNode (location: (1,15)-(1,21)) @@ -35,4 +35,4 @@ │ ├── opening_loc: (1,15)-(1,17) = "do" │ └── closing_loc: (1,18)-(1,21) = "end" ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/ruby_bug_10653.txt b/test/prism/snapshots/whitequark/ruby_bug_10653.txt index edd3269804..6e008d7a10 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_10653.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_10653.txt @@ -25,7 +25,7 @@ │ │ │ ├── opening_loc: (1,14)-(1,16) = "do" │ │ │ └── closing_loc: (1,17)-(1,20) = "end" │ │ ├── flags: ∅ - │ │ └── name: "raise" + │ │ └── name: :raise │ ├── consequent: │ │ @ ElseNode (location: (1,21)-(1,33)) │ │ ├── else_keyword_loc: (1,21)-(1,22) = ":" @@ -47,7 +47,7 @@ │ │ │ │ ├── opening_loc: (1,27)-(1,29) = "do" │ │ │ │ └── closing_loc: (1,30)-(1,33) = "end" │ │ │ ├── flags: ∅ - │ │ │ └── name: "tap" + │ │ │ └── name: :tap │ │ └── end_keyword_loc: ∅ │ └── end_keyword_loc: ∅ ├── @ IfNode (location: (3,0)-(3,25)) @@ -72,7 +72,7 @@ │ │ │ ├── opening_loc: (3,14)-(3,15) = "{" │ │ │ └── closing_loc: (3,15)-(3,16) = "}" │ │ ├── flags: ∅ - │ │ └── name: "raise" + │ │ └── name: :raise │ ├── consequent: │ │ @ ElseNode (location: (3,17)-(3,25)) │ │ ├── else_keyword_loc: (3,17)-(3,18) = ":" @@ -94,7 +94,7 @@ │ │ │ │ ├── opening_loc: (3,23)-(3,24) = "{" │ │ │ │ └── closing_loc: (3,24)-(3,25) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "tap" + │ │ │ └── name: :tap │ │ └── end_keyword_loc: ∅ │ └── end_keyword_loc: ∅ └── @ IfNode (location: (5,0)-(5,31)) @@ -149,11 +149,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "p" + │ │ │ └── name: :p │ │ ├── opening_loc: (5,13)-(5,15) = "do" │ │ └── closing_loc: (5,24)-(5,27) = "end" │ ├── flags: ∅ - │ └── name: "tap" + │ └── name: :tap ├── consequent: │ @ ElseNode (location: (5,28)-(5,31)) │ ├── else_keyword_loc: (5,28)-(5,29) = ":" diff --git a/test/prism/snapshots/whitequark/ruby_bug_11107.txt b/test/prism/snapshots/whitequark/ruby_bug_11107.txt index 28aa66ee5a..a0453f4a3d 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11107.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11107.txt @@ -40,8 +40,8 @@ │ │ ├── opening_loc: (1,14)-(1,16) = "do" │ │ └── closing_loc: (1,17)-(1,20) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/whitequark/ruby_bug_11380.txt b/test/prism/snapshots/whitequark/ruby_bug_11380.txt index 4453caa63d..5ac3d67da1 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11380.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11380.txt @@ -47,4 +47,4 @@ │ ├── opening_loc: (1,22)-(1,24) = "do" │ └── closing_loc: (1,25)-(1,28) = "end" ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873.txt b/test/prism/snapshots/whitequark/ruby_bug_11873.txt index e7fdb64e9e..432c369587 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11873.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11873.txt @@ -36,15 +36,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (1,7)-(1,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ StringNode (location: (1,10)-(1,13)) │ │ ├── flags: ∅ │ │ ├── opening_loc: (1,10)-(1,11) = "\"" @@ -60,7 +60,7 @@ │ │ ├── opening_loc: (1,14)-(1,16) = "do" │ │ └── closing_loc: (1,17)-(1,20) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (3,0)-(3,20)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -94,15 +94,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (3,7)-(3,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RegularExpressionNode (location: (3,10)-(3,13)) │ │ ├── opening_loc: (3,10)-(3,11) = "/" │ │ ├── content_loc: (3,11)-(3,12) = "x" @@ -118,7 +118,7 @@ │ │ ├── opening_loc: (3,14)-(3,16) = "do" │ │ └── closing_loc: (3,17)-(3,20) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (5,0)-(5,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -152,15 +152,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (5,7)-(5,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RegularExpressionNode (location: (5,10)-(5,14)) │ │ ├── opening_loc: (5,10)-(5,11) = "/" │ │ ├── content_loc: (5,11)-(5,12) = "x" @@ -176,7 +176,7 @@ │ │ ├── opening_loc: (5,15)-(5,17) = "do" │ │ └── closing_loc: (5,18)-(5,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (7,0)-(7,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -210,15 +210,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: (7,7)-(7,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (7,8)-(7,9) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ StringNode (location: (7,11)-(7,14)) │ │ ├── flags: ∅ │ │ ├── opening_loc: (7,11)-(7,12) = "\"" @@ -234,7 +234,7 @@ │ │ ├── opening_loc: (7,15)-(7,17) = "do" │ │ └── closing_loc: (7,18)-(7,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (9,0)-(9,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -268,15 +268,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: (9,7)-(9,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (9,8)-(9,9) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RegularExpressionNode (location: (9,11)-(9,14)) │ │ ├── opening_loc: (9,11)-(9,12) = "/" │ │ ├── content_loc: (9,12)-(9,13) = "x" @@ -292,7 +292,7 @@ │ │ ├── opening_loc: (9,15)-(9,17) = "do" │ │ └── closing_loc: (9,18)-(9,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (11,0)-(11,22)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -326,15 +326,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: (11,7)-(11,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (11,8)-(11,9) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RegularExpressionNode (location: (11,11)-(11,15)) │ │ ├── opening_loc: (11,11)-(11,12) = "/" │ │ ├── content_loc: (11,12)-(11,13) = "x" @@ -350,7 +350,7 @@ │ │ ├── opening_loc: (11,16)-(11,18) = "do" │ │ └── closing_loc: (11,19)-(11,22) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (13,0)-(13,20)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -390,15 +390,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (13,3)-(13,4) = "{" │ │ │ │ └── closing_loc: (13,7)-(13,8) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ StringNode (location: (13,10)-(13,13)) │ │ ├── flags: ∅ │ │ ├── opening_loc: (13,10)-(13,11) = "\"" @@ -414,7 +414,7 @@ │ │ ├── opening_loc: (13,14)-(13,16) = "do" │ │ └── closing_loc: (13,17)-(13,20) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (15,0)-(15,20)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -454,15 +454,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (15,3)-(15,4) = "{" │ │ │ │ └── closing_loc: (15,7)-(15,8) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RegularExpressionNode (location: (15,10)-(15,13)) │ │ ├── opening_loc: (15,10)-(15,11) = "/" │ │ ├── content_loc: (15,11)-(15,12) = "x" @@ -478,7 +478,7 @@ │ │ ├── opening_loc: (15,14)-(15,16) = "do" │ │ └── closing_loc: (15,17)-(15,20) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (17,0)-(17,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -518,15 +518,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (17,3)-(17,4) = "{" │ │ │ │ └── closing_loc: (17,7)-(17,8) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RegularExpressionNode (location: (17,10)-(17,14)) │ │ ├── opening_loc: (17,10)-(17,11) = "/" │ │ ├── content_loc: (17,11)-(17,12) = "x" @@ -542,7 +542,7 @@ │ │ ├── opening_loc: (17,15)-(17,17) = "do" │ │ └── closing_loc: (17,18)-(17,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (19,0)-(19,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -582,15 +582,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: (19,7)-(19,8) = ")" │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (19,3)-(19,4) = "{" │ │ │ │ └── closing_loc: (19,8)-(19,9) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ StringNode (location: (19,11)-(19,14)) │ │ ├── flags: ∅ │ │ ├── opening_loc: (19,11)-(19,12) = "\"" @@ -606,7 +606,7 @@ │ │ ├── opening_loc: (19,15)-(19,17) = "do" │ │ └── closing_loc: (19,18)-(19,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (21,0)-(21,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -646,15 +646,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: (21,7)-(21,8) = ")" │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (21,3)-(21,4) = "{" │ │ │ │ └── closing_loc: (21,8)-(21,9) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RegularExpressionNode (location: (21,11)-(21,14)) │ │ ├── opening_loc: (21,11)-(21,12) = "/" │ │ ├── content_loc: (21,12)-(21,13) = "x" @@ -670,7 +670,7 @@ │ │ ├── opening_loc: (21,15)-(21,17) = "do" │ │ └── closing_loc: (21,18)-(21,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (23,0)-(23,22)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -710,15 +710,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: (23,7)-(23,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── opening_loc: (23,3)-(23,4) = "{" │ │ │ └── closing_loc: (23,8)-(23,9) = "}" │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ └── @ RegularExpressionNode (location: (23,11)-(23,15)) │ ├── opening_loc: (23,11)-(23,12) = "/" │ ├── content_loc: (23,12)-(23,13) = "x" @@ -734,4 +734,4 @@ │ ├── opening_loc: (23,16)-(23,18) = "do" │ └── closing_loc: (23,19)-(23,22) = "end" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt b/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt index c5d24ac5f7..7881344bb4 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt @@ -36,15 +36,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (1,7)-(1,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ IntegerNode (location: (1,10)-(1,11)) │ │ └── flags: decimal │ ├── closing_loc: ∅ @@ -56,7 +56,7 @@ │ │ ├── opening_loc: (1,12)-(1,14) = "do" │ │ └── closing_loc: (1,15)-(1,18) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (3,0)-(3,20)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -90,15 +90,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (3,7)-(3,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ FloatNode (location: (3,10)-(3,13)) │ ├── closing_loc: ∅ │ ├── block: @@ -109,7 +109,7 @@ │ │ ├── opening_loc: (3,14)-(3,16) = "do" │ │ └── closing_loc: (3,17)-(3,20) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (5,0)-(5,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -143,15 +143,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (5,7)-(5,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ ImaginaryNode (location: (5,10)-(5,14)) │ │ └── numeric: │ │ @ FloatNode (location: (5,10)-(5,13)) @@ -164,7 +164,7 @@ │ │ ├── opening_loc: (5,15)-(5,17) = "do" │ │ └── closing_loc: (5,18)-(5,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (7,0)-(7,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -198,15 +198,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (7,7)-(7,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RationalNode (location: (7,10)-(7,14)) │ │ └── numeric: │ │ @ FloatNode (location: (7,10)-(7,13)) @@ -219,7 +219,7 @@ │ │ ├── opening_loc: (7,15)-(7,17) = "do" │ │ └── closing_loc: (7,18)-(7,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (9,0)-(9,19)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -253,15 +253,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (9,7)-(9,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ SymbolNode (location: (9,10)-(9,12)) │ │ ├── opening_loc: (9,10)-(9,11) = ":" │ │ ├── value_loc: (9,11)-(9,12) = "e" @@ -276,7 +276,7 @@ │ │ ├── opening_loc: (9,13)-(9,15) = "do" │ │ └── closing_loc: (9,16)-(9,19) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (11,0)-(11,19)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -310,15 +310,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: (11,7)-(11,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (11,8)-(11,9) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ IntegerNode (location: (11,11)-(11,12)) │ │ └── flags: decimal │ ├── closing_loc: ∅ @@ -330,7 +330,7 @@ │ │ ├── opening_loc: (11,13)-(11,15) = "do" │ │ └── closing_loc: (11,16)-(11,19) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (13,0)-(13,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -364,15 +364,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: (13,7)-(13,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (13,8)-(13,9) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ FloatNode (location: (13,11)-(13,14)) │ ├── closing_loc: ∅ │ ├── block: @@ -383,7 +383,7 @@ │ │ ├── opening_loc: (13,15)-(13,17) = "do" │ │ └── closing_loc: (13,18)-(13,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (15,0)-(15,22)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -417,15 +417,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: (15,7)-(15,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (15,8)-(15,9) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ ImaginaryNode (location: (15,11)-(15,15)) │ │ └── numeric: │ │ @ FloatNode (location: (15,11)-(15,14)) @@ -438,7 +438,7 @@ │ │ ├── opening_loc: (15,16)-(15,18) = "do" │ │ └── closing_loc: (15,19)-(15,22) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (17,0)-(17,22)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -472,15 +472,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: (17,7)-(17,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (17,8)-(17,9) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RationalNode (location: (17,11)-(17,15)) │ │ └── numeric: │ │ @ FloatNode (location: (17,11)-(17,14)) @@ -493,7 +493,7 @@ │ │ ├── opening_loc: (17,16)-(17,18) = "do" │ │ └── closing_loc: (17,19)-(17,22) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (19,0)-(19,20)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -527,15 +527,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: (19,7)-(19,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── closing_loc: (19,8)-(19,9) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ SymbolNode (location: (19,11)-(19,13)) │ │ ├── opening_loc: (19,11)-(19,12) = ":" │ │ ├── value_loc: (19,12)-(19,13) = "e" @@ -550,7 +550,7 @@ │ │ ├── opening_loc: (19,14)-(19,16) = "do" │ │ └── closing_loc: (19,17)-(19,20) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (21,0)-(21,18)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -590,15 +590,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (21,3)-(21,4) = "{" │ │ │ │ └── closing_loc: (21,7)-(21,8) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ IntegerNode (location: (21,10)-(21,11)) │ │ └── flags: decimal │ ├── closing_loc: ∅ @@ -610,7 +610,7 @@ │ │ ├── opening_loc: (21,12)-(21,14) = "do" │ │ └── closing_loc: (21,15)-(21,18) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (23,0)-(23,20)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -650,15 +650,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (23,3)-(23,4) = "{" │ │ │ │ └── closing_loc: (23,7)-(23,8) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ FloatNode (location: (23,10)-(23,13)) │ ├── closing_loc: ∅ │ ├── block: @@ -669,7 +669,7 @@ │ │ ├── opening_loc: (23,14)-(23,16) = "do" │ │ └── closing_loc: (23,17)-(23,20) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (25,0)-(25,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -709,15 +709,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (25,3)-(25,4) = "{" │ │ │ │ └── closing_loc: (25,7)-(25,8) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ ImaginaryNode (location: (25,10)-(25,14)) │ │ └── numeric: │ │ @ FloatNode (location: (25,10)-(25,13)) @@ -730,7 +730,7 @@ │ │ ├── opening_loc: (25,15)-(25,17) = "do" │ │ └── closing_loc: (25,18)-(25,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (27,0)-(27,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -770,15 +770,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (27,3)-(27,4) = "{" │ │ │ │ └── closing_loc: (27,7)-(27,8) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RationalNode (location: (27,10)-(27,14)) │ │ └── numeric: │ │ @ FloatNode (location: (27,10)-(27,13)) @@ -791,7 +791,7 @@ │ │ ├── opening_loc: (27,15)-(27,17) = "do" │ │ └── closing_loc: (27,18)-(27,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (29,0)-(29,19)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -831,15 +831,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (29,3)-(29,4) = "{" │ │ │ │ └── closing_loc: (29,7)-(29,8) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ SymbolNode (location: (29,10)-(29,12)) │ │ ├── opening_loc: (29,10)-(29,11) = ":" │ │ ├── value_loc: (29,11)-(29,12) = "e" @@ -854,7 +854,7 @@ │ │ ├── opening_loc: (29,13)-(29,15) = "do" │ │ └── closing_loc: (29,16)-(29,19) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (31,0)-(31,19)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -894,15 +894,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: (31,7)-(31,8) = ")" │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (31,3)-(31,4) = "{" │ │ │ │ └── closing_loc: (31,8)-(31,9) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ IntegerNode (location: (31,11)-(31,12)) │ │ └── flags: decimal │ ├── closing_loc: ∅ @@ -914,7 +914,7 @@ │ │ ├── opening_loc: (31,13)-(31,15) = "do" │ │ └── closing_loc: (31,16)-(31,19) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (33,0)-(33,21)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -954,15 +954,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: (33,7)-(33,8) = ")" │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (33,3)-(33,4) = "{" │ │ │ │ └── closing_loc: (33,8)-(33,9) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ FloatNode (location: (33,11)-(33,14)) │ ├── closing_loc: ∅ │ ├── block: @@ -973,7 +973,7 @@ │ │ ├── opening_loc: (33,15)-(33,17) = "do" │ │ └── closing_loc: (33,18)-(33,21) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (35,0)-(35,22)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1013,15 +1013,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: (35,7)-(35,8) = ")" │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (35,3)-(35,4) = "{" │ │ │ │ └── closing_loc: (35,8)-(35,9) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ ImaginaryNode (location: (35,11)-(35,15)) │ │ └── numeric: │ │ @ FloatNode (location: (35,11)-(35,14)) @@ -1034,7 +1034,7 @@ │ │ ├── opening_loc: (35,16)-(35,18) = "do" │ │ └── closing_loc: (35,19)-(35,22) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a ├── @ CallNode (location: (37,0)-(37,22)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -1074,15 +1074,15 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "d" + │ │ │ │ │ │ └── name: :d │ │ │ │ │ ├── closing_loc: (37,7)-(37,8) = ")" │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "c" + │ │ │ │ │ └── name: :c │ │ │ │ ├── opening_loc: (37,3)-(37,4) = "{" │ │ │ │ └── closing_loc: (37,8)-(37,9) = "}" │ │ │ ├── flags: ∅ - │ │ │ └── name: "b" + │ │ │ └── name: :b │ │ └── @ RationalNode (location: (37,11)-(37,15)) │ │ └── numeric: │ │ @ FloatNode (location: (37,11)-(37,14)) @@ -1095,7 +1095,7 @@ │ │ ├── opening_loc: (37,16)-(37,18) = "do" │ │ └── closing_loc: (37,19)-(37,22) = "end" │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ CallNode (location: (39,0)-(39,20)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -1135,15 +1135,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "d" + │ │ │ │ │ └── name: :d │ │ │ │ ├── closing_loc: (39,7)-(39,8) = ")" │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "c" + │ │ │ │ └── name: :c │ │ │ ├── opening_loc: (39,3)-(39,4) = "{" │ │ │ └── closing_loc: (39,8)-(39,9) = "}" │ │ ├── flags: ∅ - │ │ └── name: "b" + │ │ └── name: :b │ └── @ SymbolNode (location: (39,11)-(39,13)) │ ├── opening_loc: (39,11)-(39,12) = ":" │ ├── value_loc: (39,12)-(39,13) = "e" @@ -1158,4 +1158,4 @@ │ ├── opening_loc: (39,14)-(39,16) = "do" │ └── closing_loc: (39,17)-(39,20) = "end" ├── flags: ∅ - └── name: "a" + └── name: :a diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt b/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt index 89323d4778..d119a60d69 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt @@ -42,11 +42,11 @@ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ │ └── name: "p" + │ │ │ │ │ │ └── name: :p │ │ │ │ │ ├── closing_loc: (1,7)-(1,8) = ")" │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: ∅ - │ │ │ │ │ └── name: "p" + │ │ │ │ │ └── name: :p │ │ │ │ └── @ CallNode (location: (1,9)-(1,12)) │ │ │ │ ├── receiver: ∅ │ │ │ │ ├── call_operator_loc: ∅ @@ -64,15 +64,15 @@ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: "p" + │ │ │ │ │ └── name: :p │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: ∅ - │ │ │ │ └── name: "p" + │ │ │ │ └── name: :p │ │ │ ├── opening_loc: (1,3)-(1,4) = "{" │ │ │ └── closing_loc: (1,12)-(1,13) = "}" │ │ ├── flags: ∅ - │ │ └── name: "p" + │ │ └── name: :p │ └── @ CallNode (location: (1,15)-(1,18)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -82,7 +82,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "tap" + │ └── name: :tap ├── closing_loc: ∅ ├── block: │ @ BlockNode (location: (1,19)-(1,25)) @@ -92,4 +92,4 @@ │ ├── opening_loc: (1,19)-(1,21) = "do" │ └── closing_loc: (1,22)-(1,25) = "end" ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/whitequark/ruby_bug_11989.txt b/test/prism/snapshots/whitequark/ruby_bug_11989.txt index b271785d13..2d56025693 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11989.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11989.txt @@ -20,4 +20,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/whitequark/ruby_bug_11990.txt b/test/prism/snapshots/whitequark/ruby_bug_11990.txt index 08179b6c76..f0fc8432bf 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11990.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11990.txt @@ -29,4 +29,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "p" + └── name: :p diff --git a/test/prism/snapshots/whitequark/ruby_bug_12073.txt b/test/prism/snapshots/whitequark/ruby_bug_12073.txt index 8d87e2ff0d..0087ab4dc7 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_12073.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_12073.txt @@ -35,7 +35,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a" + │ └── name: :a └── @ DefNode (location: (3,0)-(3,34)) ├── name: :foo ├── name_loc: (3,4)-(3,7) = "foo" @@ -79,7 +79,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "raise" + │ └── name: :raise ├── locals: [:raise] ├── def_keyword_loc: (3,0)-(3,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/ruby_bug_12402.txt b/test/prism/snapshots/whitequark/ruby_bug_12402.txt index 8b3ca59827..7ceb28e925 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_12402.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_12402.txt @@ -26,14 +26,14 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── keyword_loc: (1,17)-(1,23) = "rescue" │ │ │ └── rescue_expression: │ │ │ @ NilNode (location: (1,24)-(1,27)) │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "raise" + │ │ └── name: :raise │ ├── name: :foo │ ├── operator: :+ │ └── depth: 0 @@ -60,11 +60,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── closing_loc: (3,16)-(3,17) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "raise" + │ │ │ └── name: :raise │ │ ├── keyword_loc: (3,18)-(3,24) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (3,25)-(3,28)) @@ -95,14 +95,14 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── keyword_loc: (5,16)-(5,22) = "rescue" │ │ │ └── rescue_expression: │ │ │ @ NilNode (location: (5,23)-(5,26)) │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "raise" + │ │ └── name: :raise │ └── operator_loc: (5,4)-(5,5) = "=" ├── @ LocalVariableWriteNode (location: (7,0)-(7,27)) │ ├── name: :foo @@ -128,11 +128,11 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ ├── closing_loc: (7,15)-(7,16) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "raise" + │ │ │ └── name: :raise │ │ ├── keyword_loc: (7,17)-(7,23) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (7,24)-(7,27)) @@ -148,8 +148,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "C" - │ ├── write_name: "C=" + │ ├── read_name: :C + │ ├── write_name: :C= │ ├── operator: :+ │ ├── operator_loc: (9,6)-(9,8) = "+=" │ └── value: @@ -172,14 +172,14 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── keyword_loc: (9,19)-(9,25) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (9,26)-(9,29)) │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "raise" + │ └── name: :raise ├── @ CallOperatorWriteNode (location: (11,0)-(11,30)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (11,0)-(11,3)) @@ -191,8 +191,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "C" - │ ├── write_name: "C=" + │ ├── read_name: :C + │ ├── write_name: :C= │ ├── operator: :+ │ ├── operator_loc: (11,6)-(11,8) = "+=" │ └── value: @@ -215,11 +215,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── closing_loc: (11,18)-(11,19) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "raise" + │ │ └── name: :raise │ ├── keyword_loc: (11,20)-(11,26) = "rescue" │ └── rescue_expression: │ @ NilNode (location: (11,27)-(11,30)) @@ -234,8 +234,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "m" - │ ├── write_name: "m=" + │ ├── read_name: :m + │ ├── write_name: :m= │ ├── operator: :+ │ ├── operator_loc: (13,6)-(13,8) = "+=" │ └── value: @@ -258,14 +258,14 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── keyword_loc: (13,19)-(13,25) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (13,26)-(13,29)) │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "raise" + │ └── name: :raise ├── @ CallOperatorWriteNode (location: (15,0)-(15,30)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (15,0)-(15,3)) @@ -277,8 +277,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "m" - │ ├── write_name: "m=" + │ ├── read_name: :m + │ ├── write_name: :m= │ ├── operator: :+ │ ├── operator_loc: (15,6)-(15,8) = "+=" │ └── value: @@ -301,11 +301,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── closing_loc: (15,18)-(15,19) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "raise" + │ │ └── name: :raise │ ├── keyword_loc: (15,20)-(15,26) = "rescue" │ └── rescue_expression: │ @ NilNode (location: (15,27)-(15,30)) @@ -341,14 +341,14 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── keyword_loc: (17,21)-(17,27) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (17,28)-(17,31)) │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "raise" + │ └── name: :raise ├── @ ConstantPathOrWriteNode (location: (19,0)-(19,32)) │ ├── target: │ │ @ ConstantPathNode (location: (19,0)-(19,6)) @@ -381,11 +381,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── closing_loc: (19,20)-(19,21) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "raise" + │ │ └── name: :raise │ ├── keyword_loc: (19,22)-(19,28) = "rescue" │ └── rescue_expression: │ @ NilNode (location: (19,29)-(19,32)) @@ -400,8 +400,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "m" - │ ├── write_name: "m=" + │ ├── read_name: :m + │ ├── write_name: :m= │ ├── operator: :+ │ ├── operator_loc: (21,7)-(21,9) = "+=" │ └── value: @@ -424,14 +424,14 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── keyword_loc: (21,20)-(21,26) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (21,27)-(21,30)) │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "raise" + │ └── name: :raise ├── @ CallOperatorWriteNode (location: (23,0)-(23,31)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (23,0)-(23,3)) @@ -443,8 +443,8 @@ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── flags: ∅ - │ ├── read_name: "m" - │ ├── write_name: "m=" + │ ├── read_name: :m + │ ├── write_name: :m= │ ├── operator: :+ │ ├── operator_loc: (23,7)-(23,9) = "+=" │ └── value: @@ -467,11 +467,11 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── closing_loc: (23,19)-(23,20) = ")" │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "raise" + │ │ └── name: :raise │ ├── keyword_loc: (23,21)-(23,27) = "rescue" │ └── rescue_expression: │ @ NilNode (location: (23,28)-(23,31)) @@ -490,8 +490,8 @@ │ │ └── flags: decimal │ ├── closing_loc: (25,5)-(25,6) = "]" │ ├── flags: ∅ - │ ├── read_name: "[]" - │ ├── write_name: "[]=" + │ ├── read_name: :[] + │ ├── write_name: :[]= │ ├── operator: :+ │ ├── operator_loc: (25,7)-(25,9) = "+=" │ └── value: @@ -514,14 +514,14 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── keyword_loc: (25,20)-(25,26) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (25,27)-(25,30)) │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "raise" + │ └── name: :raise └── @ CallOperatorWriteNode (location: (27,0)-(27,31)) ├── receiver: │ @ LocalVariableReadNode (location: (27,0)-(27,3)) @@ -537,8 +537,8 @@ │ └── flags: decimal ├── closing_loc: (27,5)-(27,6) = "]" ├── flags: ∅ - ├── read_name: "[]" - ├── write_name: "[]=" + ├── read_name: :[] + ├── write_name: :[]= ├── operator: :+ ├── operator_loc: (27,7)-(27,9) = "+=" └── value: @@ -561,11 +561,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (27,19)-(27,20) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "raise" + │ └── name: :raise ├── keyword_loc: (27,21)-(27,27) = "rescue" └── rescue_expression: @ NilNode (location: (27,28)-(27,31)) diff --git a/test/prism/snapshots/whitequark/ruby_bug_12669.txt b/test/prism/snapshots/whitequark/ruby_bug_12669.txt index f9380994e9..e08fd3e84b 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_12669.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_12669.txt @@ -27,7 +27,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "raise" + │ │ │ └── name: :raise │ │ ├── name: :b │ │ ├── operator: :+ │ │ └── depth: 0 @@ -59,7 +59,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "raise" + │ │ │ └── name: :raise │ │ └── operator_loc: (3,7)-(3,8) = "=" │ ├── name: :a │ ├── operator: :+ @@ -89,7 +89,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ - │ │ │ └── name: "raise" + │ │ │ └── name: :raise │ │ ├── name: :b │ │ ├── operator: :+ │ │ └── depth: 0 @@ -120,6 +120,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "raise" + │ │ └── name: :raise │ └── operator_loc: (7,6)-(7,7) = "=" └── operator_loc: (7,2)-(7,3) = "=" diff --git a/test/prism/snapshots/whitequark/ruby_bug_12686.txt b/test/prism/snapshots/whitequark/ruby_bug_12686.txt index c5d14532cb..725ca6f91a 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_12686.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_12686.txt @@ -26,7 +26,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "g" + │ │ │ └── name: :g │ │ ├── keyword_loc: (1,5)-(1,11) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (1,12)-(1,15)) @@ -35,4 +35,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "f" + └── name: :f diff --git a/test/prism/snapshots/whitequark/ruby_bug_13547.txt b/test/prism/snapshots/whitequark/ruby_bug_13547.txt index e370f58367..d5c733ae3f 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_13547.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_13547.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth ├── call_operator_loc: ∅ ├── message_loc: (1,4)-(1,6) = "[]" ├── opening_loc: (1,4)-(1,5) = "[" @@ -28,4 +28,4 @@ │ ├── opening_loc: (1,7)-(1,8) = "{" │ └── closing_loc: (1,8)-(1,9) = "}" ├── flags: ∅ - └── name: "[]" + └── name: :[] diff --git a/test/prism/snapshots/whitequark/ruby_bug_14690.txt b/test/prism/snapshots/whitequark/ruby_bug_14690.txt index 949de2297a..5c4b0acb6a 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_14690.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_14690.txt @@ -40,7 +40,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "a" + │ │ │ └── name: :a │ │ ├── closing_loc: (1,12)-(1,13) = ")" │ │ ├── block: │ │ │ @ BlockNode (location: (1,14)-(1,21)) @@ -50,8 +50,8 @@ │ │ │ ├── opening_loc: (1,14)-(1,16) = "do" │ │ │ └── closing_loc: (1,18)-(1,21) = "end" │ │ ├── flags: ∅ - │ │ └── name: "m" + │ │ └── name: :m │ ├── opening_loc: (1,7)-(1,8) = "{" │ └── closing_loc: (1,22)-(1,23) = "}" ├── flags: ∅ - └── name: "let" + └── name: :let diff --git a/test/prism/snapshots/whitequark/ruby_bug_15789.txt b/test/prism/snapshots/whitequark/ruby_bug_15789.txt index 2de0b0f7a9..ada0dd5a0e 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_15789.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_15789.txt @@ -56,7 +56,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m └── @ CallNode (location: (3,0)-(3,19)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -109,4 +109,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "m" + └── name: :m diff --git a/test/prism/snapshots/whitequark/sclass.txt b/test/prism/snapshots/whitequark/sclass.txt index 81584a8ca6..726c1e9d67 100644 --- a/test/prism/snapshots/whitequark/sclass.txt +++ b/test/prism/snapshots/whitequark/sclass.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── body: │ @ StatementsNode (location: (1,14)-(1,17)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/whitequark/send_attr_asgn.txt b/test/prism/snapshots/whitequark/send_attr_asgn.txt index 2f005fb4dc..cf91e0ebcb 100644 --- a/test/prism/snapshots/whitequark/send_attr_asgn.txt +++ b/test/prism/snapshots/whitequark/send_attr_asgn.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: (1,4)-(1,5) = "A" │ ├── opening_loc: ∅ @@ -26,7 +26,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "A=" + │ └── name: :A= ├── @ CallNode (location: (3,0)-(3,9)) │ ├── receiver: │ │ @ CallNode (location: (3,0)-(3,3)) @@ -38,7 +38,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (3,3)-(3,4) = "." │ ├── message_loc: (3,4)-(3,5) = "a" │ ├── opening_loc: ∅ @@ -50,7 +50,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "a=" + │ └── name: :a= ├── @ ConstantPathWriteNode (location: (5,0)-(5,10)) │ ├── target: │ │ @ ConstantPathNode (location: (5,0)-(5,6)) @@ -64,7 +64,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "foo" + │ │ │ └── name: :foo │ │ ├── child: │ │ │ @ ConstantReadNode (location: (5,5)-(5,6)) │ │ │ └── name: :A @@ -84,7 +84,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: (7,3)-(7,5) = "::" ├── message_loc: (7,5)-(7,6) = "a" ├── opening_loc: ∅ @@ -96,4 +96,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "a=" + └── name: :a= diff --git a/test/prism/snapshots/whitequark/send_attr_asgn_conditional.txt b/test/prism/snapshots/whitequark/send_attr_asgn_conditional.txt index e6ea102a26..b4f5a085ec 100644 --- a/test/prism/snapshots/whitequark/send_attr_asgn_conditional.txt +++ b/test/prism/snapshots/whitequark/send_attr_asgn_conditional.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: (1,3)-(1,4) = "b" ├── opening_loc: ∅ @@ -26,4 +26,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation - └── name: "b=" + └── name: :b= diff --git a/test/prism/snapshots/whitequark/send_binary_op.txt b/test/prism/snapshots/whitequark/send_binary_op.txt index d0b3aedae8..f9ab987207 100644 --- a/test/prism/snapshots/whitequark/send_binary_op.txt +++ b/test/prism/snapshots/whitequark/send_binary_op.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,4)-(1,6) = "!=" │ ├── opening_loc: ∅ @@ -26,7 +26,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!=" + │ └── name: :!= ├── @ CallNode (location: (3,0)-(3,8)) │ ├── receiver: │ │ @ CallNode (location: (3,0)-(3,3)) @@ -38,7 +38,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (3,4)-(3,6) = "!~" │ ├── opening_loc: ∅ @@ -50,7 +50,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "!~" + │ └── name: :!~ ├── @ CallNode (location: (5,0)-(5,7)) │ ├── receiver: │ │ @ CallNode (location: (5,0)-(5,3)) @@ -62,7 +62,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (5,4)-(5,5) = "%" │ ├── opening_loc: ∅ @@ -74,7 +74,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "%" + │ └── name: :% ├── @ CallNode (location: (7,0)-(7,7)) │ ├── receiver: │ │ @ CallNode (location: (7,0)-(7,3)) @@ -86,7 +86,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (7,4)-(7,5) = "&" │ ├── opening_loc: ∅ @@ -98,7 +98,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "&" + │ └── name: :& ├── @ CallNode (location: (9,0)-(9,7)) │ ├── receiver: │ │ @ CallNode (location: (9,0)-(9,3)) @@ -110,7 +110,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (9,4)-(9,5) = "*" │ ├── opening_loc: ∅ @@ -122,7 +122,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "*" + │ └── name: :* ├── @ CallNode (location: (11,0)-(11,8)) │ ├── receiver: │ │ @ CallNode (location: (11,0)-(11,3)) @@ -134,7 +134,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (11,4)-(11,6) = "**" │ ├── opening_loc: ∅ @@ -146,7 +146,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "**" + │ └── name: :** ├── @ CallNode (location: (13,0)-(13,7)) │ ├── receiver: │ │ @ CallNode (location: (13,0)-(13,3)) @@ -158,7 +158,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (13,4)-(13,5) = "+" │ ├── opening_loc: ∅ @@ -170,7 +170,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+" + │ └── name: :+ ├── @ CallNode (location: (15,0)-(15,7)) │ ├── receiver: │ │ @ CallNode (location: (15,0)-(15,3)) @@ -182,7 +182,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (15,4)-(15,5) = "-" │ ├── opening_loc: ∅ @@ -194,7 +194,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "-" + │ └── name: :- ├── @ CallNode (location: (17,0)-(17,7)) │ ├── receiver: │ │ @ CallNode (location: (17,0)-(17,3)) @@ -206,7 +206,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (17,4)-(17,5) = "/" │ ├── opening_loc: ∅ @@ -218,7 +218,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "/" + │ └── name: :/ ├── @ CallNode (location: (19,0)-(19,7)) │ ├── receiver: │ │ @ CallNode (location: (19,0)-(19,3)) @@ -230,7 +230,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (19,4)-(19,5) = "<" │ ├── opening_loc: ∅ @@ -242,7 +242,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<" + │ └── name: :< ├── @ CallNode (location: (21,0)-(21,8)) │ ├── receiver: │ │ @ CallNode (location: (21,0)-(21,3)) @@ -254,7 +254,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (21,4)-(21,6) = "<<" │ ├── opening_loc: ∅ @@ -266,7 +266,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<<" + │ └── name: :<< ├── @ CallNode (location: (23,0)-(23,8)) │ ├── receiver: │ │ @ CallNode (location: (23,0)-(23,3)) @@ -278,7 +278,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (23,4)-(23,6) = "<=" │ ├── opening_loc: ∅ @@ -290,7 +290,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<=" + │ └── name: :<= ├── @ CallNode (location: (25,0)-(25,9)) │ ├── receiver: │ │ @ CallNode (location: (25,0)-(25,3)) @@ -302,7 +302,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (25,4)-(25,7) = "<=>" │ ├── opening_loc: ∅ @@ -314,7 +314,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "<=>" + │ └── name: :<=> ├── @ CallNode (location: (27,0)-(27,8)) │ ├── receiver: │ │ @ CallNode (location: (27,0)-(27,3)) @@ -326,7 +326,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (27,4)-(27,6) = "==" │ ├── opening_loc: ∅ @@ -338,7 +338,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "==" + │ └── name: :== ├── @ CallNode (location: (29,0)-(29,9)) │ ├── receiver: │ │ @ CallNode (location: (29,0)-(29,3)) @@ -350,7 +350,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (29,4)-(29,7) = "===" │ ├── opening_loc: ∅ @@ -362,7 +362,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "===" + │ └── name: :=== ├── @ CallNode (location: (31,0)-(31,8)) │ ├── receiver: │ │ @ CallNode (location: (31,0)-(31,3)) @@ -374,7 +374,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (31,4)-(31,6) = "=~" │ ├── opening_loc: ∅ @@ -386,7 +386,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "=~" + │ └── name: :=~ ├── @ CallNode (location: (33,0)-(33,7)) │ ├── receiver: │ │ @ CallNode (location: (33,0)-(33,3)) @@ -398,7 +398,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (33,4)-(33,5) = ">" │ ├── opening_loc: ∅ @@ -410,7 +410,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: ">" + │ └── name: :> ├── @ CallNode (location: (35,0)-(35,8)) │ ├── receiver: │ │ @ CallNode (location: (35,0)-(35,3)) @@ -422,7 +422,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (35,4)-(35,6) = ">=" │ ├── opening_loc: ∅ @@ -434,7 +434,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: ">=" + │ └── name: :>= ├── @ CallNode (location: (37,0)-(37,8)) │ ├── receiver: │ │ @ CallNode (location: (37,0)-(37,3)) @@ -446,7 +446,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (37,4)-(37,6) = ">>" │ ├── opening_loc: ∅ @@ -458,7 +458,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: ">>" + │ └── name: :>> ├── @ CallNode (location: (39,0)-(39,7)) │ ├── receiver: │ │ @ CallNode (location: (39,0)-(39,3)) @@ -470,7 +470,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (39,4)-(39,5) = "^" │ ├── opening_loc: ∅ @@ -482,7 +482,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "^" + │ └── name: :^ └── @ CallNode (location: (41,0)-(41,7)) ├── receiver: │ @ CallNode (location: (41,0)-(41,3)) @@ -494,7 +494,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (41,4)-(41,5) = "|" ├── opening_loc: ∅ @@ -506,4 +506,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "|" + └── name: :| diff --git a/test/prism/snapshots/whitequark/send_block_chain_cmd.txt b/test/prism/snapshots/whitequark/send_block_chain_cmd.txt index c82d388037..dc6b860a47 100644 --- a/test/prism/snapshots/whitequark/send_block_chain_cmd.txt +++ b/test/prism/snapshots/whitequark/send_block_chain_cmd.txt @@ -24,7 +24,7 @@ │ │ │ ├── opening_loc: (1,7)-(1,9) = "do" │ │ │ └── closing_loc: (1,10)-(1,13) = "end" │ │ ├── flags: ∅ - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── call_operator_loc: (1,13)-(1,14) = "." │ ├── message_loc: (1,14)-(1,17) = "fun" │ ├── opening_loc: ∅ @@ -40,11 +40,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (3,0)-(3,28)) │ ├── receiver: │ │ @ CallNode (location: (3,0)-(3,13)) @@ -66,7 +66,7 @@ │ │ │ ├── opening_loc: (3,7)-(3,9) = "do" │ │ │ └── closing_loc: (3,10)-(3,13) = "end" │ │ ├── flags: ∅ - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── call_operator_loc: (3,13)-(3,14) = "." │ ├── message_loc: (3,14)-(3,17) = "fun" │ ├── opening_loc: ∅ @@ -82,7 +82,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (3,22)-(3,28)) @@ -92,7 +92,7 @@ │ │ ├── opening_loc: (3,22)-(3,24) = "do" │ │ └── closing_loc: (3,25)-(3,28) = "end" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (5,0)-(5,20)) │ ├── receiver: │ │ @ CallNode (location: (5,0)-(5,13)) @@ -114,7 +114,7 @@ │ │ │ ├── opening_loc: (5,7)-(5,9) = "do" │ │ │ └── closing_loc: (5,10)-(5,13) = "end" │ │ ├── flags: ∅ - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── call_operator_loc: (5,13)-(5,14) = "." │ ├── message_loc: (5,14)-(5,17) = "fun" │ ├── opening_loc: ∅ @@ -128,7 +128,7 @@ │ │ ├── opening_loc: (5,18)-(5,19) = "{" │ │ └── closing_loc: (5,19)-(5,20) = "}" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (7,0)-(7,22)) │ ├── receiver: │ │ @ CallNode (location: (7,0)-(7,13)) @@ -150,7 +150,7 @@ │ │ │ ├── opening_loc: (7,7)-(7,9) = "do" │ │ │ └── closing_loc: (7,10)-(7,13) = "end" │ │ ├── flags: ∅ - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── call_operator_loc: (7,13)-(7,14) = "." │ ├── message_loc: (7,14)-(7,17) = "fun" │ ├── opening_loc: (7,17)-(7,18) = "(" @@ -166,11 +166,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (7,21)-(7,22) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (9,0)-(9,25)) │ ├── receiver: │ │ @ CallNode (location: (9,0)-(9,13)) @@ -192,7 +192,7 @@ │ │ │ ├── opening_loc: (9,7)-(9,9) = "do" │ │ │ └── closing_loc: (9,10)-(9,13) = "end" │ │ ├── flags: ∅ - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── call_operator_loc: (9,13)-(9,14) = "." │ ├── message_loc: (9,14)-(9,17) = "fun" │ ├── opening_loc: (9,17)-(9,18) = "(" @@ -208,7 +208,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: (9,21)-(9,22) = ")" │ ├── block: │ │ @ BlockNode (location: (9,23)-(9,25)) @@ -218,7 +218,7 @@ │ │ ├── opening_loc: (9,23)-(9,24) = "{" │ │ └── closing_loc: (9,24)-(9,25) = "}" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (11,0)-(11,22)) │ ├── receiver: │ │ @ CallNode (location: (11,0)-(11,13)) @@ -240,7 +240,7 @@ │ │ │ ├── opening_loc: (11,7)-(11,9) = "do" │ │ │ └── closing_loc: (11,10)-(11,13) = "end" │ │ ├── flags: ∅ - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── call_operator_loc: (11,13)-(11,15) = "::" │ ├── message_loc: (11,15)-(11,18) = "fun" │ ├── opening_loc: ∅ @@ -256,11 +256,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun └── @ CallNode (location: (13,0)-(13,23)) ├── receiver: │ @ CallNode (location: (13,0)-(13,13)) @@ -282,7 +282,7 @@ │ │ ├── opening_loc: (13,7)-(13,9) = "do" │ │ └── closing_loc: (13,10)-(13,13) = "end" │ ├── flags: ∅ - │ └── name: "meth" + │ └── name: :meth ├── call_operator_loc: (13,13)-(13,15) = "::" ├── message_loc: (13,15)-(13,18) = "fun" ├── opening_loc: (13,18)-(13,19) = "(" @@ -298,8 +298,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── closing_loc: (13,22)-(13,23) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/send_block_conditional.txt b/test/prism/snapshots/whitequark/send_block_conditional.txt index 5fc2660cf7..c535097dde 100644 --- a/test/prism/snapshots/whitequark/send_block_conditional.txt +++ b/test/prism/snapshots/whitequark/send_block_conditional.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: (1,3)-(1,5) = "&." ├── message_loc: (1,5)-(1,8) = "bar" ├── opening_loc: ∅ @@ -28,4 +28,4 @@ │ ├── opening_loc: (1,9)-(1,10) = "{" │ └── closing_loc: (1,10)-(1,11) = "}" ├── flags: safe_navigation - └── name: "bar" + └── name: :bar diff --git a/test/prism/snapshots/whitequark/send_call.txt b/test/prism/snapshots/whitequark/send_call.txt index 639381d9e5..05a9839383 100644 --- a/test/prism/snapshots/whitequark/send_call.txt +++ b/test/prism/snapshots/whitequark/send_call.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: ∅ │ ├── opening_loc: (1,4)-(1,5) = "(" @@ -26,7 +26,7 @@ │ ├── closing_loc: (1,6)-(1,7) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "call" + │ └── name: :call └── @ CallNode (location: (3,0)-(3,8)) ├── receiver: │ @ CallNode (location: (3,0)-(3,3)) @@ -38,7 +38,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: (3,3)-(3,5) = "::" ├── message_loc: ∅ ├── opening_loc: (3,5)-(3,6) = "(" @@ -50,4 +50,4 @@ ├── closing_loc: (3,7)-(3,8) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "call" + └── name: :call diff --git a/test/prism/snapshots/whitequark/send_conditional.txt b/test/prism/snapshots/whitequark/send_conditional.txt index cf7412a9fa..87886b1ac9 100644 --- a/test/prism/snapshots/whitequark/send_conditional.txt +++ b/test/prism/snapshots/whitequark/send_conditional.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: (1,3)-(1,4) = "b" ├── opening_loc: ∅ @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation - └── name: "b" + └── name: :b diff --git a/test/prism/snapshots/whitequark/send_index.txt b/test/prism/snapshots/whitequark/send_index.txt index 1689635083..9987939fb1 100644 --- a/test/prism/snapshots/whitequark/send_index.txt +++ b/test/prism/snapshots/whitequark/send_index.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,3)-(1,9) = "[1, 2]" ├── opening_loc: (1,3)-(1,4) = "[" @@ -28,4 +28,4 @@ ├── closing_loc: (1,8)-(1,9) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]" + └── name: :[] diff --git a/test/prism/snapshots/whitequark/send_index_asgn.txt b/test/prism/snapshots/whitequark/send_index_asgn.txt index 190b6b4eb4..c87b72b54c 100644 --- a/test/prism/snapshots/whitequark/send_index_asgn.txt +++ b/test/prism/snapshots/whitequark/send_index_asgn.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,3)-(1,9) = "[1, 2]" ├── opening_loc: (1,3)-(1,4) = "[" @@ -30,4 +30,4 @@ ├── closing_loc: (1,8)-(1,9) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]=" + └── name: :[]= diff --git a/test/prism/snapshots/whitequark/send_index_asgn_legacy.txt b/test/prism/snapshots/whitequark/send_index_asgn_legacy.txt index 190b6b4eb4..c87b72b54c 100644 --- a/test/prism/snapshots/whitequark/send_index_asgn_legacy.txt +++ b/test/prism/snapshots/whitequark/send_index_asgn_legacy.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,3)-(1,9) = "[1, 2]" ├── opening_loc: (1,3)-(1,4) = "[" @@ -30,4 +30,4 @@ ├── closing_loc: (1,8)-(1,9) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]=" + └── name: :[]= diff --git a/test/prism/snapshots/whitequark/send_index_cmd.txt b/test/prism/snapshots/whitequark/send_index_cmd.txt index a5a4f9586f..c6da0af87f 100644 --- a/test/prism/snapshots/whitequark/send_index_cmd.txt +++ b/test/prism/snapshots/whitequark/send_index_cmd.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,3)-(1,10) = "[m bar]" ├── opening_loc: (1,3)-(1,4) = "[" @@ -38,12 +38,12 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── closing_loc: (1,9)-(1,10) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]" + └── name: :[] diff --git a/test/prism/snapshots/whitequark/send_index_legacy.txt b/test/prism/snapshots/whitequark/send_index_legacy.txt index 1689635083..9987939fb1 100644 --- a/test/prism/snapshots/whitequark/send_index_legacy.txt +++ b/test/prism/snapshots/whitequark/send_index_legacy.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (1,3)-(1,9) = "[1, 2]" ├── opening_loc: (1,3)-(1,4) = "[" @@ -28,4 +28,4 @@ ├── closing_loc: (1,8)-(1,9) = "]" ├── block: ∅ ├── flags: ∅ - └── name: "[]" + └── name: :[] diff --git a/test/prism/snapshots/whitequark/send_op_asgn_conditional.txt b/test/prism/snapshots/whitequark/send_op_asgn_conditional.txt index 2507dfa904..309fcfc4e1 100644 --- a/test/prism/snapshots/whitequark/send_op_asgn_conditional.txt +++ b/test/prism/snapshots/whitequark/send_op_asgn_conditional.txt @@ -14,15 +14,15 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "a" + │ └── name: :a ├── call_operator_loc: (1,1)-(1,3) = "&." ├── message_loc: (1,3)-(1,4) = "b" ├── opening_loc: ∅ ├── arguments: ∅ ├── closing_loc: ∅ ├── flags: safe_navigation - ├── read_name: "b" - ├── write_name: "b=" + ├── read_name: :b + ├── write_name: :b= ├── operator_loc: (1,5)-(1,8) = "&&=" └── value: @ IntegerNode (location: (1,9)-(1,10)) diff --git a/test/prism/snapshots/whitequark/send_plain.txt b/test/prism/snapshots/whitequark/send_plain.txt index de49cba3c3..1ae54413d8 100644 --- a/test/prism/snapshots/whitequark/send_plain.txt +++ b/test/prism/snapshots/whitequark/send_plain.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: (1,4)-(1,7) = "fun" │ ├── opening_loc: ∅ @@ -22,7 +22,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (3,0)-(3,10)) │ ├── receiver: │ │ @ CallNode (location: (3,0)-(3,3)) @@ -34,7 +34,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (3,3)-(3,5) = "::" │ ├── message_loc: (3,5)-(3,8) = "Fun" │ ├── opening_loc: (3,8)-(3,9) = "(" @@ -42,7 +42,7 @@ │ ├── closing_loc: (3,9)-(3,10) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "Fun" + │ └── name: :Fun └── @ CallNode (location: (5,0)-(5,8)) ├── receiver: │ @ CallNode (location: (5,0)-(5,3)) @@ -54,7 +54,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: (5,3)-(5,5) = "::" ├── message_loc: (5,5)-(5,8) = "fun" ├── opening_loc: ∅ @@ -62,4 +62,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/send_plain_cmd.txt b/test/prism/snapshots/whitequark/send_plain_cmd.txt index 1ddca9e15e..0e37b206ef 100644 --- a/test/prism/snapshots/whitequark/send_plain_cmd.txt +++ b/test/prism/snapshots/whitequark/send_plain_cmd.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: (1,4)-(1,7) = "fun" │ ├── opening_loc: ∅ @@ -30,11 +30,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (3,0)-(3,12)) │ ├── receiver: │ │ @ CallNode (location: (3,0)-(3,3)) @@ -46,7 +46,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (3,3)-(3,5) = "::" │ ├── message_loc: (3,5)-(3,8) = "Fun" │ ├── opening_loc: ∅ @@ -62,11 +62,11 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "Fun" + │ └── name: :Fun └── @ CallNode (location: (5,0)-(5,12)) ├── receiver: │ @ CallNode (location: (5,0)-(5,3)) @@ -78,7 +78,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: (5,3)-(5,5) = "::" ├── message_loc: (5,5)-(5,8) = "fun" ├── opening_loc: ∅ @@ -94,8 +94,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/send_self.txt b/test/prism/snapshots/whitequark/send_self.txt index aa1de85d59..d843fe7b2b 100644 --- a/test/prism/snapshots/whitequark/send_self.txt +++ b/test/prism/snapshots/whitequark/send_self.txt @@ -12,7 +12,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (3,0)-(3,4)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -22,7 +22,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "fun!" + │ └── name: :fun! └── @ CallNode (location: (5,0)-(5,6)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -36,4 +36,4 @@ ├── closing_loc: (5,5)-(5,6) = ")" ├── block: ∅ ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/send_self_block.txt b/test/prism/snapshots/whitequark/send_self_block.txt index 929f3ecaf2..8a08ed6ad6 100644 --- a/test/prism/snapshots/whitequark/send_self_block.txt +++ b/test/prism/snapshots/whitequark/send_self_block.txt @@ -18,7 +18,7 @@ │ │ ├── opening_loc: (1,4)-(1,6) = "do" │ │ └── closing_loc: (1,7)-(1,10) = "end" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (3,0)-(3,7)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -34,7 +34,7 @@ │ │ ├── opening_loc: (3,4)-(3,5) = "{" │ │ └── closing_loc: (3,6)-(3,7) = "}" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (5,0)-(5,9)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -50,7 +50,7 @@ │ │ ├── opening_loc: (5,6)-(5,7) = "{" │ │ └── closing_loc: (5,8)-(5,9) = "}" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun └── @ CallNode (location: (7,0)-(7,10)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -70,4 +70,4 @@ │ ├── opening_loc: (7,7)-(7,8) = "{" │ └── closing_loc: (7,9)-(7,10) = "}" ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/send_unary_op.txt b/test/prism/snapshots/whitequark/send_unary_op.txt index 6b1f4a383b..9e850fe2bf 100644 --- a/test/prism/snapshots/whitequark/send_unary_op.txt +++ b/test/prism/snapshots/whitequark/send_unary_op.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (1,0)-(1,1) = "+" │ ├── opening_loc: ∅ @@ -22,7 +22,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "+@" + │ └── name: :+@ ├── @ CallNode (location: (3,0)-(3,4)) │ ├── receiver: │ │ @ CallNode (location: (3,1)-(3,4)) @@ -34,7 +34,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: ∅ │ ├── message_loc: (3,0)-(3,1) = "-" │ ├── opening_loc: ∅ @@ -42,7 +42,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "-@" + │ └── name: :-@ └── @ CallNode (location: (5,0)-(5,4)) ├── receiver: │ @ CallNode (location: (5,1)-(5,4)) @@ -54,7 +54,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── call_operator_loc: ∅ ├── message_loc: (5,0)-(5,1) = "~" ├── opening_loc: ∅ @@ -62,4 +62,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "~" + └── name: :~ diff --git a/test/prism/snapshots/whitequark/space_args_arg.txt b/test/prism/snapshots/whitequark/space_args_arg.txt index 78e1933537..218bad8bc2 100644 --- a/test/prism/snapshots/whitequark/space_args_arg.txt +++ b/test/prism/snapshots/whitequark/space_args_arg.txt @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/space_args_arg_block.txt b/test/prism/snapshots/whitequark/space_args_arg_block.txt index f16e099147..35cb8b1c6f 100644 --- a/test/prism/snapshots/whitequark/space_args_arg_block.txt +++ b/test/prism/snapshots/whitequark/space_args_arg_block.txt @@ -14,7 +14,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (1,3)-(1,4) = "." │ ├── message_loc: (1,4)-(1,7) = "fun" │ ├── opening_loc: ∅ @@ -38,7 +38,7 @@ │ │ ├── opening_loc: (1,12)-(1,13) = "{" │ │ └── closing_loc: (1,13)-(1,14) = "}" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun ├── @ CallNode (location: (3,0)-(3,15)) │ ├── receiver: │ │ @ CallNode (location: (3,0)-(3,3)) @@ -50,7 +50,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── call_operator_loc: (3,3)-(3,5) = "::" │ ├── message_loc: (3,5)-(3,8) = "fun" │ ├── opening_loc: ∅ @@ -74,7 +74,7 @@ │ │ ├── opening_loc: (3,13)-(3,14) = "{" │ │ └── closing_loc: (3,14)-(3,15) = "}" │ ├── flags: ∅ - │ └── name: "fun" + │ └── name: :fun └── @ CallNode (location: (5,0)-(5,10)) ├── receiver: ∅ ├── call_operator_loc: ∅ @@ -100,4 +100,4 @@ │ ├── opening_loc: (5,8)-(5,9) = "{" │ └── closing_loc: (5,9)-(5,10) = "}" ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/space_args_arg_call.txt b/test/prism/snapshots/whitequark/space_args_arg_call.txt index 5de0873d9a..d420bda4ea 100644 --- a/test/prism/snapshots/whitequark/space_args_arg_call.txt +++ b/test/prism/snapshots/whitequark/space_args_arg_call.txt @@ -28,8 +28,8 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "to_i" + │ └── name: :to_i ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/space_args_arg_newline.txt b/test/prism/snapshots/whitequark/space_args_arg_newline.txt index edc8183494..33721131eb 100644 --- a/test/prism/snapshots/whitequark/space_args_arg_newline.txt +++ b/test/prism/snapshots/whitequark/space_args_arg_newline.txt @@ -22,4 +22,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/space_args_block.txt b/test/prism/snapshots/whitequark/space_args_block.txt index b8e35e9d20..c3e04224a9 100644 --- a/test/prism/snapshots/whitequark/space_args_block.txt +++ b/test/prism/snapshots/whitequark/space_args_block.txt @@ -24,4 +24,4 @@ │ ├── opening_loc: (1,7)-(1,8) = "{" │ └── closing_loc: (1,8)-(1,9) = "}" ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/space_args_cmd.txt b/test/prism/snapshots/whitequark/space_args_cmd.txt index ef1ed11ec0..f2f6d5c199 100644 --- a/test/prism/snapshots/whitequark/space_args_cmd.txt +++ b/test/prism/snapshots/whitequark/space_args_cmd.txt @@ -32,14 +32,14 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "f" + │ │ └── name: :f │ ├── opening_loc: (1,4)-(1,5) = "(" │ └── closing_loc: (1,10)-(1,11) = ")" ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "fun" + └── name: :fun diff --git a/test/prism/snapshots/whitequark/string_interp.txt b/test/prism/snapshots/whitequark/string_interp.txt index 9c372473fe..706da5b4b5 100644 --- a/test/prism/snapshots/whitequark/string_interp.txt +++ b/test/prism/snapshots/whitequark/string_interp.txt @@ -26,7 +26,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── closing_loc: (1,9)-(1,10) = "}" │ └── @ StringNode (location: (1,10)-(1,13)) │ ├── flags: ∅ diff --git a/test/prism/snapshots/whitequark/super.txt b/test/prism/snapshots/whitequark/super.txt index 694b4c796d..7a5f0f5193 100644 --- a/test/prism/snapshots/whitequark/super.txt +++ b/test/prism/snapshots/whitequark/super.txt @@ -18,7 +18,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── rparen_loc: ∅ │ └── block: ∅ ├── @ SuperNode (location: (3,0)-(3,7)) @@ -42,6 +42,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── rparen_loc: (5,9)-(5,10) = ")" └── block: ∅ diff --git a/test/prism/snapshots/whitequark/super_block.txt b/test/prism/snapshots/whitequark/super_block.txt index ffb07e7715..65efb30fd3 100644 --- a/test/prism/snapshots/whitequark/super_block.txt +++ b/test/prism/snapshots/whitequark/super_block.txt @@ -26,7 +26,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── @ CallNode (location: (3,11)-(3,14)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ @@ -36,7 +36,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── rparen_loc: ∅ └── block: @ BlockNode (location: (3,15)-(3,21)) diff --git a/test/prism/snapshots/whitequark/symbol_interp.txt b/test/prism/snapshots/whitequark/symbol_interp.txt index fae980d98a..26578c6f7a 100644 --- a/test/prism/snapshots/whitequark/symbol_interp.txt +++ b/test/prism/snapshots/whitequark/symbol_interp.txt @@ -26,7 +26,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── closing_loc: (1,10)-(1,11) = "}" │ └── @ StringNode (location: (1,11)-(1,14)) │ ├── flags: ∅ diff --git a/test/prism/snapshots/whitequark/ternary.txt b/test/prism/snapshots/whitequark/ternary.txt index ce65ca09ec..1d25aecdb8 100644 --- a/test/prism/snapshots/whitequark/ternary.txt +++ b/test/prism/snapshots/whitequark/ternary.txt @@ -15,7 +15,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (1,6)-(1,7)) │ └── body: (length: 1) diff --git a/test/prism/snapshots/whitequark/ternary_ambiguous_symbol.txt b/test/prism/snapshots/whitequark/ternary_ambiguous_symbol.txt index 3b9457d471..206ca095d0 100644 --- a/test/prism/snapshots/whitequark/ternary_ambiguous_symbol.txt +++ b/test/prism/snapshots/whitequark/ternary_ambiguous_symbol.txt @@ -27,7 +27,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── opening_loc: (1,4)-(1,5) = "(" │ └── closing_loc: (1,8)-(1,9) = ")" ├── statements: diff --git a/test/prism/snapshots/whitequark/trailing_forward_arg.txt b/test/prism/snapshots/whitequark/trailing_forward_arg.txt index a67b8552b5..15c8b4ac00 100644 --- a/test/prism/snapshots/whitequark/trailing_forward_arg.txt +++ b/test/prism/snapshots/whitequark/trailing_forward_arg.txt @@ -41,7 +41,7 @@ │ ├── closing_loc: (1,34)-(1,35) = ")" │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "bar" + │ └── name: :bar ├── locals: [:a, :b, :"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ diff --git a/test/prism/snapshots/whitequark/unary_num_pow_precedence.txt b/test/prism/snapshots/whitequark/unary_num_pow_precedence.txt index e0efa7e17c..42d7c6a55f 100644 --- a/test/prism/snapshots/whitequark/unary_num_pow_precedence.txt +++ b/test/prism/snapshots/whitequark/unary_num_pow_precedence.txt @@ -17,7 +17,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "**" + │ └── name: :** ├── @ CallNode (location: (3,0)-(3,8)) │ ├── receiver: │ │ @ CallNode (location: (3,1)-(3,8)) @@ -35,7 +35,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ - │ │ └── name: "**" + │ │ └── name: :** │ ├── call_operator_loc: ∅ │ ├── message_loc: (3,0)-(3,1) = "-" │ ├── opening_loc: ∅ @@ -43,7 +43,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "-@" + │ └── name: :-@ └── @ CallNode (location: (5,0)-(5,10)) ├── receiver: │ @ CallNode (location: (5,1)-(5,10)) @@ -60,7 +60,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "**" + │ └── name: :** ├── call_operator_loc: ∅ ├── message_loc: (5,0)-(5,1) = "-" ├── opening_loc: ∅ @@ -68,4 +68,4 @@ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ - └── name: "-@" + └── name: :-@ diff --git a/test/prism/snapshots/whitequark/unless.txt b/test/prism/snapshots/whitequark/unless.txt index 8f34c0f21f..c37f996862 100644 --- a/test/prism/snapshots/whitequark/unless.txt +++ b/test/prism/snapshots/whitequark/unless.txt @@ -15,7 +15,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── statements: │ │ @ StatementsNode (location: (1,16)-(1,19)) │ │ └── body: (length: 1) @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── consequent: ∅ │ └── end_keyword_loc: (1,21)-(1,24) = "end" └── @ UnlessNode (location: (3,0)-(3,20)) @@ -43,7 +43,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (3,12)-(3,15)) │ └── body: (length: 1) @@ -56,6 +56,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: ∅ └── end_keyword_loc: (3,17)-(3,20) = "end" diff --git a/test/prism/snapshots/whitequark/unless_else.txt b/test/prism/snapshots/whitequark/unless_else.txt index 77ca14355c..5c9c3480f9 100644 --- a/test/prism/snapshots/whitequark/unless_else.txt +++ b/test/prism/snapshots/whitequark/unless_else.txt @@ -15,7 +15,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── statements: │ │ @ StatementsNode (location: (1,16)-(1,19)) │ │ └── body: (length: 1) @@ -28,7 +28,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ ├── consequent: │ │ @ ElseNode (location: (1,21)-(1,34)) │ │ ├── else_keyword_loc: (1,21)-(1,25) = "else" @@ -44,7 +44,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── end_keyword_loc: (1,31)-(1,34) = "end" │ └── end_keyword_loc: (1,31)-(1,34) = "end" └── @ UnlessNode (location: (3,0)-(3,30)) @@ -59,7 +59,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (3,12)-(3,15)) │ └── body: (length: 1) @@ -72,7 +72,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: │ @ ElseNode (location: (3,17)-(3,30)) │ ├── else_keyword_loc: (3,17)-(3,21) = "else" @@ -88,6 +88,6 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "baz" + │ │ └── name: :baz │ └── end_keyword_loc: (3,27)-(3,30) = "end" └── end_keyword_loc: (3,27)-(3,30) = "end" diff --git a/test/prism/snapshots/whitequark/unless_mod.txt b/test/prism/snapshots/whitequark/unless_mod.txt index 923b4d3cc0..2229c37ec0 100644 --- a/test/prism/snapshots/whitequark/unless_mod.txt +++ b/test/prism/snapshots/whitequark/unless_mod.txt @@ -15,7 +15,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (1,0)-(1,3)) │ └── body: (length: 1) @@ -28,6 +28,6 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: ∅ └── end_keyword_loc: ∅ diff --git a/test/prism/snapshots/whitequark/until.txt b/test/prism/snapshots/whitequark/until.txt index a00febb20a..081bdabcee 100644 --- a/test/prism/snapshots/whitequark/until.txt +++ b/test/prism/snapshots/whitequark/until.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── statements: │ │ @ StatementsNode (location: (1,13)-(1,17)) │ │ └── body: (length: 1) @@ -29,7 +29,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "meth" + │ │ └── name: :meth │ └── flags: ∅ └── @ UntilNode (location: (3,0)-(3,19)) ├── keyword_loc: (3,0)-(3,5) = "until" @@ -44,7 +44,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (3,11)-(3,15)) │ └── body: (length: 1) @@ -57,5 +57,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth └── flags: ∅ diff --git a/test/prism/snapshots/whitequark/until_mod.txt b/test/prism/snapshots/whitequark/until_mod.txt index 56cc47b9d7..f3de773000 100644 --- a/test/prism/snapshots/whitequark/until_mod.txt +++ b/test/prism/snapshots/whitequark/until_mod.txt @@ -16,7 +16,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (1,0)-(1,4)) │ └── body: (length: 1) @@ -29,5 +29,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth └── flags: ∅ diff --git a/test/prism/snapshots/whitequark/until_post.txt b/test/prism/snapshots/whitequark/until_post.txt index 7bcfd2678b..e1e651e854 100644 --- a/test/prism/snapshots/whitequark/until_post.txt +++ b/test/prism/snapshots/whitequark/until_post.txt @@ -16,7 +16,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (1,0)-(1,14)) │ └── body: (length: 1) @@ -34,7 +34,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/whitequark/var_op_asgn_cmd.txt b/test/prism/snapshots/whitequark/var_op_asgn_cmd.txt index 9f9750cedd..422c354f9a 100644 --- a/test/prism/snapshots/whitequark/var_op_asgn_cmd.txt +++ b/test/prism/snapshots/whitequark/var_op_asgn_cmd.txt @@ -21,7 +21,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ - │ └── name: "m" + │ └── name: :m ├── name: :foo ├── operator: :+ └── depth: 0 diff --git a/test/prism/snapshots/whitequark/when_multi.txt b/test/prism/snapshots/whitequark/when_multi.txt index 499369644d..7ce87216d9 100644 --- a/test/prism/snapshots/whitequark/when_multi.txt +++ b/test/prism/snapshots/whitequark/when_multi.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── conditions: (length: 1) │ └── @ WhenNode (location: (1,10)-(1,32)) │ ├── keyword_loc: (1,10)-(1,14) = "when" @@ -43,7 +43,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: ∅ ├── case_keyword_loc: (1,0)-(1,4) = "case" └── end_keyword_loc: (1,34)-(1,37) = "end" diff --git a/test/prism/snapshots/whitequark/when_splat.txt b/test/prism/snapshots/whitequark/when_splat.txt index d09637b1a1..1d4186afeb 100644 --- a/test/prism/snapshots/whitequark/when_splat.txt +++ b/test/prism/snapshots/whitequark/when_splat.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── conditions: (length: 2) │ ├── @ WhenNode (location: (1,10)-(1,27)) │ │ ├── keyword_loc: (1,10)-(1,14) = "when" @@ -33,7 +33,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "baz" + │ │ │ └── name: :baz │ │ └── statements: │ │ @ StatementsNode (location: (1,24)-(1,27)) │ │ └── body: (length: 1) @@ -46,7 +46,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "bar" + │ │ └── name: :bar │ └── @ WhenNode (location: (1,29)-(1,38)) │ ├── keyword_loc: (1,29)-(1,33) = "when" │ ├── conditions: (length: 1) @@ -62,7 +62,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── statements: ∅ ├── consequent: ∅ ├── case_keyword_loc: (1,0)-(1,4) = "case" diff --git a/test/prism/snapshots/whitequark/when_then.txt b/test/prism/snapshots/whitequark/when_then.txt index 01feb88737..0f22ea6023 100644 --- a/test/prism/snapshots/whitequark/when_then.txt +++ b/test/prism/snapshots/whitequark/when_then.txt @@ -14,7 +14,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── conditions: (length: 1) │ └── @ WhenNode (location: (1,10)-(1,29)) │ ├── keyword_loc: (1,10)-(1,14) = "when" @@ -37,7 +37,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "bar" + │ └── name: :bar ├── consequent: ∅ ├── case_keyword_loc: (1,0)-(1,4) = "case" └── end_keyword_loc: (1,31)-(1,34) = "end" diff --git a/test/prism/snapshots/whitequark/while.txt b/test/prism/snapshots/whitequark/while.txt index 2fae4e412f..b1e5674432 100644 --- a/test/prism/snapshots/whitequark/while.txt +++ b/test/prism/snapshots/whitequark/while.txt @@ -16,7 +16,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ ├── statements: │ │ @ StatementsNode (location: (1,13)-(1,17)) │ │ └── body: (length: 1) @@ -29,7 +29,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "meth" + │ │ └── name: :meth │ └── flags: ∅ └── @ WhileNode (location: (3,0)-(3,19)) ├── keyword_loc: (3,0)-(3,5) = "while" @@ -44,7 +44,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (3,11)-(3,15)) │ └── body: (length: 1) @@ -57,5 +57,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth └── flags: ∅ diff --git a/test/prism/snapshots/whitequark/while_mod.txt b/test/prism/snapshots/whitequark/while_mod.txt index 46b1d20033..0291ea39dd 100644 --- a/test/prism/snapshots/whitequark/while_mod.txt +++ b/test/prism/snapshots/whitequark/while_mod.txt @@ -16,7 +16,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (1,0)-(1,4)) │ └── body: (length: 1) @@ -29,5 +29,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "meth" + │ └── name: :meth └── flags: ∅ diff --git a/test/prism/snapshots/whitequark/while_post.txt b/test/prism/snapshots/whitequark/while_post.txt index 7ec16db0a1..e98ffd5a9b 100644 --- a/test/prism/snapshots/whitequark/while_post.txt +++ b/test/prism/snapshots/whitequark/while_post.txt @@ -16,7 +16,7 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo ├── statements: │ @ StatementsNode (location: (1,0)-(1,14)) │ └── body: (length: 1) @@ -34,7 +34,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "meth" + │ │ └── name: :meth │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ diff --git a/test/prism/snapshots/whitequark/xstring_interp.txt b/test/prism/snapshots/whitequark/xstring_interp.txt index 53844dfbe2..5a9d4468ed 100644 --- a/test/prism/snapshots/whitequark/xstring_interp.txt +++ b/test/prism/snapshots/whitequark/xstring_interp.txt @@ -26,7 +26,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call - │ │ │ └── name: "bar" + │ │ │ └── name: :bar │ │ └── closing_loc: (1,9)-(1,10) = "}" │ └── @ StringNode (location: (1,10)-(1,13)) │ ├── flags: ∅ diff --git a/test/prism/snapshots/whitequark/yield.txt b/test/prism/snapshots/whitequark/yield.txt index 4d1ca051cc..fd55bc2586 100644 --- a/test/prism/snapshots/whitequark/yield.txt +++ b/test/prism/snapshots/whitequark/yield.txt @@ -23,7 +23,7 @@ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: variable_call - │ │ └── name: "foo" + │ │ └── name: :foo │ └── rparen_loc: ∅ ├── @ YieldNode (location: (5,0)-(5,7)) │ ├── keyword_loc: (5,0)-(5,5) = "yield" @@ -45,5 +45,5 @@ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: variable_call - │ └── name: "foo" + │ └── name: :foo └── rparen_loc: (7,9)-(7,10) = ")" diff --git a/test/prism/snapshots/xstring.txt b/test/prism/snapshots/xstring.txt index 5cea973e4f..46b47ffac7 100644 --- a/test/prism/snapshots/xstring.txt +++ b/test/prism/snapshots/xstring.txt @@ -31,7 +31,7 @@ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: "bar" + │ │ │ │ └── name: :bar │ │ │ └── closing_loc: (3,10)-(3,11) = "}" │ │ └── @ StringNode (location: (3,11)-(3,15)) │ │ ├── flags: ∅ |