зеркало из https://github.com/github/ruby.git
[ruby/prism] Regenerate snapshots using integer values
This commit is contained in:
Родитель
af0a6ea1d5
Коммит
3b3def5db7
|
@ -57,6 +57,7 @@ Gem::Specification.new do |spec|
|
|||
"include/prism/util/pm_buffer.h",
|
||||
"include/prism/util/pm_char.h",
|
||||
"include/prism/util/pm_constant_pool.h",
|
||||
"include/prism/util/pm_integer.h",
|
||||
"include/prism/util/pm_list.h",
|
||||
"include/prism/util/pm_memchr.h",
|
||||
"include/prism/util/pm_newline_list.h",
|
||||
|
@ -107,6 +108,7 @@ Gem::Specification.new do |spec|
|
|||
"src/util/pm_buffer.c",
|
||||
"src/util/pm_char.c",
|
||||
"src/util/pm_constant_pool.c",
|
||||
"src/util/pm_integer.c",
|
||||
"src/util/pm_list.c",
|
||||
"src/util/pm_memchr.c",
|
||||
"src/util/pm_newline_list.c",
|
||||
|
|
|
@ -951,28 +951,28 @@ named_captures(VALUE self, VALUE source) {
|
|||
|
||||
/**
|
||||
* call-seq:
|
||||
* Debug::number_parse(source) -> Integer
|
||||
* Debug::integer_parse(source) -> Integer
|
||||
*
|
||||
* Parses the given source string and returns the number it represents.
|
||||
* Parses the given source string and returns the integer it represents.
|
||||
*/
|
||||
static VALUE
|
||||
number_parse(VALUE self, VALUE source) {
|
||||
integer_parse(VALUE self, VALUE source) {
|
||||
const uint8_t *start = (const uint8_t *) RSTRING_PTR(source);
|
||||
size_t length = RSTRING_LEN(source);
|
||||
|
||||
pm_number_t number = { 0 };
|
||||
pm_number_parse(&number, PM_NUMBER_BASE_UNKNOWN, start, start + length);
|
||||
pm_integer_t integer = { 0 };
|
||||
pm_integer_parse(&integer, PM_INTEGER_BASE_UNKNOWN, start, start + length);
|
||||
|
||||
VALUE result = UINT2NUM(number.head.value);
|
||||
VALUE result = UINT2NUM(integer.head.value);
|
||||
size_t shift = 0;
|
||||
|
||||
for (pm_number_node_t *node = number.head.next; node != NULL; node = node->next) {
|
||||
for (pm_integer_word_t *node = integer.head.next; node != NULL; node = node->next) {
|
||||
VALUE receiver = rb_funcall(UINT2NUM(node->value), rb_intern("<<"), 1, ULONG2NUM(++shift * 32));
|
||||
result = rb_funcall(receiver, rb_intern("|"), 1, result);
|
||||
}
|
||||
|
||||
if (number.negative) result = rb_funcall(result, rb_intern("-@"), 0);
|
||||
pm_number_free(&number);
|
||||
if (integer.negative) result = rb_funcall(result, rb_intern("-@"), 0);
|
||||
pm_integer_free(&integer);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -1176,7 +1176,7 @@ Init_prism(void) {
|
|||
// internal tasks. We expose these to make them easier to test.
|
||||
VALUE rb_cPrismDebug = rb_define_module_under(rb_cPrism, "Debug");
|
||||
rb_define_singleton_method(rb_cPrismDebug, "named_captures", named_captures, 1);
|
||||
rb_define_singleton_method(rb_cPrismDebug, "number_parse", number_parse, 1);
|
||||
rb_define_singleton_method(rb_cPrismDebug, "integer_parse", integer_parse, 1);
|
||||
rb_define_singleton_method(rb_cPrismDebug, "memsize", memsize, 1);
|
||||
rb_define_singleton_method(rb_cPrismDebug, "profile_file", profile_file, 1);
|
||||
rb_define_singleton_method(rb_cPrismDebug, "inspect_node", inspect_node, 1);
|
||||
|
|
|
@ -3812,16 +3812,16 @@ pm_integer_node_create(pm_parser_t *parser, pm_node_flags_t base, const pm_token
|
|||
.value = { 0 }
|
||||
};
|
||||
|
||||
pm_number_base_t number_base;
|
||||
pm_integer_base_t integer_base = PM_INTEGER_BASE_DECIMAL;
|
||||
switch (base) {
|
||||
case PM_INTEGER_BASE_FLAGS_BINARY: number_base = PM_NUMBER_BASE_BINARY; break;
|
||||
case PM_INTEGER_BASE_FLAGS_OCTAL: number_base = PM_NUMBER_BASE_OCTAL; break;
|
||||
case PM_INTEGER_BASE_FLAGS_DECIMAL: number_base = PM_NUMBER_BASE_DECIMAL; break;
|
||||
case PM_INTEGER_BASE_FLAGS_HEXADECIMAL: number_base = PM_NUMBER_BASE_HEXADECIMAL; break;
|
||||
default: assert(false && "unreachable");
|
||||
case PM_INTEGER_BASE_FLAGS_BINARY: integer_base = PM_INTEGER_BASE_BINARY; break;
|
||||
case PM_INTEGER_BASE_FLAGS_OCTAL: integer_base = PM_INTEGER_BASE_OCTAL; break;
|
||||
case PM_INTEGER_BASE_FLAGS_DECIMAL: break;
|
||||
case PM_INTEGER_BASE_FLAGS_HEXADECIMAL: integer_base = PM_INTEGER_BASE_HEXADECIMAL; break;
|
||||
default: assert(false && "unreachable"); break;
|
||||
}
|
||||
|
||||
pm_number_parse(&node->value, number_base, token->start, token->end);
|
||||
pm_integer_parse(&node->value, integer_base, token->start, token->end);
|
||||
return node;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include "prism/defines.h"
|
||||
#include "prism/util/pm_buffer.h"
|
||||
#include "prism/util/pm_char.h"
|
||||
#include "prism/util/pm_integer.h"
|
||||
#include "prism/util/pm_memchr.h"
|
||||
#include "prism/util/pm_number.h"
|
||||
#include "prism/util/pm_strncasecmp.h"
|
||||
#include "prism/util/pm_strpbrk.h"
|
||||
#include "prism/ast.h"
|
||||
|
|
|
@ -38,16 +38,16 @@ pm_string_new(const pm_string_t *string, rb_encoding *encoding) {
|
|||
}
|
||||
|
||||
static VALUE
|
||||
pm_integer_new(const pm_number_t *number) {
|
||||
VALUE result = UINT2NUM(number->head.value);
|
||||
pm_integer_new(const pm_integer_t *integer) {
|
||||
VALUE result = UINT2NUM(integer->head.value);
|
||||
size_t shift = 0;
|
||||
|
||||
for (const pm_number_node_t *node = number->head.next; node != NULL; node = node->next) {
|
||||
for (const pm_integer_word_t *node = integer->head.next; node != NULL; node = node->next) {
|
||||
VALUE receiver = rb_funcall(UINT2NUM(node->value), rb_intern("<<"), 1, ULONG2NUM(++shift * 32));
|
||||
result = rb_funcall(receiver, rb_intern("|"), 1, result);
|
||||
}
|
||||
|
||||
if (number->negative) {
|
||||
if (integer->negative) {
|
||||
result = rb_funcall(result, rb_intern("-@"), 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include "prism/defines.h"
|
||||
#include "prism/util/pm_constant_pool.h"
|
||||
#include "prism/util/pm_integer.h"
|
||||
#include "prism/util/pm_string.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -183,7 +184,7 @@ typedef struct pm_<%= node.human %> {
|
|||
when Prism::LocationField, Prism::OptionalLocationField then "pm_location_t #{field.name}"
|
||||
when Prism::UInt8Field then "uint8_t #{field.name}"
|
||||
when Prism::UInt32Field then "uint32_t #{field.name}"
|
||||
when Prism::IntegerField then "pm_number_t #{field.name}"
|
||||
when Prism::IntegerField then "pm_integer_t #{field.name}"
|
||||
else raise field.class.name
|
||||
end
|
||||
%>;
|
||||
|
|
|
@ -75,7 +75,7 @@ pm_node_destroy(pm_parser_t *parser, pm_node_t *node) {
|
|||
<%- when Prism::ConstantListField -%>
|
||||
pm_constant_id_list_free(&cast-><%= field.name %>);
|
||||
<%- when Prism::IntegerField -%>
|
||||
pm_number_free(&cast-><%= field.name %>);
|
||||
pm_integer_free(&cast-><%= field.name %>);
|
||||
<%- else -%>
|
||||
<%- raise -%>
|
||||
<%- end -%>
|
||||
|
@ -121,7 +121,7 @@ pm_node_memsize_node(pm_node_t *node, pm_memsize_t *memsize) {
|
|||
<%- when Prism::ConstantListField -%>
|
||||
memsize->memsize += (pm_constant_id_list_memsize(&cast-><%= field.name %>) - sizeof(pm_constant_id_list_t));
|
||||
<%- when Prism::IntegerField -%>
|
||||
memsize->memsize += (pm_number_memsize(&cast-><%= field.name %>) - sizeof(pm_number_t));
|
||||
memsize->memsize += (pm_integer_memsize(&cast-><%= field.name %>) - sizeof(pm_integer_t));
|
||||
<%- else -%>
|
||||
<%- raise -%>
|
||||
<%- end -%>
|
||||
|
@ -255,19 +255,19 @@ pm_dump_json(pm_buffer_t *buffer, const pm_parser_t *parser, const pm_node_t *no
|
|||
pm_buffer_append_byte(buffer, ']');
|
||||
<%- when Prism::IntegerField -%>
|
||||
{
|
||||
const pm_number_t *number = &cast-><%= field.name %>;
|
||||
if (number->length == 0) {
|
||||
if (number->negative) pm_buffer_append_byte(buffer, '-');
|
||||
pm_buffer_append_string(buffer, "%" PRIu32, number->head.value);
|
||||
} else if (number->length == 1) {
|
||||
if (number->negative) pm_buffer_append_byte(buffer, '-');
|
||||
pm_buffer_append_format(buffer, "%" PRIu64, ((uint64_t) number->head.value) | (((uint64_t) number->head.next->value) << 32));
|
||||
const pm_integer_t *integer = &cast-><%= field.name %>;
|
||||
if (integer->length == 0) {
|
||||
if (integer->negative) pm_buffer_append_byte(buffer, '-');
|
||||
pm_buffer_append_string(buffer, "%" PRIu32, integer->head.value);
|
||||
} else if (integer->length == 1) {
|
||||
if (integer->negative) pm_buffer_append_byte(buffer, '-');
|
||||
pm_buffer_append_format(buffer, "%" PRIu64, ((uint64_t) integer->head.value) | (((uint64_t) integer->head.next->value) << 32));
|
||||
} else {
|
||||
pm_buffer_append_byte(buffer, '{');
|
||||
pm_buffer_append_format(buffer, "\"negative\": %s", number->negative ? "true" : "false");
|
||||
pm_buffer_append_format(buffer, "\"negative\": %s", integer->negative ? "true" : "false");
|
||||
pm_buffer_append_string(buffer, ",\"values\":[", 11);
|
||||
|
||||
const pm_number_node_t *node = &number->head;
|
||||
const pm_integer_word_t *node = &integer->head;
|
||||
while (node != NULL) {
|
||||
pm_buffer_append_format(buffer, "%" PRIu32, node->value);
|
||||
node = node->next;
|
||||
|
|
|
@ -127,19 +127,19 @@ prettyprint_node(pm_buffer_t *output_buffer, const pm_parser_t *parser, const pm
|
|||
if (!found) pm_buffer_append_string(output_buffer, " nil", 4);
|
||||
pm_buffer_append_byte(output_buffer, '\n');
|
||||
<%- when Prism::IntegerField -%>
|
||||
const pm_number_t *number = &cast-><%= field.name %>;
|
||||
if (number->length == 0) {
|
||||
const pm_integer_t *integer = &cast-><%= field.name %>;
|
||||
if (integer->length == 0) {
|
||||
pm_buffer_append_byte(output_buffer, ' ');
|
||||
if (number->negative) pm_buffer_append_byte(output_buffer, '-');
|
||||
pm_buffer_append_string(output_buffer, "%" PRIu32 "\n", number->head.value);
|
||||
} else if (number->length == 1) {
|
||||
if (integer->negative) pm_buffer_append_byte(output_buffer, '-');
|
||||
pm_buffer_append_format(output_buffer, "%" PRIu32 "\n", integer->head.value);
|
||||
} else if (integer->length == 1) {
|
||||
pm_buffer_append_byte(output_buffer, ' ');
|
||||
if (number->negative) pm_buffer_append_byte(output_buffer, '-');
|
||||
pm_buffer_append_string(output_buffer, "%" PRIu64 "\n", ((uint64_t) number->head.value) | (((uint64_t) number->head.next->value) << 32));
|
||||
if (integer->negative) pm_buffer_append_byte(output_buffer, '-');
|
||||
pm_buffer_append_format(output_buffer, "%" PRIu64 "\n", ((uint64_t) integer->head.value) | (((uint64_t) integer->head.next->value) << 32));
|
||||
} else {
|
||||
pm_buffer_append_byte(output_buffer, ' ');
|
||||
|
||||
const pm_number_node_t *node = &number->head;
|
||||
const pm_integer_word_t *node = &integer->head;
|
||||
uint32_t index = 0;
|
||||
|
||||
while (node != NULL) {
|
||||
|
|
|
@ -50,11 +50,11 @@ pm_serialize_string(const pm_parser_t *parser, const pm_string_t *string, pm_buf
|
|||
}
|
||||
|
||||
static void
|
||||
pm_serialize_integer(const pm_number_t *number, pm_buffer_t *buffer) {
|
||||
pm_buffer_append_byte(buffer, number->negative ? 1 : 0);
|
||||
pm_buffer_append_varuint(buffer, pm_sizet_to_u32(number->length + 1));
|
||||
pm_serialize_integer(const pm_integer_t *integer, pm_buffer_t *buffer) {
|
||||
pm_buffer_append_byte(buffer, integer->negative ? 1 : 0);
|
||||
pm_buffer_append_varuint(buffer, pm_sizet_to_u32(integer->length + 1));
|
||||
|
||||
for (const pm_number_node_t *node = &number->head; node != NULL; node = node->next) {
|
||||
for (const pm_integer_word_t *node = &integer->head; node != NULL; node = node->next) {
|
||||
pm_buffer_append_varuint(buffer, node->value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -266,7 +266,7 @@ module Prism
|
|||
end
|
||||
|
||||
def java_type
|
||||
"VariableInteger"
|
||||
"Object"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -0,0 +1,176 @@
|
|||
#include "prism/util/pm_integer.h"
|
||||
|
||||
/**
|
||||
* Create a new node for an integer in the linked list.
|
||||
*/
|
||||
static pm_integer_word_t *
|
||||
pm_integer_node_create(pm_integer_t *integer, uint32_t value) {
|
||||
integer->length++;
|
||||
|
||||
pm_integer_word_t *node = malloc(sizeof(pm_integer_word_t));
|
||||
if (node == NULL) return NULL;
|
||||
|
||||
*node = (pm_integer_word_t) { .next = NULL, .value = value };
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a 32-bit integer to an integer.
|
||||
*/
|
||||
static void
|
||||
pm_integer_add(pm_integer_t *integer, uint32_t addend) {
|
||||
uint32_t carry = addend;
|
||||
pm_integer_word_t *current = &integer->head;
|
||||
|
||||
while (carry > 0) {
|
||||
uint64_t result = (uint64_t) current->value + carry;
|
||||
carry = (uint32_t) (result >> 32);
|
||||
current->value = (uint32_t) result;
|
||||
|
||||
if (carry > 0) {
|
||||
if (current->next == NULL) {
|
||||
current->next = pm_integer_node_create(integer, carry);
|
||||
break;
|
||||
}
|
||||
|
||||
current = current->next;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Multiple an integer by a 32-bit integer. In practice, the multiplier is the
|
||||
* base of the integer, so this is 2, 8, 10, or 16.
|
||||
*/
|
||||
static void
|
||||
pm_integer_multiply(pm_integer_t *integer, uint32_t multiplier) {
|
||||
uint32_t carry = 0;
|
||||
|
||||
for (pm_integer_word_t *current = &integer->head; current != NULL; current = current->next) {
|
||||
uint64_t result = (uint64_t) current->value * multiplier + carry;
|
||||
carry = (uint32_t) (result >> 32);
|
||||
current->value = (uint32_t) result;
|
||||
|
||||
if (carry > 0 && current->next == NULL) {
|
||||
current->next = pm_integer_node_create(integer, carry);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the value of a digit in a uint32_t.
|
||||
*/
|
||||
static uint32_t
|
||||
pm_integer_parse_digit(const uint8_t character) {
|
||||
switch (character) {
|
||||
case '0': return 0;
|
||||
case '1': return 1;
|
||||
case '2': return 2;
|
||||
case '3': return 3;
|
||||
case '4': return 4;
|
||||
case '5': return 5;
|
||||
case '6': return 6;
|
||||
case '7': return 7;
|
||||
case '8': return 8;
|
||||
case '9': return 9;
|
||||
case 'a': case 'A': return 10;
|
||||
case 'b': case 'B': return 11;
|
||||
case 'c': case 'C': return 12;
|
||||
case 'd': case 'D': return 13;
|
||||
case 'e': case 'E': return 14;
|
||||
case 'f': case 'F': return 15;
|
||||
default: assert(false && "unreachable"); return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse an integer from a string. This assumes that the format of the integer
|
||||
* has already been validated, as internal validation checks are not performed
|
||||
* here.
|
||||
*/
|
||||
PRISM_EXPORTED_FUNCTION void
|
||||
pm_integer_parse(pm_integer_t *integer, pm_integer_base_t base, const uint8_t *start, const uint8_t *end) {
|
||||
// Ignore unary +. Unary + is parsed differently and will not end up here.
|
||||
// Instead, it will modify the parsed integer later.
|
||||
if (*start == '+') start++;
|
||||
|
||||
// Determine the multiplier from the base, and skip past any prefixes.
|
||||
uint32_t multiplier = 10;
|
||||
switch (base) {
|
||||
case PM_INTEGER_BASE_BINARY:
|
||||
start += 2; // 0b
|
||||
multiplier = 2;
|
||||
break;
|
||||
case PM_INTEGER_BASE_OCTAL:
|
||||
start++; // 0
|
||||
if (*start == '_' || *start == 'o' || *start == 'O') start++; // o
|
||||
multiplier = 8;
|
||||
break;
|
||||
case PM_INTEGER_BASE_DECIMAL:
|
||||
if (*start == '0' && (end - start) > 1) start += 2; // 0d
|
||||
break;
|
||||
case PM_INTEGER_BASE_HEXADECIMAL:
|
||||
start += 2; // 0x
|
||||
multiplier = 16;
|
||||
break;
|
||||
case PM_INTEGER_BASE_UNKNOWN:
|
||||
if (*start == '0' && (end - start) > 1) {
|
||||
switch (start[1]) {
|
||||
case '_': start += 2; multiplier = 8; break;
|
||||
case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': start++; multiplier = 8; break;
|
||||
case 'b': case 'B': start += 2; multiplier = 2; break;
|
||||
case 'o': case 'O': start += 2; multiplier = 8; break;
|
||||
case 'd': case 'D': start += 2; break;
|
||||
case 'x': case 'X': start += 2; multiplier = 16; break;
|
||||
default: assert(false && "unreachable"); break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// It's possible that we've consumed everything at this point if there is an
|
||||
// invalid integer. If this is the case, we'll just return 0.
|
||||
if (start >= end) return;
|
||||
|
||||
// Add the first digit to the integer.
|
||||
pm_integer_add(integer, pm_integer_parse_digit(*start++));
|
||||
|
||||
// Add the subsequent digits to the integer.
|
||||
for (; start < end; start++) {
|
||||
if (*start == '_') continue;
|
||||
pm_integer_multiply(integer, multiplier);
|
||||
pm_integer_add(integer, pm_integer_parse_digit(*start));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the memory size of the integer.
|
||||
*/
|
||||
size_t
|
||||
pm_integer_memsize(const pm_integer_t *integer) {
|
||||
return sizeof(pm_integer_t) + integer->length * sizeof(pm_integer_word_t);
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursively destroy the linked list of an integer.
|
||||
*/
|
||||
static void
|
||||
pm_integer_word_destroy(pm_integer_word_t *integer) {
|
||||
if (integer->next != NULL) {
|
||||
pm_integer_word_destroy(integer->next);
|
||||
}
|
||||
|
||||
free(integer);
|
||||
}
|
||||
|
||||
/**
|
||||
* Free the internal memory of an integer. This memory will only be allocated if
|
||||
* the integer exceeds the size of a single node in the linked list.
|
||||
*/
|
||||
PRISM_EXPORTED_FUNCTION void
|
||||
pm_integer_free(pm_integer_t *integer) {
|
||||
if (integer->head.next) {
|
||||
pm_integer_word_destroy(integer->head.next);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,104 @@
|
|||
/**
|
||||
* @file pm_integer.h
|
||||
*
|
||||
* This module provides functions for working with arbitrary-sized integers.
|
||||
*/
|
||||
#ifndef PRISM_NUMBER_H
|
||||
#define PRISM_NUMBER_H
|
||||
|
||||
#include "prism/defines.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/**
|
||||
* A node in the linked list of a pm_integer_t.
|
||||
*/
|
||||
typedef struct pm_integer_word {
|
||||
/** A pointer to the next node in the list. */
|
||||
struct pm_integer_word *next;
|
||||
|
||||
/** The value of the node. */
|
||||
uint32_t value;
|
||||
} pm_integer_word_t;
|
||||
|
||||
/**
|
||||
* This structure represents an arbitrary-sized integer. It is implemented as a
|
||||
* linked list of 32-bit integers, with the least significant digit at the head
|
||||
* of the list.
|
||||
*/
|
||||
typedef struct {
|
||||
/** The number of nodes in the linked list that have been allocated. */
|
||||
size_t length;
|
||||
|
||||
/**
|
||||
* The head of the linked list, embedded directly so that allocations do not
|
||||
* need to be performed for small integers.
|
||||
*/
|
||||
pm_integer_word_t head;
|
||||
|
||||
/**
|
||||
* Whether or not the integer is negative. It is stored this way so that a
|
||||
* zeroed pm_integer_t is always positive zero.
|
||||
*/
|
||||
bool negative;
|
||||
} pm_integer_t;
|
||||
|
||||
/**
|
||||
* An enum controlling the base of an integer. It is expected that the base is
|
||||
* already known before parsing the integer, even though it could be derived
|
||||
* from the string itself.
|
||||
*/
|
||||
typedef enum {
|
||||
/** The binary base, indicated by a 0b or 0B prefix. */
|
||||
PM_INTEGER_BASE_BINARY,
|
||||
|
||||
/** The octal base, indicated by a 0, 0o, or 0O prefix. */
|
||||
PM_INTEGER_BASE_OCTAL,
|
||||
|
||||
/** The decimal base, indicated by a 0d, 0D, or empty prefix. */
|
||||
PM_INTEGER_BASE_DECIMAL,
|
||||
|
||||
/** The hexidecimal base, indicated by a 0x or 0X prefix. */
|
||||
PM_INTEGER_BASE_HEXADECIMAL,
|
||||
|
||||
/**
|
||||
* An unknown base, in which case pm_integer_parse will derive it based on
|
||||
* the content of the string. This is less efficient and does more
|
||||
* comparisons, so if callers know the base ahead of time, they should use
|
||||
* that instead.
|
||||
*/
|
||||
PM_INTEGER_BASE_UNKNOWN
|
||||
} pm_integer_base_t;
|
||||
|
||||
/**
|
||||
* Parse an integer from a string. This assumes that the format of the integer
|
||||
* has already been validated, as internal validation checks are not performed
|
||||
* here.
|
||||
*
|
||||
* @param integer The integer to parse into.
|
||||
* @param base The base of the integer.
|
||||
* @param start The start of the string.
|
||||
* @param end The end of the string.
|
||||
*/
|
||||
PRISM_EXPORTED_FUNCTION void pm_integer_parse(pm_integer_t *integer, pm_integer_base_t base, const uint8_t *start, const uint8_t *end);
|
||||
|
||||
/**
|
||||
* Return the memory size of the integer.
|
||||
*
|
||||
* @param integer The integer to get the memory size of.
|
||||
* @return The size of the memory associated with the integer.
|
||||
*/
|
||||
size_t pm_integer_memsize(const pm_integer_t *integer);
|
||||
|
||||
/**
|
||||
* Free the internal memory of an integer. This memory will only be allocated if
|
||||
* the integer exceeds the size of a single node in the linked list.
|
||||
*
|
||||
* @param integer The integer to free.
|
||||
*/
|
||||
PRISM_EXPORTED_FUNCTION void pm_integer_free(pm_integer_t *integer);
|
||||
|
||||
#endif
|
|
@ -1,174 +0,0 @@
|
|||
#include "prism/util/pm_number.h"
|
||||
|
||||
/**
|
||||
* Create a new node for a number in the linked list.
|
||||
*/
|
||||
static pm_number_node_t *
|
||||
pm_number_node_create(pm_number_t *number, uint32_t value) {
|
||||
number->length++;
|
||||
pm_number_node_t *node = malloc(sizeof(pm_number_node_t));
|
||||
*node = (pm_number_node_t) { .next = NULL, .value = value };
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a 32-bit integer to a number.
|
||||
*/
|
||||
static void
|
||||
pm_number_add(pm_number_t *number, uint32_t addend) {
|
||||
uint32_t carry = addend;
|
||||
pm_number_node_t *current = &number->head;
|
||||
|
||||
while (carry > 0) {
|
||||
uint64_t result = (uint64_t) current->value + carry;
|
||||
carry = (uint32_t) (result >> 32);
|
||||
current->value = (uint32_t) result;
|
||||
|
||||
if (carry > 0) {
|
||||
if (current->next == NULL) {
|
||||
current->next = pm_number_node_create(number, carry);
|
||||
break;
|
||||
}
|
||||
|
||||
current = current->next;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Multiple a number by a 32-bit integer. In practice, the multiplier is the
|
||||
* base of the number, so this is 2, 8, 10, or 16.
|
||||
*/
|
||||
static void
|
||||
pm_number_multiply(pm_number_t *number, uint32_t multiplier) {
|
||||
uint32_t carry = 0;
|
||||
|
||||
for (pm_number_node_t *current = &number->head; current != NULL; current = current->next) {
|
||||
uint64_t result = (uint64_t) current->value * multiplier + carry;
|
||||
carry = (uint32_t) (result >> 32);
|
||||
current->value = (uint32_t) result;
|
||||
|
||||
if (carry > 0 && current->next == NULL) {
|
||||
current->next = pm_number_node_create(number, carry);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the value of a digit in a number.
|
||||
*/
|
||||
static uint32_t
|
||||
pm_number_parse_digit(const uint8_t character) {
|
||||
switch (character) {
|
||||
case '0': return 0;
|
||||
case '1': return 1;
|
||||
case '2': return 2;
|
||||
case '3': return 3;
|
||||
case '4': return 4;
|
||||
case '5': return 5;
|
||||
case '6': return 6;
|
||||
case '7': return 7;
|
||||
case '8': return 8;
|
||||
case '9': return 9;
|
||||
case 'a': case 'A': return 10;
|
||||
case 'b': case 'B': return 11;
|
||||
case 'c': case 'C': return 12;
|
||||
case 'd': case 'D': return 13;
|
||||
case 'e': case 'E': return 14;
|
||||
case 'f': case 'F': return 15;
|
||||
default: assert(false && "unreachable");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse a number from a string. This assumes that the format of the number has
|
||||
* already been validated, as internal validation checks are not performed here.
|
||||
*/
|
||||
PRISM_EXPORTED_FUNCTION void
|
||||
pm_number_parse(pm_number_t *number, pm_number_base_t base, const uint8_t *start, const uint8_t *end) {
|
||||
// Ignore unary +. Unary + is parsed differently and will not end up here.
|
||||
// Instead, it will modify the parsed number later.
|
||||
if (*start == '+') start++;
|
||||
|
||||
// Determine the multiplier from the base, and skip past any prefixes.
|
||||
uint32_t multiplier;
|
||||
switch (base) {
|
||||
case PM_NUMBER_BASE_BINARY:
|
||||
start += 2; // 0b
|
||||
multiplier = 2;
|
||||
break;
|
||||
case PM_NUMBER_BASE_OCTAL:
|
||||
start++; // 0
|
||||
if (*start == 'o' || *start == 'O') start++; // o
|
||||
multiplier = 8;
|
||||
break;
|
||||
case PM_NUMBER_BASE_DECIMAL:
|
||||
if (*start == '0' && (end - start) > 1) start += 2; // 0d
|
||||
multiplier = 10;
|
||||
break;
|
||||
case PM_NUMBER_BASE_HEXADECIMAL:
|
||||
start += 2; // 0x
|
||||
multiplier = 16;
|
||||
break;
|
||||
case PM_NUMBER_BASE_UNKNOWN:
|
||||
if (*start == '0' && (end - start) > 1) {
|
||||
switch (start[1]) {
|
||||
case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': start++; multiplier = 8; break;
|
||||
case 'b': case 'B': start += 2; multiplier = 2; break;
|
||||
case 'o': case 'O': start += 2; multiplier = 8; break;
|
||||
case 'd': case 'D': start += 2; multiplier = 10; break;
|
||||
case 'x': case 'X': start += 2; multiplier = 16; break;
|
||||
default: assert(false && "unreachable");
|
||||
}
|
||||
} else {
|
||||
multiplier = 10;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// It's possible that we've consumed everything at this point if there is an
|
||||
// invalid number. If this is the case, we'll just return 0.
|
||||
if (start >= end) return;
|
||||
|
||||
// Add the first digit to the number.
|
||||
pm_number_add(number, pm_number_parse_digit(*start++));
|
||||
|
||||
// Add the subsequent digits to the number.
|
||||
for (; start < end; start++) {
|
||||
if (*start == '_') continue;
|
||||
pm_number_multiply(number, multiplier);
|
||||
pm_number_add(number, pm_number_parse_digit(*start));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the memory size of the number.
|
||||
*/
|
||||
size_t
|
||||
pm_number_memsize(const pm_number_t *number) {
|
||||
return sizeof(pm_number_t) + number->length * sizeof(pm_number_node_t);
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursively destroy the linked list of a number.
|
||||
*/
|
||||
static void
|
||||
pm_number_node_destroy(pm_number_node_t *number) {
|
||||
if (number->next != NULL) {
|
||||
pm_number_node_destroy(number->next);
|
||||
}
|
||||
|
||||
free(number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Free the internal memory of a number. This memory will only be allocated if
|
||||
* the number exceeds the size of a single node in the linked list.
|
||||
*/
|
||||
PRISM_EXPORTED_FUNCTION void
|
||||
pm_number_free(pm_number_t *number) {
|
||||
if (number->head.next) {
|
||||
pm_number_node_destroy(number->head.next);
|
||||
}
|
||||
}
|
|
@ -1,103 +0,0 @@
|
|||
/**
|
||||
* @file pm_number.h
|
||||
*
|
||||
* This module provides functions for working with arbitrary-sized numbers.
|
||||
*/
|
||||
#ifndef PRISM_NUMBER_H
|
||||
#define PRISM_NUMBER_H
|
||||
|
||||
#include "prism/defines.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/**
|
||||
* A node in the linked list of a pm_number_t.
|
||||
*/
|
||||
typedef struct pm_number_node {
|
||||
/** A pointer to the next node in the list. */
|
||||
struct pm_number_node *next;
|
||||
|
||||
/** The value of the node. */
|
||||
uint32_t value;
|
||||
} pm_number_node_t;
|
||||
|
||||
/**
|
||||
* This structure represents an arbitrary-sized number. It is implemented as a
|
||||
* linked list of 32-bit integers, with the least significant digit at the head
|
||||
* of the list.
|
||||
*/
|
||||
typedef struct {
|
||||
/**
|
||||
* The head of the linked list, embedded directly so that allocations do not
|
||||
* need to be performed for small numbers.
|
||||
*/
|
||||
pm_number_node_t head;
|
||||
|
||||
/** The number of nodes in the linked list that have been allocated. */
|
||||
size_t length;
|
||||
|
||||
/**
|
||||
* Whether or not the number is negative. It is stored this way so that a
|
||||
* zeroed pm_number_t is always positive zero.
|
||||
*/
|
||||
bool negative;
|
||||
} pm_number_t;
|
||||
|
||||
/**
|
||||
* An enum controlling the base of a number. It is expected that the base is
|
||||
* already known before parsing the number, even though it could be derived from
|
||||
* the string itself.
|
||||
*/
|
||||
typedef enum {
|
||||
/** The binary base, indicated by a 0b or 0B prefix. */
|
||||
PM_NUMBER_BASE_BINARY,
|
||||
|
||||
/** The octal base, indicated by a 0, 0o, or 0O prefix. */
|
||||
PM_NUMBER_BASE_OCTAL,
|
||||
|
||||
/** The decimal base, indicated by a 0d, 0D, or empty prefix. */
|
||||
PM_NUMBER_BASE_DECIMAL,
|
||||
|
||||
/** The hexidecimal base, indicated by a 0x or 0X prefix. */
|
||||
PM_NUMBER_BASE_HEXADECIMAL,
|
||||
|
||||
/**
|
||||
* An unknown base, in which case pm_number_parse will derive it based on
|
||||
* the content of the string. This is less efficient and does more
|
||||
* comparisons, so if callers know the base ahead of time, they should use
|
||||
* that instead.
|
||||
*/
|
||||
PM_NUMBER_BASE_UNKNOWN
|
||||
} pm_number_base_t;
|
||||
|
||||
/**
|
||||
* Parse a number from a string. This assumes that the format of the number has
|
||||
* already been validated, as internal validation checks are not performed here.
|
||||
*
|
||||
* @param number The number to parse into.
|
||||
* @param base The base of the number.
|
||||
* @param start The start of the string.
|
||||
* @param end The end of the string.
|
||||
*/
|
||||
PRISM_EXPORTED_FUNCTION void pm_number_parse(pm_number_t *number, pm_number_base_t base, const uint8_t *start, const uint8_t *end);
|
||||
|
||||
/**
|
||||
* Return the memory size of the number.
|
||||
*
|
||||
* @param number The number to get the memory size of.
|
||||
* @return The size of the memory associated with the number.
|
||||
*/
|
||||
size_t pm_number_memsize(const pm_number_t *number);
|
||||
|
||||
/**
|
||||
* Free the internal memory of a number. This memory will only be allocated if
|
||||
* the number exceeds the size of a single node in the linked list.
|
||||
*
|
||||
* @param number The number to free.
|
||||
*/
|
||||
PRISM_EXPORTED_FUNCTION void pm_number_free(pm_number_t *number);
|
||||
|
||||
#endif
|
|
@ -0,0 +1,37 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative "test_helper"
|
||||
|
||||
return if Prism::BACKEND == :FFI
|
||||
|
||||
module Prism
|
||||
class IntegerParseTest < TestCase
|
||||
def test_integer_parse
|
||||
assert_integer_parse(1)
|
||||
assert_integer_parse(50)
|
||||
assert_integer_parse(100)
|
||||
assert_integer_parse(100, "1_0_0")
|
||||
assert_integer_parse(8, "0_1_0")
|
||||
|
||||
assert_integer_parse(10, "0b1010")
|
||||
assert_integer_parse(10, "0B1010")
|
||||
assert_integer_parse(10, "0o12")
|
||||
assert_integer_parse(10, "0O12")
|
||||
assert_integer_parse(10, "012")
|
||||
assert_integer_parse(10, "0d10")
|
||||
assert_integer_parse(10, "0D10")
|
||||
assert_integer_parse(10, "0xA")
|
||||
assert_integer_parse(10, "0XA")
|
||||
|
||||
assert_integer_parse(2**32)
|
||||
assert_integer_parse(2**64 + 2**32)
|
||||
assert_integer_parse(2**128 + 2**64 + 2**32)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def assert_integer_parse(expected, source = expected.to_s)
|
||||
assert_equal expected, Debug.integer_parse(source)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,36 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative "test_helper"
|
||||
|
||||
return if Prism::BACKEND == :FFI
|
||||
|
||||
module Prism
|
||||
class NumberParseTest < TestCase
|
||||
def test_number_parse
|
||||
assert_number_parse(1)
|
||||
assert_number_parse(50)
|
||||
assert_number_parse(100)
|
||||
assert_number_parse(100, "1_0_0")
|
||||
|
||||
assert_number_parse(10, "0b1010")
|
||||
assert_number_parse(10, "0B1010")
|
||||
assert_number_parse(10, "0o12")
|
||||
assert_number_parse(10, "0O12")
|
||||
assert_number_parse(10, "012")
|
||||
assert_number_parse(10, "0d10")
|
||||
assert_number_parse(10, "0D10")
|
||||
assert_number_parse(10, "0xA")
|
||||
assert_number_parse(10, "0XA")
|
||||
|
||||
assert_number_parse(2**32)
|
||||
assert_number_parse(2**64 + 2**32)
|
||||
assert_number_parse(2**128 + 2**64 + 2**32)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def assert_number_parse(expected, source = expected.to_s)
|
||||
assert_equal expected, Debug.number_parse(source)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -68,7 +68,8 @@
|
|||
│ │ │ │ @ StatementsNode (location: (7,13)-(7,14))
|
||||
│ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (7,13)-(7,14))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── closing_loc: (7,14)-(7,15) = "}"
|
||||
│ │ └── closing_loc: (7,15)-(7,16) = "\""
|
||||
│ ├── old_name:
|
||||
|
|
|
@ -218,7 +218,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (11,1)-(11,2))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
│ │ ├── name: :**
|
||||
│ │ ├── message_loc: (11,2)-(11,4) = "**"
|
||||
|
@ -228,7 +229,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (11,4)-(11,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -242,7 +244,8 @@
|
|||
├── flags: ∅
|
||||
├── receiver:
|
||||
│ @ IntegerNode (location: (13,0)-(13,2))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: -1
|
||||
├── call_operator_loc: (13,2)-(13,3) = "."
|
||||
├── name: :zero?
|
||||
├── message_loc: (13,3)-(13,8) = "zero?"
|
||||
|
|
|
@ -66,11 +66,14 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── elements: (length: 3)
|
||||
│ │ │ ├── @ IntegerNode (location: (3,16)-(3,17))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── @ IntegerNode (location: (3,19)-(3,20))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ └── @ IntegerNode (location: (3,22)-(3,23))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── opening_loc: ∅
|
||||
│ │ └── closing_loc: ∅
|
||||
│ ├── closing_loc: (3,12)-(3,13) = "]"
|
||||
|
@ -132,7 +135,8 @@
|
|||
│ │ │ ├── closing_loc: ∅
|
||||
│ │ │ └── unescaped: "c"
|
||||
│ │ ├── @ IntegerNode (location: (10,3)-(10,4))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── @ SymbolNode (location: (14,0)-(14,2))
|
||||
│ │ ├── flags: forced_us_ascii_encoding
|
||||
│ │ ├── opening_loc: (14,0)-(14,1) = ":"
|
||||
|
@ -163,7 +167,8 @@
|
|||
│ │ │ ├── closing_loc: ∅
|
||||
│ │ │ └── unescaped: "c"
|
||||
│ │ ├── @ IntegerNode (location: (19,3)-(19,4))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── @ SymbolNode (location: (23,0)-(23,2))
|
||||
│ │ ├── flags: forced_us_ascii_encoding
|
||||
│ │ ├── opening_loc: (23,0)-(23,1) = ":"
|
||||
|
@ -448,7 +453,8 @@
|
|||
│ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ └── arguments: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (41,4)-(41,5))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 0
|
||||
│ │ │ ├── closing_loc: (41,5)-(41,6) = "]"
|
||||
│ │ │ └── block: ∅
|
||||
│ │ └── @ IndexTargetNode (location: (41,8)-(41,14))
|
||||
|
@ -470,7 +476,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (41,12)-(41,13))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 0
|
||||
│ │ ├── closing_loc: (41,13)-(41,14) = "]"
|
||||
│ │ └── block: ∅
|
||||
│ ├── rest: ∅
|
||||
|
@ -483,9 +490,11 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── elements: (length: 2)
|
||||
│ │ ├── @ IntegerNode (location: (41,17)-(41,18))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── @ IntegerNode (location: (41,20)-(41,21))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── opening_loc: ∅
|
||||
│ └── closing_loc: ∅
|
||||
├── @ CallNode (location: (43,0)-(43,19))
|
||||
|
@ -670,7 +679,8 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── elements: (length: 2)
|
||||
│ │ ├── @ IntegerNode (location: (53,1)-(53,2))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── @ KeywordHashNode (location: (53,4)-(53,8))
|
||||
│ │ ├── flags: ∅
|
||||
│ │ └── elements: (length: 1)
|
||||
|
@ -693,7 +703,8 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── elements: (length: 2)
|
||||
│ │ ├── @ IntegerNode (location: (55,1)-(55,2))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── @ KeywordHashNode (location: (55,4)-(55,20))
|
||||
│ │ ├── flags: ∅
|
||||
│ │ └── elements: (length: 3)
|
||||
|
@ -953,7 +964,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (84,12)-(84,13))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: (84,8)-(84,9) = "]"
|
||||
│ └── block:
|
||||
│ @ BlockArgumentNode (location: (84,4)-(84,8))
|
||||
|
@ -1001,7 +1013,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (86,16)-(86,17))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: (86,12)-(86,13) = "]"
|
||||
│ └── block:
|
||||
│ @ BlockArgumentNode (location: (86,8)-(86,12))
|
||||
|
@ -1060,7 +1073,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (89,11)-(89,12))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: (89,7)-(89,8) = "]"
|
||||
│ │ └── block:
|
||||
│ │ @ BlockArgumentNode (location: (89,6)-(89,7))
|
||||
|
@ -1095,7 +1109,8 @@
|
|||
│ ├── operator_loc: (92,6)-(92,8) = "+="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (92,9)-(92,10))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOrWriteNode (location: (94,0)-(94,11))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1117,7 +1132,8 @@
|
|||
│ ├── operator_loc: (94,6)-(94,9) = "||="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (94,10)-(94,11))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexAndWriteNode (location: (96,0)-(96,11))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1139,7 +1155,8 @@
|
|||
│ ├── operator_loc: (96,6)-(96,9) = "&&="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (96,10)-(96,11))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOperatorWriteNode (location: (98,0)-(98,14))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1172,7 +1189,8 @@
|
|||
│ ├── operator_loc: (98,10)-(98,12) = "+="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (98,13)-(98,14))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOrWriteNode (location: (100,0)-(100,15))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1204,7 +1222,8 @@
|
|||
│ ├── operator_loc: (100,10)-(100,13) = "||="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (100,14)-(100,15))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexAndWriteNode (location: (102,0)-(102,15))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1236,7 +1255,8 @@
|
|||
│ ├── operator_loc: (102,10)-(102,13) = "&&="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (102,14)-(102,15))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOperatorWriteNode (location: (104,0)-(104,13))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1272,7 +1292,8 @@
|
|||
│ ├── operator_loc: (104,9)-(104,11) = "+="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (104,12)-(104,13))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOrWriteNode (location: (106,0)-(106,14))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1307,7 +1328,8 @@
|
|||
│ ├── operator_loc: (106,9)-(106,12) = "||="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (106,13)-(106,14))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexAndWriteNode (location: (108,0)-(108,14))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1342,7 +1364,8 @@
|
|||
│ ├── operator_loc: (108,9)-(108,12) = "&&="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (108,13)-(108,14))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOperatorWriteNode (location: (110,0)-(110,17))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1388,7 +1411,8 @@
|
|||
│ ├── operator_loc: (110,13)-(110,15) = "+="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (110,16)-(110,17))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOrWriteNode (location: (112,0)-(112,18))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1433,7 +1457,8 @@
|
|||
│ ├── operator_loc: (112,13)-(112,16) = "||="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (112,17)-(112,18))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexAndWriteNode (location: (114,0)-(114,18))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1478,7 +1503,8 @@
|
|||
│ ├── operator_loc: (114,13)-(114,16) = "&&="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (114,17)-(114,18))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOperatorWriteNode (location: (116,0)-(116,19))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1527,7 +1553,8 @@
|
|||
│ ├── operator_loc: (116,15)-(116,17) = "+="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (116,18)-(116,19))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOrWriteNode (location: (118,0)-(118,20))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1575,7 +1602,8 @@
|
|||
│ ├── operator_loc: (118,15)-(118,18) = "||="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (118,19)-(118,20))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexAndWriteNode (location: (120,0)-(120,20))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1623,7 +1651,8 @@
|
|||
│ ├── operator_loc: (120,15)-(120,18) = "&&="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (120,19)-(120,20))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOperatorWriteNode (location: (122,0)-(122,23))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1682,7 +1711,8 @@
|
|||
│ ├── operator_loc: (122,19)-(122,21) = "+="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (122,22)-(122,23))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexOrWriteNode (location: (124,0)-(124,24))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1740,7 +1770,8 @@
|
|||
│ ├── operator_loc: (124,19)-(124,22) = "||="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (124,23)-(124,24))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IndexAndWriteNode (location: (126,0)-(126,24))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
|
@ -1798,7 +1829,8 @@
|
|||
│ ├── operator_loc: (126,19)-(126,22) = "&&="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (126,23)-(126,24))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ DefNode (location: (128,0)-(128,19))
|
||||
│ ├── name: :f
|
||||
│ ├── name_loc: (128,4)-(128,5) = "f"
|
||||
|
@ -1896,7 +1928,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 2)
|
||||
│ │ │ ├── @ IntegerNode (location: (130,12)-(130,13))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── @ SplatNode (location: (130,15)-(130,16))
|
||||
│ │ │ ├── operator_loc: (130,15)-(130,16) = "*"
|
||||
│ │ │ └── expression: ∅
|
||||
|
@ -1955,7 +1988,8 @@
|
|||
│ │ │ │ ├── operator_loc: (132,12)-(132,13) = "*"
|
||||
│ │ │ │ └── expression: ∅
|
||||
│ │ │ └── @ IntegerNode (location: (132,17)-(132,18))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: (132,13)-(132,14) = "]"
|
||||
│ │ └── block: ∅
|
||||
│ ├── locals: []
|
||||
|
@ -2008,12 +2042,14 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 3)
|
||||
│ │ │ ├── @ IntegerNode (location: (134,12)-(134,13))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── @ SplatNode (location: (134,15)-(134,16))
|
||||
│ │ │ │ ├── operator_loc: (134,15)-(134,16) = "*"
|
||||
│ │ │ │ └── expression: ∅
|
||||
│ │ │ └── @ IntegerNode (location: (134,20)-(134,21))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: (134,16)-(134,17) = "]"
|
||||
│ │ └── block: ∅
|
||||
│ ├── locals: []
|
||||
|
@ -2072,7 +2108,8 @@
|
|||
│ │ ├── operator_loc: (136,15)-(136,17) = "+="
|
||||
│ │ └── value:
|
||||
│ │ @ IntegerNode (location: (136,18)-(136,19))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── locals: []
|
||||
│ ├── def_keyword_loc: (136,0)-(136,3) = "def"
|
||||
│ ├── operator_loc: ∅
|
||||
|
@ -2121,7 +2158,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 2)
|
||||
│ │ │ ├── @ IntegerNode (location: (138,12)-(138,13))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── @ SplatNode (location: (138,15)-(138,16))
|
||||
│ │ │ ├── operator_loc: (138,15)-(138,16) = "*"
|
||||
│ │ │ └── expression: ∅
|
||||
|
@ -2130,7 +2168,8 @@
|
|||
│ │ ├── operator_loc: (138,18)-(138,21) = "&&="
|
||||
│ │ └── value:
|
||||
│ │ @ IntegerNode (location: (138,22)-(138,23))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── locals: []
|
||||
│ ├── def_keyword_loc: (138,0)-(138,3) = "def"
|
||||
│ ├── operator_loc: ∅
|
||||
|
@ -2248,7 +2287,8 @@
|
|||
│ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ └── arguments: (length: 2)
|
||||
│ │ │ │ ├── @ IntegerNode (location: (142,22)-(142,23))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 1
|
||||
│ │ │ │ └── @ SplatNode (location: (142,25)-(142,26))
|
||||
│ │ │ │ ├── operator_loc: (142,25)-(142,26) = "*"
|
||||
│ │ │ │ └── expression: ∅
|
||||
|
|
|
@ -127,7 +127,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (7,9)-(7,10))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 0
|
||||
│ ├── closing_loc: (7,10)-(7,11) = ")"
|
||||
│ └── block:
|
||||
│ @ BlockNode (location: (7,12)-(7,35))
|
||||
|
@ -345,7 +346,8 @@
|
|||
│ │ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ │ └── arguments: (length: 1)
|
||||
│ │ │ │ │ └── @ IntegerNode (location: (17,14)-(17,15))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 1
|
||||
│ │ │ │ ├── closing_loc: (17,15)-(17,16) = "]"
|
||||
│ │ │ │ └── block: ∅
|
||||
│ │ │ ├── rest: ∅
|
||||
|
@ -520,7 +522,8 @@
|
|||
│ │ │ │ ├── operator_loc: (33,12)-(33,13) = "="
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (33,14)-(33,15))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ ├── rest: ∅
|
||||
│ │ │ ├── posts: (length: 0)
|
||||
│ │ │ ├── keywords: (length: 1)
|
||||
|
@ -579,7 +582,8 @@
|
|||
│ ├── name_loc: (37,0)-(37,4) = "fork"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (37,7)-(37,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (37,5)-(37,6) = "="
|
||||
├── @ CallNode (location: (38,0)-(39,3))
|
||||
│ ├── flags: ignore_visibility
|
||||
|
@ -715,14 +719,16 @@
|
|||
│ │ │ │ │ │ ├── name_loc: (49,2)-(49,4) = "a:"
|
||||
│ │ │ │ │ │ └── value:
|
||||
│ │ │ │ │ │ @ IntegerNode (location: (49,5)-(49,6))
|
||||
│ │ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ │ └── value: 1
|
||||
│ │ │ │ │ └── @ OptionalKeywordParameterNode (location: (50,2)-(50,6))
|
||||
│ │ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ │ ├── name: :b
|
||||
│ │ │ │ │ ├── name_loc: (50,2)-(50,4) = "b:"
|
||||
│ │ │ │ │ └── value:
|
||||
│ │ │ │ │ @ IntegerNode (location: (50,5)-(50,6))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 2
|
||||
│ │ │ │ ├── keyword_rest: ∅
|
||||
│ │ │ │ └── block: ∅
|
||||
│ │ │ ├── locals: (length: 0)
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
│ │ │ │ @ StatementsNode (location: (3,7)-(3,8))
|
||||
│ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (3,7)-(3,8))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── opening_loc: (3,6)-(3,7) = "("
|
||||
│ │ │ └── closing_loc: (3,8)-(3,9) = ")"
|
||||
│ │ ├── @ ParenthesesNode (location: (3,11)-(3,14))
|
||||
|
@ -24,7 +25,8 @@
|
|||
│ │ │ │ @ StatementsNode (location: (3,12)-(3,13))
|
||||
│ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (3,12)-(3,13))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ ├── opening_loc: (3,11)-(3,12) = "("
|
||||
│ │ │ └── closing_loc: (3,13)-(3,14) = ")"
|
||||
│ │ └── @ ParenthesesNode (location: (3,16)-(3,19))
|
||||
|
@ -32,7 +34,8 @@
|
|||
│ │ │ @ StatementsNode (location: (3,17)-(3,18))
|
||||
│ │ │ └── body: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (3,17)-(3,18))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── opening_loc: (3,16)-(3,17) = "("
|
||||
│ │ └── closing_loc: (3,18)-(3,19) = ")"
|
||||
│ └── keyword_loc: (3,0)-(3,5) = "break"
|
||||
|
@ -42,7 +45,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (5,6)-(5,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── keyword_loc: (5,0)-(5,5) = "break"
|
||||
├── @ BreakNode (location: (7,0)-(8,1))
|
||||
│ ├── arguments:
|
||||
|
@ -50,11 +54,14 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 3)
|
||||
│ │ ├── @ IntegerNode (location: (7,6)-(7,7))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── @ IntegerNode (location: (7,9)-(7,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── @ IntegerNode (location: (8,0)-(8,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── keyword_loc: (7,0)-(7,5) = "break"
|
||||
├── @ BreakNode (location: (10,0)-(10,13))
|
||||
│ ├── arguments:
|
||||
|
@ -62,11 +69,14 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 3)
|
||||
│ │ ├── @ IntegerNode (location: (10,6)-(10,7))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── @ IntegerNode (location: (10,9)-(10,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── @ IntegerNode (location: (10,12)-(10,13))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── keyword_loc: (10,0)-(10,5) = "break"
|
||||
├── @ BreakNode (location: (12,0)-(12,15))
|
||||
│ ├── arguments:
|
||||
|
@ -77,11 +87,14 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── elements: (length: 3)
|
||||
│ │ │ ├── @ IntegerNode (location: (12,7)-(12,8))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── @ IntegerNode (location: (12,10)-(12,11))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ └── @ IntegerNode (location: (12,13)-(12,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── opening_loc: (12,6)-(12,7) = "["
|
||||
│ │ └── closing_loc: (12,14)-(12,15) = "]"
|
||||
│ └── keyword_loc: (12,0)-(12,5) = "break"
|
||||
|
@ -95,9 +108,11 @@
|
|||
│ │ │ @ StatementsNode (location: (15,2)-(16,3))
|
||||
│ │ │ └── body: (length: 2)
|
||||
│ │ │ ├── @ IntegerNode (location: (15,2)-(15,3))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── @ IntegerNode (location: (16,2)-(16,3))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── opening_loc: (14,5)-(14,6) = "("
|
||||
│ │ └── closing_loc: (17,0)-(17,1) = ")"
|
||||
│ └── keyword_loc: (14,0)-(14,5) = "break"
|
||||
|
@ -121,7 +136,8 @@
|
|||
│ │ │ @ StatementsNode (location: (21,6)-(21,7))
|
||||
│ │ │ └── body: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (21,6)-(21,7))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── opening_loc: (21,5)-(21,6) = "("
|
||||
│ │ └── closing_loc: (21,7)-(21,8) = ")"
|
||||
│ └── keyword_loc: (21,0)-(21,5) = "break"
|
||||
|
@ -150,7 +166,8 @@
|
|||
│ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ └── arguments: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (23,12)-(23,14))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 42
|
||||
│ │ │ └── keyword_loc: (23,6)-(23,11) = "break"
|
||||
│ │ ├── opening_loc: (23,4)-(23,5) = "{"
|
||||
│ │ └── closing_loc: (23,15)-(23,16) = "}"
|
||||
|
@ -163,7 +180,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (23,20)-(23,22))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 42
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
└── @ CallNode (location: (25,0)-(25,23))
|
||||
|
@ -215,6 +233,7 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 1)
|
||||
│ └── @ IntegerNode (location: (25,21)-(25,23))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 42
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -269,7 +269,8 @@
|
|||
│ │ ├── keyword_loc: (32,14)-(32,18) = "when"
|
||||
│ │ ├── conditions: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (32,19)-(32,20))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── statements: ∅
|
||||
│ ├── consequent: ∅
|
||||
│ ├── case_keyword_loc: (32,0)-(32,4) = "case"
|
||||
|
@ -279,17 +280,20 @@
|
|||
│ │ @ MatchPredicateNode (location: (34,5)-(34,11))
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (34,5)-(34,6))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── pattern:
|
||||
│ │ │ @ IntegerNode (location: (34,10)-(34,11))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: (34,7)-(34,9) = "in"
|
||||
│ ├── conditions: (length: 1)
|
||||
│ │ └── @ WhenNode (location: (35,0)-(35,6))
|
||||
│ │ ├── keyword_loc: (35,0)-(35,4) = "when"
|
||||
│ │ ├── conditions: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (35,5)-(35,6))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ └── statements: ∅
|
||||
│ ├── consequent: ∅
|
||||
│ ├── case_keyword_loc: (34,0)-(34,4) = "case"
|
||||
|
@ -299,17 +303,20 @@
|
|||
│ │ @ MatchPredicateNode (location: (38,5)-(38,11))
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (38,5)-(38,6))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── pattern:
|
||||
│ │ │ @ IntegerNode (location: (38,10)-(38,11))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: (38,7)-(38,9) = "in"
|
||||
│ ├── conditions: (length: 1)
|
||||
│ │ └── @ WhenNode (location: (38,13)-(38,19))
|
||||
│ │ ├── keyword_loc: (38,13)-(38,17) = "when"
|
||||
│ │ ├── conditions: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (38,18)-(38,19))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ └── statements: ∅
|
||||
│ ├── consequent: ∅
|
||||
│ ├── case_keyword_loc: (38,0)-(38,4) = "case"
|
||||
|
@ -319,16 +326,19 @@
|
|||
│ │ @ MatchPredicateNode (location: (40,5)-(40,11))
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (40,5)-(40,6))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── pattern:
|
||||
│ │ │ @ IntegerNode (location: (40,10)-(40,11))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: (40,7)-(40,9) = "in"
|
||||
│ ├── conditions: (length: 1)
|
||||
│ │ └── @ InNode (location: (41,0)-(41,4))
|
||||
│ │ ├── pattern:
|
||||
│ │ │ @ IntegerNode (location: (41,3)-(41,4))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── statements: ∅
|
||||
│ │ ├── in_loc: (41,0)-(41,2) = "in"
|
||||
│ │ └── then_loc: ∅
|
||||
|
@ -340,16 +350,19 @@
|
|||
│ │ @ MatchPredicateNode (location: (44,5)-(44,11))
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (44,5)-(44,6))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── pattern:
|
||||
│ │ │ @ IntegerNode (location: (44,10)-(44,11))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: (44,7)-(44,9) = "in"
|
||||
│ ├── conditions: (length: 1)
|
||||
│ │ └── @ InNode (location: (44,13)-(44,17))
|
||||
│ │ ├── pattern:
|
||||
│ │ │ @ IntegerNode (location: (44,16)-(44,17))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── statements: ∅
|
||||
│ │ ├── in_loc: (44,13)-(44,15) = "in"
|
||||
│ │ └── then_loc: ∅
|
||||
|
@ -429,7 +442,8 @@
|
|||
├── flags: ∅
|
||||
├── receiver:
|
||||
│ @ IntegerNode (location: (51,0)-(51,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── call_operator_loc: (51,1)-(51,2) = "."
|
||||
├── name: :then
|
||||
├── message_loc: (51,2)-(51,6) = "then"
|
||||
|
@ -448,7 +462,8 @@
|
|||
│ └── @ CaseMatchNode (location: (52,2)-(54,5))
|
||||
│ ├── predicate:
|
||||
│ │ @ IntegerNode (location: (52,7)-(52,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── conditions: (length: 1)
|
||||
│ │ └── @ InNode (location: (53,2)-(53,8))
|
||||
│ │ ├── pattern:
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
│ │ ├── name_loc: (1,8)-(1,9) = "a"
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (1,12)-(1,13))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (1,10)-(1,11) = "="
|
||||
│ ├── end_keyword_loc: (1,14)-(1,17) = "end"
|
||||
│ └── name: :A
|
||||
|
@ -98,7 +99,8 @@
|
|||
│ │ ├── name_loc: (8,0)-(8,1) = "a"
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (8,4)-(8,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (8,2)-(8,3) = "="
|
||||
│ ├── end_keyword_loc: (9,0)-(9,3) = "end"
|
||||
│ └── name: :A
|
||||
|
@ -287,7 +289,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (29,0)-(29,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
│ │ ├── name: :+
|
||||
│ │ ├── message_loc: (29,2)-(29,3) = "+"
|
||||
|
@ -297,7 +300,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (29,4)-(29,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ └── end_keyword_loc: (30,0)-(30,3) = "end"
|
||||
|
@ -314,7 +318,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (32,14)-(32,15))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
│ │ ├── name: :+
|
||||
│ │ ├── message_loc: (32,16)-(32,17) = "+"
|
||||
|
@ -324,7 +329,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (32,18)-(32,19))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ └── end_keyword_loc: (32,20)-(32,23) = "end"
|
||||
|
@ -350,7 +356,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (34,12)-(34,13))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: (34,13)-(34,14) = "]"
|
||||
│ └── block: ∅
|
||||
├── body: ∅
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (1,4)-(1,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (3,0)-(3,9))
|
||||
|
@ -41,7 +42,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (3,8)-(3,9))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── closing_loc: ∅
|
||||
|
@ -61,7 +63,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (5,13)-(5,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── then_keyword_loc: ∅
|
||||
|
@ -80,7 +83,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (5,4)-(5,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── consequent: ∅
|
||||
|
@ -100,7 +104,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (7,17)-(7,18))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── then_keyword_loc: ∅
|
||||
|
@ -119,7 +124,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (7,4)-(7,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── consequent: ∅
|
||||
|
@ -141,7 +147,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (9,16)-(9,17))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ └── statements:
|
||||
|
@ -159,7 +166,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (9,4)-(9,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ UntilNode (location: (11,0)-(11,17))
|
||||
|
@ -179,7 +187,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (11,16)-(11,17))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ └── statements:
|
||||
|
@ -197,7 +206,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (11,4)-(11,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ RescueModifierNode (location: (13,0)-(13,18))
|
||||
|
@ -214,7 +224,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (13,4)-(13,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── keyword_loc: (13,6)-(13,12) = "rescue"
|
||||
|
@ -231,7 +242,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (13,17)-(13,18))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (15,0)-(15,10))
|
||||
|
@ -267,7 +279,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (15,8)-(15,9))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── closing_loc: (15,9)-(15,10) = "]"
|
||||
|
@ -286,7 +299,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (17,4)-(17,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── right:
|
||||
|
@ -302,7 +316,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (17,14)-(17,15))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ └── operator_loc: (17,6)-(17,9) = "and"
|
||||
|
@ -320,7 +335,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (19,4)-(19,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── right:
|
||||
|
@ -336,7 +352,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (19,13)-(19,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ └── operator_loc: (19,6)-(19,8) = "or"
|
||||
|
@ -355,7 +372,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (21,8)-(21,9))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -387,7 +405,8 @@
|
|||
│ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ └── arguments: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (23,16)-(23,17))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── closing_loc: ∅
|
||||
│ │ │ └── block: ∅
|
||||
│ │ └── operator_loc: (23,10)-(23,11) = "="
|
||||
|
@ -412,7 +431,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (25,14)-(25,15))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── locals: []
|
||||
|
@ -426,7 +446,8 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (27,0)-(27,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: (27,1)-(27,2) = "."
|
||||
│ ├── name: :foo
|
||||
│ ├── message_loc: (27,2)-(27,5) = "foo"
|
||||
|
@ -436,7 +457,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (27,6)-(27,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (29,0)-(29,11))
|
||||
|
@ -446,7 +468,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (29,0)-(29,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── call_operator_loc: (29,1)-(29,2) = "."
|
||||
│ │ ├── name: :foo
|
||||
│ │ ├── message_loc: (29,2)-(29,5) = "foo"
|
||||
|
@ -463,7 +486,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (29,10)-(29,11))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (31,0)-(31,14))
|
||||
|
@ -476,7 +500,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ ├── receiver:
|
||||
│ │ │ │ @ IntegerNode (location: (31,0)-(31,1))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── call_operator_loc: (31,1)-(31,2) = "."
|
||||
│ │ │ ├── name: :foo
|
||||
│ │ │ ├── message_loc: (31,2)-(31,5) = "foo"
|
||||
|
@ -493,7 +518,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (31,6)-(31,7))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: (31,7)-(31,8) = "]"
|
||||
│ │ └── block: ∅
|
||||
│ ├── call_operator_loc: (31,8)-(31,9) = "."
|
||||
|
@ -505,7 +531,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (31,13)-(31,14))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (33,0)-(33,14))
|
||||
|
@ -515,7 +542,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (33,0)-(33,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── call_operator_loc: (33,1)-(33,2) = "."
|
||||
│ │ ├── name: :foo
|
||||
│ │ ├── message_loc: (33,2)-(33,5) = "foo"
|
||||
|
@ -525,7 +553,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (33,6)-(33,7))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: (33,7)-(33,8) = ")"
|
||||
│ │ └── block: ∅
|
||||
│ ├── call_operator_loc: (33,8)-(33,9) = "."
|
||||
|
@ -537,7 +566,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (33,13)-(33,14))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (35,0)-(35,15))
|
||||
|
@ -547,7 +577,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (35,0)-(35,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── call_operator_loc: (35,1)-(35,2) = "."
|
||||
│ │ ├── name: :foo
|
||||
│ │ ├── message_loc: (35,2)-(35,5) = "foo"
|
||||
|
@ -558,7 +589,8 @@
|
|||
│ │ @ BlockArgumentNode (location: (35,6)-(35,8))
|
||||
│ │ ├── expression:
|
||||
│ │ │ @ IntegerNode (location: (35,7)-(35,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: (35,6)-(35,7) = "&"
|
||||
│ ├── call_operator_loc: (35,9)-(35,10) = "."
|
||||
│ ├── name: :bar
|
||||
|
@ -569,7 +601,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (35,14)-(35,15))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ AndNode (location: (37,0)-(37,17))
|
||||
|
@ -589,7 +622,8 @@
|
|||
│ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ └── arguments: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (37,5)-(37,6))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── closing_loc: ∅
|
||||
│ │ │ └── block: ∅
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
|
@ -615,7 +649,8 @@
|
|||
│ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ └── arguments: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (37,16)-(37,17))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ ├── closing_loc: ∅
|
||||
│ │ │ └── block: ∅
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
|
@ -643,7 +678,8 @@
|
|||
│ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ └── arguments: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (39,5)-(39,6))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── closing_loc: ∅
|
||||
│ │ │ └── block: ∅
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
|
@ -669,7 +705,8 @@
|
|||
│ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ └── arguments: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (39,15)-(39,16))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ ├── closing_loc: ∅
|
||||
│ │ │ └── block: ∅
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
|
@ -698,7 +735,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (41,9)-(41,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
|
|
@ -54,13 +54,15 @@
|
|||
│ ├── operator_loc: (7,5)-(7,6) = "="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (7,7)-(7,8))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ ConstantWriteNode (location: (9,0)-(9,5))
|
||||
│ ├── name: :A
|
||||
│ ├── name_loc: (9,0)-(9,1) = "A"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (9,4)-(9,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (9,2)-(9,3) = "="
|
||||
├── @ ConstantReadNode (location: (11,0)-(11,3))
|
||||
│ └── name: :ABC
|
||||
|
@ -76,7 +78,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (13,4)-(13,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (15,0)-(15,8))
|
||||
|
@ -268,7 +271,8 @@
|
|||
│ ├── operator_loc: (29,4)-(29,5) = "="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (29,6)-(29,7))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ ConstantPathWriteNode (location: (31,0)-(31,10))
|
||||
│ ├── target:
|
||||
│ │ @ ConstantPathNode (location: (31,0)-(31,6))
|
||||
|
@ -286,7 +290,8 @@
|
|||
│ ├── operator_loc: (31,7)-(31,8) = "="
|
||||
│ └── value:
|
||||
│ @ IntegerNode (location: (31,9)-(31,10))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ ConstantPathNode (location: (33,0)-(33,6))
|
||||
│ ├── parent:
|
||||
│ │ @ ConstantPathNode (location: (33,0)-(33,3))
|
||||
|
|
|
@ -198,7 +198,8 @@
|
|||
│ │ │ │ │ @ StatementsNode (location: (53,4)-(53,5))
|
||||
│ │ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ │ └── @ IntegerNode (location: (53,4)-(53,5))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 2
|
||||
│ │ │ │ └── closing_loc: (54,2)-(54,3) = "}"
|
||||
│ │ │ └── @ StringNode (location: (54,3)-(55,0))
|
||||
│ │ │ ├── flags: ∅
|
||||
|
@ -241,7 +242,8 @@
|
|||
│ │ │ │ @ StatementsNode (location: (62,2)-(62,3))
|
||||
│ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (62,2)-(62,3))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ └── closing_loc: (62,3)-(62,4) = "}"
|
||||
│ │ └── @ StringNode (location: (62,4)-(63,0))
|
||||
│ │ ├── flags: ∅
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
│ │ ├── lparen_loc: ∅
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rparen_loc: ∅
|
||||
│ │ └── keyword_loc: (1,0)-(1,8) = "defined?"
|
||||
│ ├── right:
|
||||
|
@ -17,7 +18,8 @@
|
|||
│ │ ├── lparen_loc: ∅
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (1,24)-(1,25))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── rparen_loc: ∅
|
||||
│ │ └── keyword_loc: (1,15)-(1,23) = "defined?"
|
||||
│ └── operator_loc: (1,11)-(1,14) = "and"
|
||||
|
@ -29,7 +31,8 @@
|
|||
│ │ ├── operator_loc: (3,11)-(3,13) = "%="
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (3,14)-(3,15))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── name: :x
|
||||
│ │ ├── operator: :%
|
||||
│ │ └── depth: 0
|
||||
|
@ -68,7 +71,8 @@
|
|||
│ ├── lparen_loc: ∅
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (7,9)-(7,10))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── rparen_loc: ∅
|
||||
│ └── keyword_loc: (7,0)-(7,8) = "defined?"
|
||||
└── @ DefinedNode (location: (9,0)-(10,1))
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 1)
|
||||
│ └── @ IntegerNode (location: (1,11)-(1,12))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
│ │ @ StatementsNode (location: (1,10)-(1,11))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (1,10)-(1,11))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── locals: []
|
||||
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
|
||||
│ ├── operator_loc: ∅
|
||||
|
@ -69,7 +70,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (5,13)-(5,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
│ │ ├── name: :+
|
||||
│ │ ├── message_loc: (5,15)-(5,16) = "+"
|
||||
|
@ -79,7 +81,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (5,17)-(5,18))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -91,7 +94,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (5,21)-(5,22))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── locals: []
|
||||
|
|
|
@ -10,10 +10,12 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (1,3)-(1,4))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (1,6)-(1,7))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: (1,4)-(1,6) = ".."
|
||||
│ ├── then_keyword_loc: ∅
|
||||
│ ├── statements: ∅
|
||||
|
@ -27,7 +29,8 @@
|
|||
│ │ ├── left: ∅
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (2,5)-(2,6))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (2,3)-(2,5) = ".."
|
||||
│ ├── then_keyword_loc: ∅
|
||||
│ ├── statements: ∅
|
||||
|
@ -40,7 +43,8 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── left:
|
||||
│ │ @ IntegerNode (location: (3,3)-(3,4))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── right: ∅
|
||||
│ └── operator_loc: (3,4)-(3,6) = ".."
|
||||
├── then_keyword_loc: ∅
|
||||
|
|
|
@ -13,10 +13,12 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (1,12)-(1,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 10
|
||||
│ │ └── operator_loc: (1,10)-(1,12) = ".."
|
||||
│ ├── statements:
|
||||
│ │ @ StatementsNode (location: (2,0)-(2,1))
|
||||
|
@ -38,10 +40,12 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (5,9)-(5,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (5,12)-(5,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 10
|
||||
│ │ └── operator_loc: (5,10)-(5,12) = ".."
|
||||
│ ├── statements:
|
||||
│ │ @ StatementsNode (location: (5,16)-(5,17))
|
||||
|
@ -72,10 +76,12 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (7,11)-(7,12))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (7,14)-(7,16))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 10
|
||||
│ │ └── operator_loc: (7,12)-(7,14) = ".."
|
||||
│ ├── statements:
|
||||
│ │ @ StatementsNode (location: (8,0)-(8,1))
|
||||
|
@ -109,10 +115,12 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (11,13)-(11,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (11,16)-(11,18))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 10
|
||||
│ │ └── operator_loc: (11,14)-(11,16) = ".."
|
||||
│ ├── statements:
|
||||
│ │ @ StatementsNode (location: (12,0)-(12,1))
|
||||
|
@ -134,10 +142,12 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (15,9)-(15,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (15,12)-(15,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 10
|
||||
│ │ └── operator_loc: (15,10)-(15,12) = ".."
|
||||
│ ├── statements:
|
||||
│ │ @ StatementsNode (location: (16,0)-(16,1))
|
||||
|
@ -159,10 +169,12 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── left:
|
||||
│ │ @ IntegerNode (location: (19,9)-(19,10))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (19,12)-(19,14))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 10
|
||||
│ └── operator_loc: (19,10)-(19,12) = ".."
|
||||
├── statements:
|
||||
│ @ StatementsNode (location: (19,16)-(19,17))
|
||||
|
|
|
@ -265,7 +265,8 @@
|
|||
│ ├── name_loc: (22,0)-(22,1) = "a"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (22,4)-(22,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (22,2)-(22,3) = "="
|
||||
├── @ CallNode (location: (23,0)-(26,3))
|
||||
│ ├── flags: ignore_visibility
|
||||
|
@ -289,7 +290,8 @@
|
|||
│ │ │ ├── name_loc: (24,2)-(24,3) = "b"
|
||||
│ │ │ ├── value:
|
||||
│ │ │ │ @ IntegerNode (location: (24,6)-(24,7))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── operator_loc: (24,4)-(24,5) = "="
|
||||
│ │ └── @ HashNode (location: (25,2)-(25,20))
|
||||
│ │ ├── opening_loc: (25,2)-(25,3) = "{"
|
||||
|
@ -376,6 +378,7 @@
|
|||
│ │ └── unescaped: "a"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (28,5)-(28,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: -1
|
||||
│ └── operator_loc: ∅
|
||||
└── closing_loc: (28,8)-(28,9) = "}"
|
||||
|
|
|
@ -62,7 +62,8 @@
|
|||
│ │ │ │ │ │ │ │ │ @ StatementsNode (location: (17,2)-(17,3))
|
||||
│ │ │ │ │ │ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ │ │ │ │ │ └── @ IntegerNode (location: (17,2)-(17,3))
|
||||
│ │ │ │ │ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ │ │ │ │ └── value: 3
|
||||
│ │ │ │ │ │ │ │ └── closing_loc: (17,3)-(17,4) = "}"
|
||||
│ │ │ │ │ │ │ └── @ StringNode (location: (17,4)-(18,0))
|
||||
│ │ │ │ │ │ │ ├── flags: ∅
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
│ │ @ StatementsNode (location: (1,9)-(1,10))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (1,9)-(1,10))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── consequent: ∅
|
||||
│ └── end_keyword_loc: (1,12)-(1,15) = "end"
|
||||
├── @ IfNode (location: (3,0)-(4,12))
|
||||
|
@ -24,7 +25,8 @@
|
|||
│ │ @ StatementsNode (location: (4,0)-(4,1))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (4,0)-(4,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── consequent:
|
||||
│ │ @ ElseNode (location: (4,2)-(4,12))
|
||||
│ │ ├── else_keyword_loc: (4,2)-(4,6) = "else"
|
||||
|
@ -32,7 +34,8 @@
|
|||
│ │ │ @ StatementsNode (location: (4,7)-(4,8))
|
||||
│ │ │ └── body: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (4,7)-(4,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── end_keyword_loc: (4,9)-(4,12) = "end"
|
||||
│ └── end_keyword_loc: (4,9)-(4,12) = "end"
|
||||
├── @ IfNode (location: (6,0)-(6,73))
|
||||
|
@ -84,7 +87,8 @@
|
|||
│ │ @ StatementsNode (location: (8,0)-(8,1))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (8,0)-(8,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── consequent: ∅
|
||||
│ └── end_keyword_loc: ∅
|
||||
├── @ IfNode (location: (10,0)-(10,13))
|
||||
|
@ -149,7 +153,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (16,24)-(16,26))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 42
|
||||
│ │ └── keyword_loc: (16,18)-(16,23) = "break"
|
||||
│ ├── consequent: ∅
|
||||
│ └── end_keyword_loc: (16,27)-(16,30) = "end"
|
||||
|
@ -299,7 +304,8 @@
|
|||
│ │ │ └── block: ∅
|
||||
│ │ ├── pattern:
|
||||
│ │ │ @ IntegerNode (location: (29,11)-(29,12))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (29,8)-(29,10) = "in"
|
||||
│ ├── then_keyword_loc: ∅
|
||||
│ ├── statements: ∅
|
||||
|
@ -332,7 +338,8 @@
|
|||
├── if_keyword_loc: (33,0)-(33,2) = "if"
|
||||
├── predicate:
|
||||
│ @ IntegerNode (location: (33,3)-(33,4))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── then_keyword_loc: ∅
|
||||
├── statements:
|
||||
│ @ StatementsNode (location: (34,2)-(35,5))
|
||||
|
@ -374,7 +381,8 @@
|
|||
│ ├── if_keyword_loc: (36,0)-(36,5) = "elsif"
|
||||
│ ├── predicate:
|
||||
│ │ @ IntegerNode (location: (36,6)-(36,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── then_keyword_loc: ∅
|
||||
│ ├── statements:
|
||||
│ │ @ StatementsNode (location: (37,2)-(38,5))
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (1,1)-(1,2))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :!
|
||||
│ ├── message_loc: (1,0)-(1,1) = "!"
|
||||
|
@ -19,7 +20,8 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (3,1)-(3,2))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :~
|
||||
│ ├── message_loc: (3,0)-(3,1) = "~"
|
||||
|
@ -31,7 +33,8 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (5,0)-(5,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :!=
|
||||
│ ├── message_loc: (5,2)-(5,4) = "!="
|
||||
|
@ -41,14 +44,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (5,5)-(5,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (7,0)-(7,6))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (7,0)-(7,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :!~
|
||||
│ ├── message_loc: (7,2)-(7,4) = "!~"
|
||||
|
@ -58,14 +63,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (7,5)-(7,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (9,0)-(9,5))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (9,0)-(9,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :%
|
||||
│ ├── message_loc: (9,2)-(9,3) = "%"
|
||||
|
@ -75,14 +82,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (9,4)-(9,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (11,0)-(11,5))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (11,0)-(11,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :&
|
||||
│ ├── message_loc: (11,2)-(11,3) = "&"
|
||||
|
@ -92,14 +101,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (11,4)-(11,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (13,0)-(13,5))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (13,0)-(13,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :*
|
||||
│ ├── message_loc: (13,2)-(13,3) = "*"
|
||||
|
@ -109,14 +120,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (13,4)-(13,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (15,0)-(15,4))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (15,0)-(15,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :**
|
||||
│ ├── message_loc: (15,1)-(15,3) = "**"
|
||||
|
@ -126,14 +139,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (15,3)-(15,4))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (17,0)-(17,5))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (17,0)-(17,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :+
|
||||
│ ├── message_loc: (17,2)-(17,3) = "+"
|
||||
|
@ -143,14 +158,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (17,4)-(17,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (19,0)-(19,5))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (19,0)-(19,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :-
|
||||
│ ├── message_loc: (19,2)-(19,3) = "-"
|
||||
|
@ -160,14 +177,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (19,4)-(19,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (21,0)-(21,5))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (21,0)-(21,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :/
|
||||
│ ├── message_loc: (21,2)-(21,3) = "/"
|
||||
|
@ -177,7 +196,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (21,4)-(21,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (23,0)-(23,5))
|
||||
|
@ -187,7 +207,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (23,0)-(23,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
│ │ ├── name: :/
|
||||
│ │ ├── message_loc: (23,1)-(23,2) = "/"
|
||||
|
@ -197,7 +218,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (23,2)-(23,3))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -209,14 +231,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (23,4)-(23,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (25,0)-(25,5))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (25,0)-(25,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :<
|
||||
│ ├── message_loc: (25,2)-(25,3) = "<"
|
||||
|
@ -226,14 +250,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (25,4)-(25,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (27,0)-(27,6))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (27,0)-(27,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :<<
|
||||
│ ├── message_loc: (27,2)-(27,4) = "<<"
|
||||
|
@ -243,14 +269,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (27,5)-(27,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (29,0)-(29,6))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (29,0)-(29,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :<=
|
||||
│ ├── message_loc: (29,2)-(29,4) = "<="
|
||||
|
@ -260,14 +288,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (29,5)-(29,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (31,0)-(31,7))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (31,0)-(31,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :<=>
|
||||
│ ├── message_loc: (31,2)-(31,5) = "<=>"
|
||||
|
@ -277,14 +307,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (31,6)-(31,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (33,0)-(33,6))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (33,0)-(33,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :==
|
||||
│ ├── message_loc: (33,2)-(33,4) = "=="
|
||||
|
@ -294,14 +326,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (33,5)-(33,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (35,0)-(35,7))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (35,0)-(35,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :===
|
||||
│ ├── message_loc: (35,2)-(35,5) = "==="
|
||||
|
@ -311,14 +345,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (35,6)-(35,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (37,0)-(37,6))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (37,0)-(37,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :=~
|
||||
│ ├── message_loc: (37,2)-(37,4) = "=~"
|
||||
|
@ -328,14 +364,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (37,5)-(37,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (39,0)-(39,5))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (39,0)-(39,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :>
|
||||
│ ├── message_loc: (39,2)-(39,3) = ">"
|
||||
|
@ -345,14 +383,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (39,4)-(39,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (41,0)-(41,6))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (41,0)-(41,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :>=
|
||||
│ ├── message_loc: (41,2)-(41,4) = ">="
|
||||
|
@ -362,14 +402,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (41,5)-(41,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (43,0)-(43,6))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (43,0)-(43,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :>>
|
||||
│ ├── message_loc: (43,2)-(43,4) = ">>"
|
||||
|
@ -379,14 +421,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (43,5)-(43,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (45,0)-(45,5))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (45,0)-(45,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :^
|
||||
│ ├── message_loc: (45,2)-(45,3) = "^"
|
||||
|
@ -396,14 +440,16 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (45,4)-(45,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (47,0)-(47,5))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (47,0)-(47,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :|
|
||||
│ ├── message_loc: (47,2)-(47,3) = "|"
|
||||
|
@ -413,30 +459,36 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (47,4)-(47,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ AndNode (location: (49,0)-(49,6))
|
||||
│ ├── left:
|
||||
│ │ @ IntegerNode (location: (49,0)-(49,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (49,5)-(49,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── operator_loc: (49,2)-(49,4) = "&&"
|
||||
├── @ AndNode (location: (51,0)-(51,7))
|
||||
│ ├── left:
|
||||
│ │ @ IntegerNode (location: (51,0)-(51,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (51,6)-(51,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── operator_loc: (51,2)-(51,5) = "and"
|
||||
├── @ CallNode (location: (53,0)-(53,10))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (53,0)-(53,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :*
|
||||
│ ├── message_loc: (53,2)-(53,3) = "*"
|
||||
|
@ -449,7 +501,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (53,4)-(53,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
│ │ ├── name: :**
|
||||
│ │ ├── message_loc: (53,6)-(53,8) = "**"
|
||||
|
@ -459,7 +512,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (53,9)-(53,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── closing_loc: ∅
|
||||
|
@ -471,7 +525,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (55,0)-(55,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
│ │ ├── name: :*
|
||||
│ │ ├── message_loc: (55,2)-(55,3) = "*"
|
||||
|
@ -481,7 +536,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (55,4)-(55,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -493,30 +549,36 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (55,8)-(55,9))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ OrNode (location: (57,0)-(57,6))
|
||||
│ ├── left:
|
||||
│ │ @ IntegerNode (location: (57,0)-(57,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (57,5)-(57,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── operator_loc: (57,2)-(57,4) = "or"
|
||||
├── @ OrNode (location: (59,0)-(59,6))
|
||||
│ ├── left:
|
||||
│ │ @ IntegerNode (location: (59,0)-(59,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (59,5)-(59,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── operator_loc: (59,2)-(59,4) = "||"
|
||||
├── @ CallNode (location: (61,0)-(61,9))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (61,0)-(61,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :+
|
||||
│ ├── message_loc: (61,2)-(61,3) = "+"
|
||||
|
@ -529,7 +591,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (61,4)-(61,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
│ │ ├── name: :*
|
||||
│ │ ├── message_loc: (61,6)-(61,7) = "*"
|
||||
|
@ -539,7 +602,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (61,8)-(61,9))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── closing_loc: ∅
|
||||
|
@ -552,7 +616,8 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (63,1)-(63,2))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :+
|
||||
│ ├── message_loc: (63,3)-(63,4) = "+"
|
||||
|
@ -562,7 +627,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (63,5)-(63,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── opening_loc: (63,0)-(63,1) = "("
|
||||
|
|
|
@ -118,7 +118,8 @@
|
|||
│ │ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ │ └── arguments: (length: 1)
|
||||
│ │ │ │ │ └── @ IntegerNode (location: (7,10)-(7,11))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 3
|
||||
│ │ │ │ ├── closing_loc: ∅
|
||||
│ │ │ │ └── block: ∅
|
||||
│ │ │ ├── keyword_rest: ∅
|
||||
|
|
|
@ -177,11 +177,14 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 3)
|
||||
│ │ ├── @ IntegerNode (location: (15,3)-(15,4))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── @ IntegerNode (location: (15,6)-(15,7))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── @ IntegerNode (location: (15,9)-(15,10))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ ├── closing_loc: (15,10)-(15,11) = ")"
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (17,0)-(17,4))
|
||||
|
@ -259,7 +262,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (21,10)-(21,11))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (23,0)-(23,2))
|
||||
|
@ -543,9 +547,11 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── elements: (length: 2)
|
||||
│ │ ├── @ IntegerNode (location: (41,19)-(41,20))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── @ IntegerNode (location: (41,22)-(41,23))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── opening_loc: ∅
|
||||
│ └── closing_loc: ∅
|
||||
├── @ CallNode (location: (43,0)-(43,4))
|
||||
|
@ -850,7 +856,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 2)
|
||||
│ │ ├── @ IntegerNode (location: (62,3)-(62,6))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 123
|
||||
│ │ └── @ HashNode (location: (62,8)-(62,49))
|
||||
│ │ ├── opening_loc: (62,8)-(62,9) = "{"
|
||||
│ │ ├── elements: (length: 3)
|
||||
|
@ -1335,7 +1342,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 2)
|
||||
│ │ ├── @ IntegerNode (location: (89,10)-(89,11))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── @ KeywordHashNode (location: (89,13)-(89,21))
|
||||
│ │ ├── flags: symbol_keys
|
||||
│ │ └── elements: (length: 1)
|
||||
|
@ -1349,7 +1357,8 @@
|
|||
│ │ │ └── unescaped: "kwarg"
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (89,20)-(89,21))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: ∅
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
|
@ -1367,7 +1376,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (91,15)-(91,17))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 10
|
||||
│ ├── closing_loc: (91,17)-(91,18) = ")"
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (93,0)-(93,10))
|
||||
|
@ -1537,7 +1547,8 @@
|
|||
│ │ │ └── unescaped: "a"
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (103,9)-(103,11))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: -1
|
||||
│ │ └── operator_loc: ∅
|
||||
│ ├── closing_loc: (103,11)-(103,12) = ")"
|
||||
│ └── block: ∅
|
||||
|
@ -1845,7 +1856,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ ├── receiver:
|
||||
│ │ │ │ @ IntegerNode (location: (117,8)-(117,9))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── call_operator_loc: (117,9)-(117,10) = "."
|
||||
│ │ │ ├── name: :times
|
||||
│ │ │ ├── message_loc: (117,10)-(117,15) = "times"
|
||||
|
@ -1860,7 +1872,8 @@
|
|||
│ │ │ │ @ StatementsNode (location: (117,19)-(117,20))
|
||||
│ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (117,19)-(117,20))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── opening_loc: (117,16)-(117,18) = "do"
|
||||
│ │ │ └── closing_loc: (117,21)-(117,24) = "end"
|
||||
│ │ ├── rescue_clause: ∅
|
||||
|
@ -2340,7 +2353,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 2)
|
||||
│ │ ├── @ IntegerNode (location: (151,4)-(151,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── @ CallNode (location: (151,7)-(151,16))
|
||||
│ │ ├── flags: ignore_visibility
|
||||
│ │ ├── receiver: ∅
|
||||
|
@ -2358,7 +2372,8 @@
|
|||
│ │ │ @ StatementsNode (location: (151,13)-(151,14))
|
||||
│ │ │ └── body: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (151,13)-(151,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── opening_loc: (151,11)-(151,12) = "{"
|
||||
│ │ └── closing_loc: (151,15)-(151,16) = "}"
|
||||
│ ├── closing_loc: ∅
|
||||
|
@ -2369,7 +2384,8 @@
|
|||
│ ├── name_loc: (153,0)-(153,3) = "foo"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (153,6)-(153,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (153,4)-(153,5) = "="
|
||||
├── @ CallNode (location: (154,0)-(154,6))
|
||||
│ ├── flags: ignore_visibility
|
||||
|
@ -2433,7 +2449,8 @@
|
|||
│ │ └── closing_loc: (156,14)-(156,16) = "\":"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (156,17)-(156,19))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 42
|
||||
│ └── operator_loc: ∅
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -63,7 +63,8 @@
|
|||
│ │ │ ├── operator_loc: (4,29)-(4,30) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (4,31)-(4,32))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 1)
|
||||
│ │ │ └── @ MultiTargetNode (location: (4,34)-(4,44))
|
||||
|
@ -370,7 +371,8 @@
|
|||
│ ├── name_loc: (44,0)-(44,1) = "a"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (44,4)-(44,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (44,2)-(44,3) = "="
|
||||
├── @ DefNode (location: (44,7)-(45,3))
|
||||
│ ├── name: :a
|
||||
|
@ -450,7 +452,8 @@
|
|||
│ │ │ ├── name_loc: (53,10)-(53,12) = "c:"
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (53,13)-(53,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── keyword_rest: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── body: ∅
|
||||
|
@ -482,7 +485,8 @@
|
|||
│ │ │ ├── name_loc: (56,10)-(56,12) = "c:"
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (56,13)-(56,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── keyword_rest: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── body: ∅
|
||||
|
@ -510,7 +514,8 @@
|
|||
│ │ │ │ ├── name_loc: (59,6)-(59,8) = "b:"
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (60,2)-(60,3))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── @ RequiredKeywordParameterNode (location: (60,5)-(60,7))
|
||||
│ │ │ ├── flags: ∅
|
||||
│ │ │ ├── name: :c
|
||||
|
@ -546,7 +551,8 @@
|
|||
│ │ │ │ ├── operator_loc: (65,8)-(65,9) = "="
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (65,10)-(65,11))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── @ OptionalParameterNode (location: (65,13)-(65,18))
|
||||
│ │ │ ├── flags: ∅
|
||||
│ │ │ ├── name: :c
|
||||
|
@ -554,7 +560,8 @@
|
|||
│ │ │ ├── operator_loc: (65,15)-(65,16) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (65,17)-(65,18))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── keywords: (length: 0)
|
||||
|
@ -599,7 +606,8 @@
|
|||
│ │ │ ├── operator_loc: (71,11)-(71,12) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (71,13)-(71,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── keywords: (length: 0)
|
||||
|
@ -738,7 +746,8 @@
|
|||
│ │ ├── name_loc: (86,0)-(86,1) = "b"
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (86,4)-(86,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (86,2)-(86,3) = "="
|
||||
│ ├── locals: [:b]
|
||||
│ ├── def_keyword_loc: (85,0)-(85,3) = "def"
|
||||
|
@ -840,7 +849,8 @@
|
|||
│ │ @ StatementsNode (location: (103,10)-(103,11))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (103,10)-(103,11))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── locals: []
|
||||
│ ├── def_keyword_loc: (103,0)-(103,3) = "def"
|
||||
│ ├── operator_loc: ∅
|
||||
|
@ -857,7 +867,8 @@
|
|||
│ │ @ StatementsNode (location: (104,10)-(104,11))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (104,10)-(104,11))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── locals: []
|
||||
│ ├── def_keyword_loc: (104,0)-(104,3) = "def"
|
||||
│ ├── operator_loc: ∅
|
||||
|
@ -885,7 +896,8 @@
|
|||
│ │ @ StatementsNode (location: (106,15)-(106,18))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (106,15)-(106,18))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 123
|
||||
│ ├── locals: [:bar]
|
||||
│ ├── def_keyword_loc: (106,0)-(106,3) = "def"
|
||||
│ ├── operator_loc: ∅
|
||||
|
@ -902,7 +914,8 @@
|
|||
│ │ @ StatementsNode (location: (108,10)-(108,13))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (108,10)-(108,13))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 123
|
||||
│ ├── locals: []
|
||||
│ ├── def_keyword_loc: (108,0)-(108,3) = "def"
|
||||
│ ├── operator_loc: ∅
|
||||
|
@ -1021,9 +1034,11 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 3)
|
||||
│ │ │ ├── @ IntegerNode (location: (114,14)-(114,15))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── @ IntegerNode (location: (114,17)-(114,18))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ └── @ ForwardingArgumentsNode (location: (114,20)-(114,23))
|
||||
│ │ ├── closing_loc: (114,23)-(114,24) = ")"
|
||||
│ │ └── block: ∅
|
||||
|
@ -1186,7 +1201,8 @@
|
|||
│ ├── name_loc: (133,0)-(133,5) = "Const"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (133,8)-(133,9))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (133,6)-(133,7) = "="
|
||||
├── @ DefNode (location: (133,11)-(134,3))
|
||||
│ ├── name: :a
|
||||
|
@ -1355,10 +1371,12 @@
|
|||
│ │ │ │ ├── flags: exclude_end
|
||||
│ │ │ │ ├── left:
|
||||
│ │ │ │ │ @ IntegerNode (location: (142,12)-(142,13))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 1
|
||||
│ │ │ │ ├── right:
|
||||
│ │ │ │ │ @ IntegerNode (location: (142,16)-(142,18))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 10
|
||||
│ │ │ │ └── operator_loc: (142,13)-(142,16) = "..."
|
||||
│ │ │ ├── opening_loc: (142,11)-(142,12) = "("
|
||||
│ │ │ └── closing_loc: (142,18)-(142,19) = ")"
|
||||
|
@ -1397,7 +1415,8 @@
|
|||
│ │ │ │ ├── left: ∅
|
||||
│ │ │ │ ├── right:
|
||||
│ │ │ │ │ @ IntegerNode (location: (145,15)-(145,17))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 10
|
||||
│ │ │ │ └── operator_loc: (145,12)-(145,15) = "..."
|
||||
│ │ │ ├── opening_loc: (145,11)-(145,12) = "("
|
||||
│ │ │ └── closing_loc: (145,17)-(145,18) = ")"
|
||||
|
@ -1435,7 +1454,8 @@
|
|||
│ │ │ │ ├── flags: exclude_end
|
||||
│ │ │ │ ├── left:
|
||||
│ │ │ │ │ @ IntegerNode (location: (148,12)-(148,13))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 1
|
||||
│ │ │ │ ├── right: ∅
|
||||
│ │ │ │ └── operator_loc: (148,13)-(148,16) = "..."
|
||||
│ │ │ ├── opening_loc: (148,11)-(148,12) = "("
|
||||
|
@ -1472,10 +1492,12 @@
|
|||
│ │ │ │ ├── flags: exclude_end
|
||||
│ │ │ │ ├── left:
|
||||
│ │ │ │ │ @ IntegerNode (location: (151,13)-(151,14))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 1
|
||||
│ │ │ │ ├── right:
|
||||
│ │ │ │ │ @ IntegerNode (location: (151,17)-(151,19))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 10
|
||||
│ │ │ │ └── operator_loc: (151,14)-(151,17) = "..."
|
||||
│ │ │ ├── opening_loc: (151,12)-(151,13) = "("
|
||||
│ │ │ └── closing_loc: (151,19)-(151,20) = ")"
|
||||
|
@ -1515,7 +1537,8 @@
|
|||
│ │ │ │ ├── left: ∅
|
||||
│ │ │ │ ├── right:
|
||||
│ │ │ │ │ @ IntegerNode (location: (154,16)-(154,18))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 10
|
||||
│ │ │ │ └── operator_loc: (154,13)-(154,16) = "..."
|
||||
│ │ │ ├── opening_loc: (154,12)-(154,13) = "("
|
||||
│ │ │ └── closing_loc: (154,18)-(154,19) = ")"
|
||||
|
@ -1554,7 +1577,8 @@
|
|||
│ │ │ │ ├── flags: exclude_end
|
||||
│ │ │ │ ├── left:
|
||||
│ │ │ │ │ @ IntegerNode (location: (157,13)-(157,14))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 1
|
||||
│ │ │ │ ├── right: ∅
|
||||
│ │ │ │ └── operator_loc: (157,14)-(157,17) = "..."
|
||||
│ │ │ ├── opening_loc: (157,12)-(157,13) = "("
|
||||
|
@ -1643,7 +1667,8 @@
|
|||
│ ├── name_loc: (164,0)-(164,3) = "foo"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (164,6)-(164,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (164,4)-(164,5) = "="
|
||||
├── @ DefNode (location: (165,0)-(165,16))
|
||||
│ ├── name: :bar
|
||||
|
@ -1952,7 +1977,8 @@
|
|||
│ │ │ │ │ ├── equal_loc: (181,28)-(181,29) = "="
|
||||
│ │ │ │ │ └── end_keyword_loc: ∅
|
||||
│ │ │ │ └── @ IntegerNode (location: (181,35)-(181,36))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── opening_loc: (181,14)-(181,15) = "("
|
||||
│ │ │ └── closing_loc: (181,36)-(181,37) = ")"
|
||||
│ │ ├── rest: ∅
|
||||
|
@ -1964,7 +1990,8 @@
|
|||
│ │ @ StatementsNode (location: (181,41)-(181,42))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (181,41)-(181,42))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── locals: [:bar]
|
||||
│ ├── def_keyword_loc: (181,0)-(181,3) = "def"
|
||||
│ ├── operator_loc: ∅
|
||||
|
@ -2002,7 +2029,8 @@
|
|||
│ │ ├── operator_loc: (183,29)-(183,30) = "="
|
||||
│ │ └── value:
|
||||
│ │ @ IntegerNode (location: (183,31)-(183,32))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── rest: ∅
|
||||
│ ├── posts: (length: 0)
|
||||
│ ├── keywords: (length: 0)
|
||||
|
@ -2012,7 +2040,8 @@
|
|||
│ @ StatementsNode (location: (183,36)-(183,37))
|
||||
│ └── body: (length: 1)
|
||||
│ └── @ IntegerNode (location: (183,36)-(183,37))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── locals: [:bar]
|
||||
├── def_keyword_loc: (183,0)-(183,3) = "def"
|
||||
├── operator_loc: (183,20)-(183,21) = "."
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
│ │ ├── name_loc: (1,9)-(1,10) = "a"
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (1,13)-(1,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (1,11)-(1,12) = "="
|
||||
│ ├── end_keyword_loc: (1,15)-(1,18) = "end"
|
||||
│ └── name: :A
|
||||
|
@ -95,7 +96,8 @@
|
|||
│ │ │ ├── name_loc: (9,1)-(9,2) = "x"
|
||||
│ │ │ ├── value:
|
||||
│ │ │ │ @ IntegerNode (location: (9,5)-(9,6))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── operator_loc: (9,3)-(9,4) = "="
|
||||
│ │ ├── rescue_clause:
|
||||
│ │ │ @ RescueNode (location: (9,8)-(9,14))
|
||||
|
@ -168,7 +170,8 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ └── arguments: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (17,9)-(17,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── closing_loc: (17,10)-(17,11) = "]"
|
||||
│ │ └── block: ∅
|
||||
│ ├── child:
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
│ │ │ │ @ StatementsNode (location: (3,6)-(3,7))
|
||||
│ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (3,6)-(3,7))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── opening_loc: (3,5)-(3,6) = "("
|
||||
│ │ │ └── closing_loc: (3,7)-(3,8) = ")"
|
||||
│ │ ├── @ ParenthesesNode (location: (3,10)-(3,13))
|
||||
|
@ -24,7 +25,8 @@
|
|||
│ │ │ │ @ StatementsNode (location: (3,11)-(3,12))
|
||||
│ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (3,11)-(3,12))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ ├── opening_loc: (3,10)-(3,11) = "("
|
||||
│ │ │ └── closing_loc: (3,12)-(3,13) = ")"
|
||||
│ │ └── @ ParenthesesNode (location: (3,15)-(3,18))
|
||||
|
@ -32,7 +34,8 @@
|
|||
│ │ │ @ StatementsNode (location: (3,16)-(3,17))
|
||||
│ │ │ └── body: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (3,16)-(3,17))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── opening_loc: (3,15)-(3,16) = "("
|
||||
│ │ └── closing_loc: (3,17)-(3,18) = ")"
|
||||
│ └── keyword_loc: (3,0)-(3,4) = "next"
|
||||
|
@ -42,7 +45,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (5,5)-(5,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── keyword_loc: (5,0)-(5,4) = "next"
|
||||
├── @ NextNode (location: (7,0)-(8,1))
|
||||
│ ├── arguments:
|
||||
|
@ -50,11 +54,14 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 3)
|
||||
│ │ ├── @ IntegerNode (location: (7,5)-(7,6))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── @ IntegerNode (location: (7,8)-(7,9))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── @ IntegerNode (location: (8,0)-(8,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── keyword_loc: (7,0)-(7,4) = "next"
|
||||
├── @ NextNode (location: (10,0)-(10,12))
|
||||
│ ├── arguments:
|
||||
|
@ -62,11 +69,14 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 3)
|
||||
│ │ ├── @ IntegerNode (location: (10,5)-(10,6))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── @ IntegerNode (location: (10,8)-(10,9))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── @ IntegerNode (location: (10,11)-(10,12))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── keyword_loc: (10,0)-(10,4) = "next"
|
||||
├── @ NextNode (location: (12,0)-(12,14))
|
||||
│ ├── arguments:
|
||||
|
@ -77,11 +87,14 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── elements: (length: 3)
|
||||
│ │ │ ├── @ IntegerNode (location: (12,6)-(12,7))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── @ IntegerNode (location: (12,9)-(12,10))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ └── @ IntegerNode (location: (12,12)-(12,13))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── opening_loc: (12,5)-(12,6) = "["
|
||||
│ │ └── closing_loc: (12,13)-(12,14) = "]"
|
||||
│ └── keyword_loc: (12,0)-(12,4) = "next"
|
||||
|
@ -95,9 +108,11 @@
|
|||
│ │ │ @ StatementsNode (location: (15,2)-(16,3))
|
||||
│ │ │ └── body: (length: 2)
|
||||
│ │ │ ├── @ IntegerNode (location: (15,2)-(15,3))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── @ IntegerNode (location: (16,2)-(16,3))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── opening_loc: (14,4)-(14,5) = "("
|
||||
│ │ └── closing_loc: (17,0)-(17,1) = ")"
|
||||
│ └── keyword_loc: (14,0)-(14,4) = "next"
|
||||
|
@ -105,7 +120,8 @@
|
|||
│ ├── arguments: ∅
|
||||
│ └── keyword_loc: (19,0)-(19,4) = "next"
|
||||
├── @ IntegerNode (location: (20,0)-(20,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ NextNode (location: (22,0)-(22,6))
|
||||
│ ├── arguments:
|
||||
│ │ @ ArgumentsNode (location: (22,4)-(22,6))
|
||||
|
@ -126,7 +142,8 @@
|
|||
│ │ @ StatementsNode (location: (24,5)-(24,6))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (24,5)-(24,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── opening_loc: (24,4)-(24,5) = "("
|
||||
│ └── closing_loc: (24,6)-(24,7) = ")"
|
||||
└── keyword_loc: (24,0)-(24,4) = "next"
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
│ │ @ StatementsNode (location: (10,6)-(10,7))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (10,6)-(10,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── keyword_loc: (10,0)-(10,3) = "END"
|
||||
│ ├── opening_loc: (10,4)-(10,5) = "{"
|
||||
│ └── closing_loc: (10,8)-(10,9) = "}"
|
||||
|
@ -26,7 +27,8 @@
|
|||
│ @ StatementsNode (location: (12,8)-(12,9))
|
||||
│ └── body: (length: 1)
|
||||
│ └── @ IntegerNode (location: (12,8)-(12,9))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── keyword_loc: (12,0)-(12,5) = "BEGIN"
|
||||
├── opening_loc: (12,6)-(12,7) = "{"
|
||||
└── closing_loc: (12,10)-(12,11) = "}"
|
||||
|
|
|
@ -4,58 +4,80 @@
|
|||
@ StatementsNode (location: (1,0)-(67,5))
|
||||
└── body: (length: 34)
|
||||
├── @ IntegerNode (location: (1,0)-(1,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 0
|
||||
├── @ IntegerNode (location: (3,0)-(3,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ FloatNode (location: (5,0)-(5,3))
|
||||
├── @ IntegerNode (location: (7,0)-(7,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── @ IntegerNode (location: (9,0)-(9,3))
|
||||
│ └── flags: binary
|
||||
│ ├── flags: binary
|
||||
│ └── value: 0
|
||||
├── @ IntegerNode (location: (11,0)-(11,3))
|
||||
│ └── flags: binary
|
||||
│ ├── flags: binary
|
||||
│ └── value: 1
|
||||
├── @ IntegerNode (location: (13,0)-(13,4))
|
||||
│ └── flags: binary
|
||||
│ ├── flags: binary
|
||||
│ └── value: 2
|
||||
├── @ IntegerNode (location: (15,0)-(15,3))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 0
|
||||
├── @ IntegerNode (location: (17,0)-(17,3))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IntegerNode (location: (19,0)-(19,3))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── @ IntegerNode (location: (21,0)-(21,2))
|
||||
│ └── flags: octal
|
||||
│ ├── flags: octal
|
||||
│ └── value: 0
|
||||
├── @ IntegerNode (location: (23,0)-(23,2))
|
||||
│ └── flags: octal
|
||||
│ ├── flags: octal
|
||||
│ └── value: 1
|
||||
├── @ IntegerNode (location: (25,0)-(25,2))
|
||||
│ └── flags: octal
|
||||
│ ├── flags: octal
|
||||
│ └── value: 2
|
||||
├── @ IntegerNode (location: (27,0)-(27,3))
|
||||
│ └── flags: octal
|
||||
│ ├── flags: octal
|
||||
│ └── value: 0
|
||||
├── @ IntegerNode (location: (29,0)-(29,3))
|
||||
│ └── flags: octal
|
||||
│ ├── flags: octal
|
||||
│ └── value: 1
|
||||
├── @ IntegerNode (location: (31,0)-(31,3))
|
||||
│ └── flags: octal
|
||||
│ ├── flags: octal
|
||||
│ └── value: 2
|
||||
├── @ IntegerNode (location: (33,0)-(33,3))
|
||||
│ └── flags: hexadecimal
|
||||
│ ├── flags: hexadecimal
|
||||
│ └── value: 0
|
||||
├── @ IntegerNode (location: (35,0)-(35,3))
|
||||
│ └── flags: hexadecimal
|
||||
│ ├── flags: hexadecimal
|
||||
│ └── value: 1
|
||||
├── @ IntegerNode (location: (37,0)-(37,3))
|
||||
│ └── flags: hexadecimal
|
||||
│ ├── flags: hexadecimal
|
||||
│ └── value: 2
|
||||
├── @ ImaginaryNode (location: (39,0)-(39,2))
|
||||
│ └── numeric:
|
||||
│ @ IntegerNode (location: (39,0)-(39,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ RationalNode (location: (41,0)-(41,2))
|
||||
│ └── numeric:
|
||||
│ @ IntegerNode (location: (41,0)-(41,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ IntegerNode (location: (43,0)-(43,2))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: -1
|
||||
├── @ ImaginaryNode (location: (45,0)-(45,3))
|
||||
│ └── numeric:
|
||||
│ @ RationalNode (location: (45,0)-(45,2))
|
||||
│ └── numeric:
|
||||
│ @ IntegerNode (location: (45,0)-(45,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ RationalNode (location: (47,0)-(47,4))
|
||||
│ └── numeric:
|
||||
│ @ FloatNode (location: (47,0)-(47,3))
|
||||
|
@ -69,7 +91,8 @@
|
|||
│ @ RationalNode (location: (51,0)-(51,3))
|
||||
│ └── numeric:
|
||||
│ @ IntegerNode (location: (51,0)-(51,2))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: -1
|
||||
├── @ RationalNode (location: (53,0)-(53,5))
|
||||
│ └── numeric:
|
||||
│ @ FloatNode (location: (53,0)-(53,4))
|
||||
|
@ -81,28 +104,34 @@
|
|||
├── @ RationalNode (location: (57,0)-(57,4))
|
||||
│ └── numeric:
|
||||
│ @ IntegerNode (location: (57,0)-(57,3))
|
||||
│ └── flags: octal
|
||||
│ ├── flags: octal
|
||||
│ └── value: 1
|
||||
├── @ ImaginaryNode (location: (59,0)-(59,4))
|
||||
│ └── numeric:
|
||||
│ @ IntegerNode (location: (59,0)-(59,3))
|
||||
│ └── flags: octal
|
||||
│ ├── flags: octal
|
||||
│ └── value: 1
|
||||
├── @ ImaginaryNode (location: (61,0)-(61,5))
|
||||
│ └── numeric:
|
||||
│ @ RationalNode (location: (61,0)-(61,4))
|
||||
│ └── numeric:
|
||||
│ @ IntegerNode (location: (61,0)-(61,3))
|
||||
│ └── flags: octal
|
||||
│ ├── flags: octal
|
||||
│ └── value: 1
|
||||
├── @ RationalNode (location: (63,0)-(63,4))
|
||||
│ └── numeric:
|
||||
│ @ IntegerNode (location: (63,0)-(63,3))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ ImaginaryNode (location: (65,0)-(65,4))
|
||||
│ └── numeric:
|
||||
│ @ IntegerNode (location: (65,0)-(65,3))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
└── @ ImaginaryNode (location: (67,0)-(67,5))
|
||||
└── numeric:
|
||||
@ RationalNode (location: (67,0)-(67,4))
|
||||
└── numeric:
|
||||
@ IntegerNode (location: (67,0)-(67,3))
|
||||
└── flags: binary
|
||||
├── flags: binary
|
||||
└── value: 1
|
||||
|
|
|
@ -34,7 +34,8 @@
|
|||
│ │ └── block: ∅
|
||||
│ ├── pattern:
|
||||
│ │ @ IntegerNode (location: (2,7)-(2,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (2,4)-(2,6) = "=>"
|
||||
├── @ MatchRequiredNode (location: (3,0)-(3,10))
|
||||
│ ├── value:
|
||||
|
@ -67,7 +68,8 @@
|
|||
│ │ @ ImaginaryNode (location: (4,7)-(4,9))
|
||||
│ │ └── numeric:
|
||||
│ │ @ IntegerNode (location: (4,7)-(4,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (4,4)-(4,6) = "=>"
|
||||
├── @ MatchRequiredNode (location: (5,0)-(5,9))
|
||||
│ ├── value:
|
||||
|
@ -85,7 +87,8 @@
|
|||
│ │ @ RationalNode (location: (5,7)-(5,9))
|
||||
│ │ └── numeric:
|
||||
│ │ @ IntegerNode (location: (5,7)-(5,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (5,4)-(5,6) = "=>"
|
||||
├── @ MatchRequiredNode (location: (6,0)-(6,11))
|
||||
│ ├── value:
|
||||
|
@ -516,10 +519,12 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (28,7)-(28,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (28,12)-(28,13))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (28,9)-(28,11) = ".."
|
||||
│ └── operator_loc: (28,4)-(28,6) = "=>"
|
||||
├── @ MatchRequiredNode (location: (29,0)-(29,17))
|
||||
|
@ -562,12 +567,14 @@
|
|||
│ │ │ @ ImaginaryNode (location: (30,7)-(30,9))
|
||||
│ │ │ └── numeric:
|
||||
│ │ │ @ IntegerNode (location: (30,7)-(30,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right:
|
||||
│ │ │ @ ImaginaryNode (location: (30,13)-(30,15))
|
||||
│ │ │ └── numeric:
|
||||
│ │ │ @ IntegerNode (location: (30,13)-(30,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (30,10)-(30,12) = ".."
|
||||
│ └── operator_loc: (30,4)-(30,6) = "=>"
|
||||
├── @ MatchRequiredNode (location: (31,0)-(31,15))
|
||||
|
@ -589,12 +596,14 @@
|
|||
│ │ │ @ RationalNode (location: (31,7)-(31,9))
|
||||
│ │ │ └── numeric:
|
||||
│ │ │ @ IntegerNode (location: (31,7)-(31,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right:
|
||||
│ │ │ @ RationalNode (location: (31,13)-(31,15))
|
||||
│ │ │ └── numeric:
|
||||
│ │ │ @ IntegerNode (location: (31,13)-(31,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (31,10)-(31,12) = ".."
|
||||
│ └── operator_loc: (31,4)-(31,6) = "=>"
|
||||
├── @ MatchRequiredNode (location: (32,0)-(32,19))
|
||||
|
@ -1238,7 +1247,8 @@
|
|||
│ ├── name_loc: (54,0)-(54,3) = "bar"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (54,6)-(54,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (54,4)-(54,5) = "="
|
||||
├── @ MatchRequiredNode (location: (54,9)-(54,20))
|
||||
│ ├── value:
|
||||
|
@ -1333,7 +1343,8 @@
|
|||
│ │ @ PinnedExpressionNode (location: (59,7)-(59,11))
|
||||
│ │ ├── expression:
|
||||
│ │ │ @ IntegerNode (location: (59,9)-(59,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── operator_loc: (59,7)-(59,8) = "^"
|
||||
│ │ ├── lparen_loc: (59,8)-(59,9) = "("
|
||||
│ │ └── rparen_loc: (59,10)-(59,11) = ")"
|
||||
|
@ -1540,7 +1551,8 @@
|
|||
│ │ │ └── name: :Foo
|
||||
│ │ ├── requireds: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (69,11)-(69,12))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── opening_loc: (69,10)-(69,11) = "("
|
||||
|
@ -1565,11 +1577,14 @@
|
|||
│ │ │ └── name: :Foo
|
||||
│ │ ├── requireds: (length: 3)
|
||||
│ │ │ ├── @ IntegerNode (location: (70,11)-(70,12))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── @ IntegerNode (location: (70,14)-(70,15))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ └── @ IntegerNode (location: (70,17)-(70,18))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── opening_loc: (70,10)-(70,11) = "("
|
||||
|
@ -1745,7 +1760,8 @@
|
|||
│ │ │ └── name: :Foo
|
||||
│ │ ├── requireds: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (77,11)-(77,12))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── opening_loc: (77,10)-(77,11) = "["
|
||||
|
@ -1770,11 +1786,14 @@
|
|||
│ │ │ └── name: :Foo
|
||||
│ │ ├── requireds: (length: 3)
|
||||
│ │ │ ├── @ IntegerNode (location: (78,11)-(78,12))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── @ IntegerNode (location: (78,14)-(78,15))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ └── @ IntegerNode (location: (78,17)-(78,18))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── opening_loc: (78,10)-(78,11) = "["
|
||||
|
@ -2390,7 +2409,8 @@
|
|||
│ │ └── block: ∅
|
||||
│ ├── pattern:
|
||||
│ │ @ IntegerNode (location: (105,7)-(105,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (105,4)-(105,6) = "in"
|
||||
├── @ MatchPredicateNode (location: (106,0)-(106,10))
|
||||
│ ├── value:
|
||||
|
@ -2423,7 +2443,8 @@
|
|||
│ │ @ ImaginaryNode (location: (107,7)-(107,9))
|
||||
│ │ └── numeric:
|
||||
│ │ @ IntegerNode (location: (107,7)-(107,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (107,4)-(107,6) = "in"
|
||||
├── @ MatchPredicateNode (location: (108,0)-(108,9))
|
||||
│ ├── value:
|
||||
|
@ -2441,7 +2462,8 @@
|
|||
│ │ @ RationalNode (location: (108,7)-(108,9))
|
||||
│ │ └── numeric:
|
||||
│ │ @ IntegerNode (location: (108,7)-(108,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (108,4)-(108,6) = "in"
|
||||
├── @ MatchPredicateNode (location: (109,0)-(109,11))
|
||||
│ ├── value:
|
||||
|
@ -2920,7 +2942,8 @@
|
|||
│ │ └── @ InNode (location: (136,10)-(136,19))
|
||||
│ │ ├── pattern:
|
||||
│ │ │ @ IntegerNode (location: (136,13)-(136,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── statements: ∅
|
||||
│ │ ├── in_loc: (136,10)-(136,12) = "in"
|
||||
│ │ └── then_loc: (136,15)-(136,19) = "then"
|
||||
|
@ -2967,7 +2990,8 @@
|
|||
│ │ │ @ ImaginaryNode (location: (138,13)-(138,15))
|
||||
│ │ │ └── numeric:
|
||||
│ │ │ @ IntegerNode (location: (138,13)-(138,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── statements: ∅
|
||||
│ │ ├── in_loc: (138,10)-(138,12) = "in"
|
||||
│ │ └── then_loc: (138,16)-(138,20) = "then"
|
||||
|
@ -2992,7 +3016,8 @@
|
|||
│ │ │ @ RationalNode (location: (139,13)-(139,15))
|
||||
│ │ │ └── numeric:
|
||||
│ │ │ @ IntegerNode (location: (139,13)-(139,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── statements: ∅
|
||||
│ │ ├── in_loc: (139,10)-(139,12) = "in"
|
||||
│ │ └── then_loc: (139,16)-(139,20) = "then"
|
||||
|
@ -3620,7 +3645,8 @@
|
|||
│ │ │ │ @ StatementsNode (location: (163,13)-(163,14))
|
||||
│ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (163,13)-(163,14))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── consequent: ∅
|
||||
│ │ │ └── end_keyword_loc: ∅
|
||||
│ │ ├── statements: ∅
|
||||
|
@ -3691,7 +3717,8 @@
|
|||
│ │ │ │ └── @ ImaginaryNode (location: (165,13)-(165,15))
|
||||
│ │ │ │ └── numeric:
|
||||
│ │ │ │ @ IntegerNode (location: (165,13)-(165,14))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── consequent: ∅
|
||||
│ │ │ └── end_keyword_loc: ∅
|
||||
│ │ ├── statements: ∅
|
||||
|
@ -3728,7 +3755,8 @@
|
|||
│ │ │ │ └── @ RationalNode (location: (166,13)-(166,15))
|
||||
│ │ │ │ └── numeric:
|
||||
│ │ │ │ @ IntegerNode (location: (166,13)-(166,14))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── consequent: ∅
|
||||
│ │ │ └── end_keyword_loc: ∅
|
||||
│ │ ├── statements: ∅
|
||||
|
@ -4722,9 +4750,11 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── elements: (length: 2)
|
||||
│ │ ├── @ IntegerNode (location: (205,16)-(205,17))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── @ IntegerNode (location: (205,19)-(205,20))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── opening_loc: ∅
|
||||
│ └── closing_loc: ∅
|
||||
├── @ CallNode (location: (206,0)-(208,3))
|
||||
|
@ -4749,9 +4779,11 @@
|
|||
│ │ │ ├── flags: ∅
|
||||
│ │ │ ├── elements: (length: 2)
|
||||
│ │ │ │ ├── @ IntegerNode (location: (207,3)-(207,4))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 1
|
||||
│ │ │ │ └── @ IntegerNode (location: (207,6)-(207,7))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ ├── opening_loc: (207,2)-(207,3) = "["
|
||||
│ │ │ └── closing_loc: (207,7)-(207,8) = "]"
|
||||
│ │ ├── pattern:
|
||||
|
@ -4819,7 +4851,8 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (212,0)-(212,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── call_operator_loc: (212,1)-(212,2) = "."
|
||||
│ ├── name: :then
|
||||
│ ├── message_loc: (212,2)-(212,6) = "then"
|
||||
|
@ -4838,7 +4871,8 @@
|
|||
│ │ └── @ MatchPredicateNode (location: (212,9)-(212,17))
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (212,9)-(212,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── pattern:
|
||||
│ │ │ @ PinnedVariableNode (location: (212,14)-(212,17))
|
||||
│ │ │ ├── variable:
|
||||
|
|
|
@ -146,7 +146,8 @@
|
|||
│ │ │ │ ├── operator_loc: (17,8)-(17,9) = "="
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (17,10)-(17,11))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── rest: ∅
|
||||
│ │ │ ├── posts: (length: 0)
|
||||
│ │ │ ├── keywords: (length: 2)
|
||||
|
@ -195,7 +196,8 @@
|
|||
│ │ │ │ ├── operator_loc: (19,9)-(19,10) = "="
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (19,11)-(19,12))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── rest:
|
||||
│ │ │ │ @ RestParameterNode (location: (19,14)-(19,16))
|
||||
│ │ │ │ ├── flags: ∅
|
||||
|
@ -254,7 +256,8 @@
|
|||
│ │ │ │ ├── operator_loc: (21,9)-(21,10) = "="
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (21,11)-(21,12))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ ├── rest:
|
||||
│ │ │ │ @ RestParameterNode (location: (21,14)-(21,16))
|
||||
│ │ │ │ ├── flags: ∅
|
||||
|
|
|
@ -8,5 +8,6 @@
|
|||
├── left: ∅
|
||||
├── right:
|
||||
│ @ IntegerNode (location: (1,3)-(1,4))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
└── operator_loc: (1,0)-(1,3) = "..."
|
||||
|
|
|
@ -8,5 +8,6 @@
|
|||
├── left: ∅
|
||||
├── right:
|
||||
│ @ IntegerNode (location: (1,2)-(1,3))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
└── operator_loc: (1,0)-(1,2) = ".."
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
├── flags: exclude_end
|
||||
├── left:
|
||||
│ @ IntegerNode (location: (1,0)-(1,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── right: ∅
|
||||
└── operator_loc: (1,1)-(1,4) = "..."
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
├── flags: ∅
|
||||
├── left:
|
||||
│ @ IntegerNode (location: (1,0)-(1,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── right: ∅
|
||||
└── operator_loc: (1,1)-(1,3) = ".."
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
│ │ ├── left: ∅
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (1,4)-(1,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: (1,1)-(1,4) = "..."
|
||||
│ ├── opening_loc: (1,0)-(1,1) = "("
|
||||
│ └── closing_loc: (1,5)-(1,6) = ")"
|
||||
|
@ -25,7 +26,8 @@
|
|||
│ │ ├── left: ∅
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (3,3)-(3,4))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: (3,1)-(3,3) = ".."
|
||||
│ ├── opening_loc: (3,0)-(3,1) = "("
|
||||
│ └── closing_loc: (3,4)-(3,5) = ")"
|
||||
|
@ -33,10 +35,12 @@
|
|||
│ ├── flags: exclude_end
|
||||
│ ├── left:
|
||||
│ │ @ IntegerNode (location: (5,0)-(5,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (5,4)-(5,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── operator_loc: (5,1)-(5,4) = "..."
|
||||
├── @ CallNode (location: (7,0)-(7,9))
|
||||
│ ├── flags: ∅
|
||||
|
@ -64,7 +68,8 @@
|
|||
│ │ ├── left: ∅
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (7,7)-(7,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: (7,4)-(7,7) = "..."
|
||||
│ ├── closing_loc: (7,8)-(7,9) = "]"
|
||||
│ └── block: ∅
|
||||
|
@ -105,7 +110,8 @@
|
|||
│ │ ├── flags: exclude_end
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (11,1)-(11,2))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (11,2)-(11,5) = "..."
|
||||
│ ├── opening_loc: (11,0)-(11,1) = "("
|
||||
|
@ -114,10 +120,12 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── left:
|
||||
│ │ @ IntegerNode (location: (13,0)-(13,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (13,3)-(13,4))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── operator_loc: (13,1)-(13,3) = ".."
|
||||
├── @ HashNode (location: (15,0)-(15,14))
|
||||
│ ├── opening_loc: (15,0)-(15,1) = "{"
|
||||
|
@ -156,7 +164,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (17,1)-(17,2))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (17,2)-(17,4) = ".."
|
||||
│ ├── opening_loc: (17,0)-(17,1) = "("
|
||||
|
@ -165,14 +174,16 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── left:
|
||||
│ │ @ IntegerNode (location: (19,0)-(19,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── right:
|
||||
│ │ @ RangeNode (location: (19,5)-(19,8))
|
||||
│ │ ├── flags: ∅
|
||||
│ │ ├── left: ∅
|
||||
│ │ ├── right:
|
||||
│ │ │ @ IntegerNode (location: (19,7)-(19,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (19,5)-(19,7) = ".."
|
||||
│ └── operator_loc: (19,2)-(19,4) = ".."
|
||||
├── @ AndNode (location: (21,0)-(21,8))
|
||||
|
@ -181,12 +192,14 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (21,0)-(21,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (21,1)-(21,3) = ".."
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (21,7)-(21,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── operator_loc: (21,4)-(21,6) = "&&"
|
||||
├── @ CallNode (location: (23,0)-(23,8))
|
||||
│ ├── flags: ∅
|
||||
|
@ -195,7 +208,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (23,0)-(23,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (23,1)-(23,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -207,7 +221,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (23,7)-(23,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (25,0)-(25,8))
|
||||
|
@ -217,7 +232,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (25,0)-(25,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (25,1)-(25,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -229,7 +245,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (25,7)-(25,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (27,0)-(27,9))
|
||||
|
@ -239,7 +256,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (27,0)-(27,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (27,1)-(27,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -251,7 +269,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (27,8)-(27,9))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (29,0)-(29,9))
|
||||
|
@ -261,7 +280,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (29,0)-(29,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (29,1)-(29,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -273,7 +293,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (29,8)-(29,9))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (31,0)-(31,8))
|
||||
|
@ -283,7 +304,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (31,0)-(31,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (31,1)-(31,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -295,7 +317,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (31,7)-(31,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (33,0)-(33,8))
|
||||
|
@ -305,7 +328,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (33,0)-(33,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (33,1)-(33,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -317,7 +341,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (33,7)-(33,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (35,0)-(35,7))
|
||||
|
@ -327,7 +352,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (35,0)-(35,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (35,1)-(35,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -339,7 +365,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (35,6)-(35,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (37,0)-(37,7))
|
||||
|
@ -349,7 +376,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (37,0)-(37,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (37,1)-(37,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -361,7 +389,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (37,6)-(37,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (39,0)-(39,8))
|
||||
|
@ -371,7 +400,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (39,0)-(39,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (39,1)-(39,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -383,7 +413,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (39,7)-(39,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (41,0)-(41,8))
|
||||
|
@ -393,7 +424,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (41,0)-(41,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (41,1)-(41,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -405,7 +437,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (41,7)-(41,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (43,0)-(43,8))
|
||||
|
@ -415,7 +448,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (43,0)-(43,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (43,1)-(43,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -427,7 +461,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (43,7)-(43,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ CallNode (location: (45,0)-(45,8))
|
||||
|
@ -437,7 +472,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── left:
|
||||
│ │ │ @ IntegerNode (location: (45,0)-(45,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── right: ∅
|
||||
│ │ └── operator_loc: (45,1)-(45,3) = ".."
|
||||
│ ├── call_operator_loc: ∅
|
||||
|
@ -449,20 +485,23 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (45,7)-(45,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── @ RangeNode (location: (47,0)-(47,7))
|
||||
│ ├── flags: ∅
|
||||
│ ├── left:
|
||||
│ │ @ IntegerNode (location: (47,0)-(47,1))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── right:
|
||||
│ │ @ CallNode (location: (47,4)-(47,7))
|
||||
│ │ ├── flags: ∅
|
||||
│ │ ├── receiver:
|
||||
│ │ │ @ IntegerNode (location: (47,6)-(47,7))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── call_operator_loc: ∅
|
||||
│ │ ├── name: :+@
|
||||
│ │ ├── message_loc: (47,4)-(47,5) = "+"
|
||||
|
@ -475,13 +514,15 @@
|
|||
├── flags: ∅
|
||||
├── left:
|
||||
│ @ IntegerNode (location: (49,0)-(49,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── right:
|
||||
│ @ CallNode (location: (49,4)-(49,7))
|
||||
│ ├── flags: ∅
|
||||
│ ├── receiver:
|
||||
│ │ @ IntegerNode (location: (49,6)-(49,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── call_operator_loc: ∅
|
||||
│ ├── name: :-@
|
||||
│ ├── message_loc: (49,4)-(49,5) = "-"
|
||||
|
|
|
@ -313,7 +313,8 @@
|
|||
│ ├── name_loc: (39,0)-(39,1) = "a"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (39,4)-(39,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (39,2)-(39,3) = "="
|
||||
└── @ CallNode (location: (40,0)-(40,24))
|
||||
├── flags: ignore_visibility
|
||||
|
|
|
@ -294,7 +294,8 @@
|
|||
│ │ │ │ ├── operator_loc: (22,11)-(22,12) = "="
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (22,13)-(22,14))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── @ OptionalParameterNode (location: (22,16)-(22,22))
|
||||
│ │ │ ├── flags: repeated_parameter
|
||||
│ │ │ ├── name: :_a
|
||||
|
@ -302,7 +303,8 @@
|
|||
│ │ │ ├── operator_loc: (22,19)-(22,20) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (22,21)-(22,22))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── keywords: (length: 0)
|
||||
|
@ -362,14 +364,16 @@
|
|||
│ │ │ │ ├── name_loc: (28,8)-(28,11) = "_a:"
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (28,12)-(28,13))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── @ OptionalKeywordParameterNode (location: (28,15)-(28,20))
|
||||
│ │ │ ├── flags: repeated_parameter
|
||||
│ │ │ ├── name: :_a
|
||||
│ │ │ ├── name_loc: (28,15)-(28,18) = "_a:"
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (28,19)-(28,20))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── keyword_rest: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── body: ∅
|
||||
|
|
|
@ -76,7 +76,8 @@
|
|||
│ │ @ NilNode (location: (12,11)-(12,14))
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (12,18)-(12,19))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (12,15)-(12,17) = "||"
|
||||
├── @ RescueModifierNode (location: (14,0)-(14,22))
|
||||
│ ├── expression:
|
||||
|
@ -101,7 +102,8 @@
|
|||
│ │ @ StatementsNode (location: (14,17)-(14,18))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (14,17)-(14,18))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── consequent:
|
||||
│ │ @ ElseNode (location: (14,19)-(14,22))
|
||||
│ │ ├── else_keyword_loc: (14,19)-(14,20) = ":"
|
||||
|
@ -109,7 +111,8 @@
|
|||
│ │ │ @ StatementsNode (location: (14,21)-(14,22))
|
||||
│ │ │ └── body: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (14,21)-(14,22))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── end_keyword_loc: ∅
|
||||
│ └── end_keyword_loc: ∅
|
||||
├── @ BeginNode (location: (16,0)-(16,24))
|
||||
|
@ -306,7 +309,8 @@
|
|||
│ │ │ │ ├── flags: ∅
|
||||
│ │ │ │ └── arguments: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (26,31)-(26,33))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 42
|
||||
│ │ │ ├── closing_loc: ∅
|
||||
│ │ │ └── block: ∅
|
||||
│ │ ├── keyword_loc: (26,34)-(26,40) = "rescue"
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
│ │ │ @ StatementsNode (location: (3,8)-(3,9))
|
||||
│ │ │ └── body: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (3,8)-(3,9))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── opening_loc: (3,7)-(3,8) = "("
|
||||
│ │ └── closing_loc: (3,9)-(3,10) = ")"
|
||||
│ ├── @ ParenthesesNode (location: (3,12)-(3,15))
|
||||
|
@ -25,7 +26,8 @@
|
|||
│ │ │ @ StatementsNode (location: (3,13)-(3,14))
|
||||
│ │ │ └── body: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (3,13)-(3,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── opening_loc: (3,12)-(3,13) = "("
|
||||
│ │ └── closing_loc: (3,14)-(3,15) = ")"
|
||||
│ └── @ ParenthesesNode (location: (3,17)-(3,20))
|
||||
|
@ -33,7 +35,8 @@
|
|||
│ │ @ StatementsNode (location: (3,18)-(3,19))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (3,18)-(3,19))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ ├── opening_loc: (3,17)-(3,18) = "("
|
||||
│ └── closing_loc: (3,19)-(3,20) = ")"
|
||||
├── @ ReturnNode (location: (5,0)-(5,9))
|
||||
|
@ -46,7 +49,8 @@
|
|||
│ ├── operator_loc: (5,7)-(5,8) = "*"
|
||||
│ └── expression:
|
||||
│ @ IntegerNode (location: (5,8)-(5,9))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ ReturnNode (location: (7,0)-(7,8))
|
||||
│ ├── keyword_loc: (7,0)-(7,6) = "return"
|
||||
│ └── arguments:
|
||||
|
@ -54,7 +58,8 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 1)
|
||||
│ └── @ IntegerNode (location: (7,7)-(7,8))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── @ ReturnNode (location: (9,0)-(10,1))
|
||||
│ ├── keyword_loc: (9,0)-(9,6) = "return"
|
||||
│ └── arguments:
|
||||
|
@ -62,11 +67,14 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 3)
|
||||
│ ├── @ IntegerNode (location: (9,7)-(9,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── @ IntegerNode (location: (9,10)-(9,11))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── @ IntegerNode (location: (10,0)-(10,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 3
|
||||
├── @ ReturnNode (location: (12,0)-(12,14))
|
||||
│ ├── keyword_loc: (12,0)-(12,6) = "return"
|
||||
│ └── arguments:
|
||||
|
@ -74,11 +82,14 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 3)
|
||||
│ ├── @ IntegerNode (location: (12,7)-(12,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── @ IntegerNode (location: (12,10)-(12,11))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── @ IntegerNode (location: (12,13)-(12,14))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 3
|
||||
├── @ ReturnNode (location: (14,0)-(14,16))
|
||||
│ ├── keyword_loc: (14,0)-(14,6) = "return"
|
||||
│ └── arguments:
|
||||
|
@ -89,11 +100,14 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── elements: (length: 3)
|
||||
│ │ ├── @ IntegerNode (location: (14,8)-(14,9))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── @ IntegerNode (location: (14,11)-(14,12))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── @ IntegerNode (location: (14,14)-(14,15))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ ├── opening_loc: (14,7)-(14,8) = "["
|
||||
│ └── closing_loc: (14,15)-(14,16) = "]"
|
||||
├── @ ReturnNode (location: (16,0)-(19,1))
|
||||
|
@ -107,9 +121,11 @@
|
|||
│ │ @ StatementsNode (location: (17,2)-(18,3))
|
||||
│ │ └── body: (length: 2)
|
||||
│ │ ├── @ IntegerNode (location: (17,2)-(17,3))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── @ IntegerNode (location: (18,2)-(18,3))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── opening_loc: (16,6)-(16,7) = "("
|
||||
│ └── closing_loc: (19,0)-(19,1) = ")"
|
||||
├── @ ReturnNode (location: (21,0)-(21,8))
|
||||
|
@ -133,6 +149,7 @@
|
|||
│ @ StatementsNode (location: (23,7)-(23,8))
|
||||
│ └── body: (length: 1)
|
||||
│ └── @ IntegerNode (location: (23,7)-(23,8))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── opening_loc: (23,6)-(23,7) = "("
|
||||
└── closing_loc: (23,8)-(23,9) = ")"
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
│ @ StatementsNode (location: (1,8)-(1,10))
|
||||
│ └── body: (length: 1)
|
||||
│ └── @ IntegerNode (location: (1,8)-(1,10))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 42
|
||||
├── keyword_loc: (1,0)-(1,5) = "BEGIN"
|
||||
├── opening_loc: (1,6)-(1,7) = "{"
|
||||
└── closing_loc: (1,11)-(1,12) = "}"
|
||||
|
|
|
@ -203,7 +203,8 @@
|
|||
│ │ │ ├── name_loc: (61,4)-(61,5) = "Z"
|
||||
│ │ │ ├── value:
|
||||
│ │ │ │ @ IntegerNode (location: (61,8)-(61,10))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 42
|
||||
│ │ │ └── operator_loc: (61,6)-(61,7) = "="
|
||||
│ │ ├── end_keyword_loc: (62,2)-(62,5) = "end"
|
||||
│ │ └── name: :Y
|
||||
|
@ -326,7 +327,8 @@
|
|||
│ │ │ ├── name_loc: (84,4)-(84,5) = "Z"
|
||||
│ │ │ ├── value:
|
||||
│ │ │ │ @ IntegerNode (location: (84,8)-(84,10))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 42
|
||||
│ │ │ └── operator_loc: (84,6)-(84,7) = "="
|
||||
│ │ ├── end_keyword_loc: (85,2)-(85,5) = "end"
|
||||
│ │ └── name: :Y
|
||||
|
|
|
@ -12,10 +12,12 @@
|
|||
│ └── @ AssocNode (location: (1,1)-(1,7))
|
||||
│ ├── key:
|
||||
│ │ @ IntegerNode (location: (1,1)-(1,2))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,6)-(1,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── operator_loc: (1,3)-(1,5) = "=>"
|
||||
├── opening_loc: (1,0)-(1,1) = "["
|
||||
└── closing_loc: (1,7)-(1,8) = "]"
|
||||
|
|
|
@ -7,17 +7,20 @@
|
|||
├── flags: ∅
|
||||
├── elements: (length: 2)
|
||||
│ ├── @ IntegerNode (location: (1,1)-(1,2))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── @ KeywordHashNode (location: (1,4)-(1,10))
|
||||
│ ├── flags: ∅
|
||||
│ └── elements: (length: 1)
|
||||
│ └── @ AssocNode (location: (1,4)-(1,10))
|
||||
│ ├── key:
|
||||
│ │ @ IntegerNode (location: (1,4)-(1,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,9)-(1,10))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── operator_loc: (1,6)-(1,8) = "=>"
|
||||
├── opening_loc: (1,0)-(1,1) = "["
|
||||
└── closing_loc: (1,10)-(1,11) = "]"
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
│ │ ├── name_loc: (1,6)-(1,8) = "a:"
|
||||
│ │ └── value:
|
||||
│ │ @ IntegerNode (location: (1,9)-(1,10))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── keyword_rest: ∅
|
||||
│ └── block:
|
||||
│ @ BlockParameterNode (location: (1,12)-(1,14))
|
||||
|
|
|
@ -21,4 +21,5 @@
|
|||
│ ├── opening_loc: (1,0)-(1,1) = "["
|
||||
│ └── closing_loc: (3,3)-(3,4) = "]"
|
||||
└── @ IntegerNode (location: (4,0)-(4,1))
|
||||
└── flags: decimal
|
||||
├── flags: decimal
|
||||
└── value: 1
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
│ │ └── unescaped: "b"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,4)-(1,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: ∅
|
||||
├── closing_loc: (1,5)-(1,6) = ")"
|
||||
└── block: ∅
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 1)
|
||||
│ └── @ IntegerNode (location: (1,7)-(1,8))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -28,12 +28,15 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ ├── elements: (length: 2)
|
||||
│ │ │ ├── @ IntegerNode (location: (1,3)-(1,4))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── @ IntegerNode (location: (1,6)-(1,7))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── opening_loc: (1,2)-(1,3) = "["
|
||||
│ │ └── closing_loc: (1,7)-(1,8) = "]"
|
||||
│ └── @ IntegerNode (location: (1,12)-(1,13))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 3
|
||||
├── closing_loc: (1,8)-(1,9) = "]"
|
||||
└── block: ∅
|
||||
|
|
|
@ -10,13 +10,17 @@
|
|||
│ ├── flags: ∅
|
||||
│ ├── elements: (length: 4)
|
||||
│ │ ├── @ IntegerNode (location: (1,1)-(1,2))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── @ IntegerNode (location: (1,4)-(1,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── @ IntegerNode (location: (1,7)-(1,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 3
|
||||
│ │ └── @ IntegerNode (location: (1,10)-(1,11))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 4
|
||||
│ ├── opening_loc: (1,0)-(1,1) = "["
|
||||
│ └── closing_loc: (1,11)-(1,12) = "]"
|
||||
├── call_operator_loc: ∅
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 1)
|
||||
│ └── @ IntegerNode (location: (1,6)-(1,7))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
├── flags: ∅
|
||||
├── receiver:
|
||||
│ @ IntegerNode (location: (1,0)-(1,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── call_operator_loc: ∅
|
||||
├── name: :!=
|
||||
├── message_loc: (1,2)-(1,4) = "!="
|
||||
|
@ -17,6 +18,7 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 1)
|
||||
│ └── @ IntegerNode (location: (1,5)-(1,6))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
│ ├── left: ∅
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (1,2)-(1,4))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 10
|
||||
│ └── operator_loc: (1,0)-(1,2) = ".."
|
||||
├── @ RangeNode (location: (2,2)-(2,5))
|
||||
│ ├── flags: ∅
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
│ ├── left: ∅
|
||||
│ ├── right:
|
||||
│ │ @ IntegerNode (location: (1,3)-(1,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 10
|
||||
│ └── operator_loc: (1,0)-(1,3) = "..."
|
||||
├── @ RangeNode (location: (2,2)-(2,6))
|
||||
│ ├── flags: exclude_end
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
│ @ StatementsNode (location: (2,2)-(2,3))
|
||||
│ └── body: (length: 1)
|
||||
│ └── @ IntegerNode (location: (2,2)-(2,3))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── rescue_clause:
|
||||
│ @ RescueNode (location: (3,0)-(4,3))
|
||||
│ ├── keyword_loc: (3,0)-(3,6) = "rescue"
|
||||
|
@ -20,7 +21,8 @@
|
|||
│ │ @ StatementsNode (location: (4,2)-(4,3))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (4,2)-(4,3))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── consequent: ∅
|
||||
├── else_clause:
|
||||
│ @ ElseNode (location: (5,0)-(7,6))
|
||||
|
@ -29,7 +31,8 @@
|
|||
│ │ @ StatementsNode (location: (6,2)-(6,3))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (6,2)-(6,3))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── end_keyword_loc: (7,0)-(7,6) = "ensure"
|
||||
├── ensure_clause:
|
||||
│ @ EnsureNode (location: (7,0)-(9,3))
|
||||
|
@ -38,6 +41,7 @@
|
|||
│ │ @ StatementsNode (location: (8,2)-(8,3))
|
||||
│ │ └── body: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (8,2)-(8,3))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 4
|
||||
│ └── end_keyword_loc: (9,0)-(9,3) = "end"
|
||||
└── end_keyword_loc: (9,0)-(9,3) = "end"
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
│ │ │ ├── operator_loc: (1,9)-(1,10) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,10)-(1,11))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 1)
|
||||
│ │ │ └── @ RequiredParameterNode (location: (1,13)-(1,14))
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
│ │ │ ├── operator_loc: (1,10)-(1,11) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,12)-(1,13))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rest:
|
||||
│ │ │ @ RestParameterNode (location: (1,15)-(1,17))
|
||||
│ │ │ ├── flags: ∅
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
│ │ │ ├── operator_loc: (1,9)-(1,10) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,10)-(1,11))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rest:
|
||||
│ │ │ @ RestParameterNode (location: (1,13)-(1,15))
|
||||
│ │ │ ├── flags: ∅
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── keywords: (length: 0)
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
│ │ │ ├── operator_loc: (1,10)-(1,11) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,12)-(1,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 42
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── keywords: (length: 0)
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
│ │ │ │ ├── operator_loc: (1,7)-(1,8) = "="
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (1,8)-(1,9))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 1
|
||||
│ │ │ └── @ OptionalParameterNode (location: (1,11)-(1,14))
|
||||
│ │ │ ├── flags: ∅
|
||||
│ │ │ ├── name: :c
|
||||
|
@ -36,7 +37,8 @@
|
|||
│ │ │ ├── operator_loc: (1,12)-(1,13) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,13)-(1,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── keywords: (length: 0)
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
│ │ │ │ ├── operator_loc: (1,10)-(1,11) = "="
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (1,12)-(1,14))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 42
|
||||
│ │ │ └── @ OptionalParameterNode (location: (1,16)-(1,22))
|
||||
│ │ │ ├── flags: ∅
|
||||
│ │ │ ├── name: :c
|
||||
|
@ -39,7 +40,8 @@
|
|||
│ │ │ ├── operator_loc: (1,18)-(1,19) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,20)-(1,22))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 24
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── keywords: (length: 0)
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
│ │ │ │ ├── operator_loc: (1,10)-(1,11) = "="
|
||||
│ │ │ │ └── value:
|
||||
│ │ │ │ @ IntegerNode (location: (1,12)-(1,14))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 42
|
||||
│ │ │ └── @ OptionalParameterNode (location: (1,16)-(1,22))
|
||||
│ │ │ ├── flags: ∅
|
||||
│ │ │ ├── name: :c
|
||||
|
@ -39,7 +40,8 @@
|
|||
│ │ │ ├── operator_loc: (1,18)-(1,19) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,20)-(1,22))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 24
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 0)
|
||||
│ │ ├── keywords: (length: 0)
|
||||
|
|
|
@ -30,7 +30,8 @@
|
|||
│ │ │ ├── name_loc: (1,8)-(1,10) = "k:"
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,10)-(1,12))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 42
|
||||
│ │ ├── keyword_rest: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── locals: (length: 0)
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
│ │ │ ├── operator_loc: (1,6)-(1,7) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,7)-(1,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rest: ∅
|
||||
│ │ ├── posts: (length: 1)
|
||||
│ │ │ └── @ RequiredParameterNode (location: (1,10)-(1,11))
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rest:
|
||||
│ │ │ @ RestParameterNode (location: (1,12)-(1,14))
|
||||
│ │ │ ├── flags: ∅
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
│ │ │ ├── operator_loc: (1,6)-(1,7) = "="
|
||||
│ │ │ └── value:
|
||||
│ │ │ @ IntegerNode (location: (1,7)-(1,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── rest:
|
||||
│ │ │ @ RestParameterNode (location: (1,10)-(1,12))
|
||||
│ │ │ ├── flags: ∅
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
│ ├── name_loc: (1,0)-(1,7) = "$测试"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,10)-(1,11))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (1,8)-(1,9) = "="
|
||||
└── @ LocalVariableWriteNode (location: (2,0)-(2,10))
|
||||
├── name: :测试
|
||||
|
@ -16,5 +17,6 @@
|
|||
├── name_loc: (2,0)-(2,6) = "测试"
|
||||
├── value:
|
||||
│ @ IntegerNode (location: (2,9)-(2,10))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
└── operator_loc: (2,7)-(2,8) = "="
|
||||
|
|
|
@ -27,11 +27,13 @@
|
|||
│ │ │ │ │ @ StatementsNode (location: (2,12)-(2,13))
|
||||
│ │ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ │ └── @ IntegerNode (location: (2,12)-(2,13))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 1
|
||||
│ │ │ │ ├── opening_loc: (2,10)-(2,11) = "("
|
||||
│ │ │ │ └── closing_loc: (2,13)-(2,14) = ")"
|
||||
│ │ │ └── @ IntegerNode (location: (2,16)-(2,17))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── locals: []
|
||||
|
@ -65,11 +67,13 @@
|
|||
│ │ │ │ │ @ StatementsNode (location: (7,11)-(7,12))
|
||||
│ │ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ │ └── @ IntegerNode (location: (7,11)-(7,12))
|
||||
│ │ │ │ │ └── flags: decimal
|
||||
│ │ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ │ └── value: 1
|
||||
│ │ │ │ ├── opening_loc: (7,10)-(7,11) = "("
|
||||
│ │ │ │ └── closing_loc: (7,12)-(7,13) = ")"
|
||||
│ │ │ └── @ IntegerNode (location: (7,15)-(7,16))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ ├── closing_loc: ∅
|
||||
│ │ └── block: ∅
|
||||
│ ├── locals: []
|
||||
|
@ -95,10 +99,12 @@
|
|||
│ │ │ @ StatementsNode (location: (11,4)-(11,5))
|
||||
│ │ │ └── body: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (11,4)-(11,5))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── opening_loc: (11,2)-(11,3) = "("
|
||||
│ │ └── closing_loc: (11,5)-(11,6) = ")"
|
||||
│ └── @ IntegerNode (location: (11,8)-(11,9))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
├── flags: ∅
|
||||
├── receiver:
|
||||
│ @ IntegerNode (location: (1,0)-(1,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── call_operator_loc: ∅
|
||||
├── name: :&
|
||||
├── message_loc: (1,2)-(1,3) = "&"
|
||||
|
@ -17,6 +18,7 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 1)
|
||||
│ └── @ IntegerNode (location: (1,4)-(1,5))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -15,17 +15,20 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 2)
|
||||
│ ├── @ IntegerNode (location: (1,2)-(1,3))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── @ KeywordHashNode (location: (1,5)-(1,9))
|
||||
│ ├── flags: ∅
|
||||
│ └── elements: (length: 1)
|
||||
│ └── @ AssocNode (location: (1,5)-(1,9))
|
||||
│ ├── key:
|
||||
│ │ @ IntegerNode (location: (1,5)-(1,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,8)-(1,9))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── operator_loc: (1,6)-(1,8) = "=>"
|
||||
├── closing_loc: (1,9)-(1,10) = ")"
|
||||
└── block: ∅
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
│ ├── flags: contains_keyword_splat
|
||||
│ └── arguments: (length: 2)
|
||||
│ ├── @ IntegerNode (location: (1,2)-(1,3))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── @ KeywordHashNode (location: (1,5)-(1,15))
|
||||
│ ├── flags: ∅
|
||||
│ └── elements: (length: 2)
|
||||
|
@ -29,12 +30,14 @@
|
|||
│ │ │ └── unescaped: "kw"
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 2
|
||||
│ │ └── operator_loc: ∅
|
||||
│ └── @ AssocSplatNode (location: (1,12)-(1,15))
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,14)-(1,15))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── operator_loc: (1,12)-(1,14) = "**"
|
||||
├── closing_loc: (1,15)-(1,16) = ")"
|
||||
└── block: ∅
|
||||
|
|
|
@ -30,7 +30,8 @@
|
|||
│ └── @ AssocSplatNode (location: (1,5)-(1,8))
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,7)-(1,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── operator_loc: (1,5)-(1,7) = "**"
|
||||
├── closing_loc: (1,8)-(1,9) = ")"
|
||||
└── block: ∅
|
||||
|
|
|
@ -41,7 +41,8 @@
|
|||
│ │ │ └── closing_loc: (1,7)-(1,9) = "\":"
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (1,9)-(1,11))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 42
|
||||
│ │ └── operator_loc: ∅
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
|
@ -69,7 +70,8 @@
|
|||
│ │ │ └── unescaped: "k"
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (3,6)-(3,8))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 42
|
||||
│ │ └── operator_loc: ∅
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
|
@ -97,7 +99,8 @@
|
|||
│ │ └── unescaped: "k"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (5,6)-(5,8))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 42
|
||||
│ └── operator_loc: ∅
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -15,17 +15,20 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 2)
|
||||
│ ├── @ IntegerNode (location: (1,2)-(1,3))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ └── @ KeywordHashNode (location: (1,5)-(1,9))
|
||||
│ ├── flags: ∅
|
||||
│ └── elements: (length: 1)
|
||||
│ └── @ AssocNode (location: (1,5)-(1,9))
|
||||
│ ├── key:
|
||||
│ │ @ IntegerNode (location: (1,5)-(1,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,8)-(1,9))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── operator_loc: (1,6)-(1,8) = "=>"
|
||||
├── closing_loc: (1,10)-(1,11) = ")"
|
||||
└── block: ∅
|
||||
|
|
|
@ -46,7 +46,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (1,8)-(1,9))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── closing_loc: ∅
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
├── flags: ∅
|
||||
├── receiver:
|
||||
│ @ IntegerNode (location: (1,0)-(1,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── call_operator_loc: ∅
|
||||
├── name: :==
|
||||
├── message_loc: (1,2)-(1,4) = "=="
|
||||
|
|
|
@ -36,7 +36,8 @@
|
|||
│ │ │ └── unescaped: "c"
|
||||
│ │ ├── value:
|
||||
│ │ │ @ IntegerNode (location: (1,13)-(1,14))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ └── operator_loc: (1,10)-(1,12) = "=>"
|
||||
│ ├── opening_loc: (1,2)-(1,3) = "["
|
||||
│ └── closing_loc: (1,14)-(1,15) = "]"
|
||||
|
|
|
@ -20,10 +20,12 @@
|
|||
│ └── @ AssocNode (location: (1,2)-(1,6))
|
||||
│ ├── key:
|
||||
│ │ @ IntegerNode (location: (1,2)-(1,3))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,5)-(1,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── operator_loc: (1,3)-(1,5) = "=>"
|
||||
├── closing_loc: (1,6)-(1,7) = ")"
|
||||
└── block: ∅
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
│ │ └── unescaped: "a"
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,4)-(1,5))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 3
|
||||
│ └── operator_loc: ∅
|
||||
├── closing_loc: (1,5)-(1,6) = ")"
|
||||
└── block: ∅
|
||||
|
|
|
@ -40,7 +40,8 @@
|
|||
│ │ │ @ StatementsNode (location: (2,0)-(2,1))
|
||||
│ │ │ └── body: (length: 1)
|
||||
│ │ │ └── @ IntegerNode (location: (2,0)-(2,1))
|
||||
│ │ │ └── flags: decimal
|
||||
│ │ │ ├── flags: decimal
|
||||
│ │ │ └── value: 1
|
||||
│ │ ├── consequent:
|
||||
│ │ │ @ ElseNode (location: (3,0)-(5,3))
|
||||
│ │ │ ├── else_keyword_loc: (3,0)-(3,4) = "else"
|
||||
|
@ -48,7 +49,8 @@
|
|||
│ │ │ │ @ StatementsNode (location: (4,0)-(4,1))
|
||||
│ │ │ │ └── body: (length: 1)
|
||||
│ │ │ │ └── @ IntegerNode (location: (4,0)-(4,1))
|
||||
│ │ │ │ └── flags: decimal
|
||||
│ │ │ │ ├── flags: decimal
|
||||
│ │ │ │ └── value: 2
|
||||
│ │ │ └── end_keyword_loc: (5,0)-(5,3) = "end"
|
||||
│ │ └── end_keyword_loc: (5,0)-(5,3) = "end"
|
||||
│ └── operator_loc: ∅
|
||||
|
|
|
@ -20,10 +20,12 @@
|
|||
│ └── @ AssocNode (location: (1,2)-(1,6))
|
||||
│ ├── key:
|
||||
│ │ @ IntegerNode (location: (1,2)-(1,3))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── value:
|
||||
│ │ @ IntegerNode (location: (1,5)-(1,6))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 2
|
||||
│ └── operator_loc: (1,3)-(1,5) = "=>"
|
||||
├── closing_loc: (1,7)-(1,8) = ")"
|
||||
└── block: ∅
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
│ │ ├── flags: ∅
|
||||
│ │ └── arguments: (length: 1)
|
||||
│ │ └── @ IntegerNode (location: (1,6)-(1,7))
|
||||
│ │ └── flags: decimal
|
||||
│ │ ├── flags: decimal
|
||||
│ │ └── value: 1
|
||||
│ ├── closing_loc: ∅
|
||||
│ └── block: ∅
|
||||
├── call_operator_loc: ∅
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
├── flags: ∅
|
||||
├── receiver:
|
||||
│ @ IntegerNode (location: (1,0)-(1,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── call_operator_loc: ∅
|
||||
├── name: :!~
|
||||
├── message_loc: (1,2)-(1,4) = "!~"
|
||||
|
@ -17,6 +18,7 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 1)
|
||||
│ └── @ IntegerNode (location: (1,5)-(1,6))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
├── flags: ∅
|
||||
├── receiver:
|
||||
│ @ IntegerNode (location: (1,0)-(1,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── call_operator_loc: ∅
|
||||
├── name: :^
|
||||
├── message_loc: (1,2)-(1,3) = "^"
|
||||
|
@ -17,6 +18,7 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 1)
|
||||
│ └── @ IntegerNode (location: (1,4)-(1,5))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
├── flags: ∅
|
||||
├── receiver:
|
||||
│ @ IntegerNode (location: (1,0)-(1,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── call_operator_loc: (1,1)-(1,3) = "::"
|
||||
├── name: :call
|
||||
├── message_loc: ∅
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
├── flags: ∅
|
||||
├── receiver:
|
||||
│ @ IntegerNode (location: (1,0)-(1,1))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 1
|
||||
├── call_operator_loc: ∅
|
||||
├── name: :/
|
||||
├── message_loc: (1,2)-(1,3) = "/"
|
||||
|
@ -17,6 +18,7 @@
|
|||
│ ├── flags: ∅
|
||||
│ └── arguments: (length: 1)
|
||||
│ └── @ IntegerNode (location: (1,4)-(1,5))
|
||||
│ └── flags: decimal
|
||||
│ ├── flags: decimal
|
||||
│ └── value: 2
|
||||
├── closing_loc: ∅
|
||||
└── block: ∅
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче