| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
require "stringio" |
| 13 |
require_relative "polyfill/unpack1" |
| 14 |
|
| 15 |
module Prism |
| 16 |
|
| 17 |
module Serialize |
| 18 |
|
| 19 |
|
| 20 |
MAJOR_VERSION = 1 |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
MINOR_VERSION = 9 |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
PATCH_VERSION = 0 |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
def self.load_parse(input, serialized, freeze) |
| 35 |
input = input.dup |
| 36 |
source = Source.for(input) |
| 37 |
loader = Loader.new(source, serialized) |
| 38 |
|
| 39 |
loader.load_header |
| 40 |
encoding = loader.load_encoding |
| 41 |
start_line = loader.load_varsint |
| 42 |
offsets = loader.load_line_offsets(freeze) |
| 43 |
|
| 44 |
source.replace_start_line(start_line) |
| 45 |
source.replace_offsets(offsets) |
| 46 |
|
| 47 |
comments = loader.load_comments(freeze) |
| 48 |
magic_comments = loader.load_magic_comments(freeze) |
| 49 |
data_loc = loader.load_optional_location_object(freeze) |
| 50 |
errors = loader.load_errors(encoding, freeze) |
| 51 |
warnings = loader.load_warnings(encoding, freeze) |
| 52 |
cpool_base = loader.load_uint32 |
| 53 |
cpool_size = loader.load_varuint |
| 54 |
|
| 55 |
constant_pool = ConstantPool.new(input, serialized, cpool_base, cpool_size) |
| 56 |
|
| 57 |
node = loader.load_node(constant_pool, encoding, freeze) |
| 58 |
loader.load_constant_pool(constant_pool) |
| 59 |
raise unless loader.eof? |
| 60 |
|
| 61 |
result = ParseResult.new(node, comments, magic_comments, data_loc, errors, warnings, source) |
| 62 |
result.freeze if freeze |
| 63 |
|
| 64 |
input.force_encoding(encoding) |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
if !input.ascii_only? && input.encoding == Encoding::BINARY |
| 71 |
input.force_encoding(Encoding::UTF_8) |
| 72 |
input.force_encoding(Encoding::BINARY) unless input.valid_encoding? |
| 73 |
end |
| 74 |
|
| 75 |
if freeze |
| 76 |
input.freeze |
| 77 |
source.deep_freeze |
| 78 |
end |
| 79 |
|
| 80 |
result |
| 81 |
end |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
def self.load_lex(input, serialized, freeze) |
| 88 |
source = Source.for(input) |
| 89 |
loader = Loader.new(source, serialized) |
| 90 |
|
| 91 |
tokens = loader.load_tokens |
| 92 |
encoding = loader.load_encoding |
| 93 |
start_line = loader.load_varsint |
| 94 |
offsets = loader.load_line_offsets(freeze) |
| 95 |
|
| 96 |
source.replace_start_line(start_line) |
| 97 |
source.replace_offsets(offsets) |
| 98 |
|
| 99 |
comments = loader.load_comments(freeze) |
| 100 |
magic_comments = loader.load_magic_comments(freeze) |
| 101 |
data_loc = loader.load_optional_location_object(freeze) |
| 102 |
errors = loader.load_errors(encoding, freeze) |
| 103 |
warnings = loader.load_warnings(encoding, freeze) |
| 104 |
raise unless loader.eof? |
| 105 |
|
| 106 |
result = LexResult.new(tokens, comments, magic_comments, data_loc, errors, warnings, source) |
| 107 |
|
| 108 |
tokens.each do |token| |
| 109 |
token[0].value.force_encoding(encoding) |
| 110 |
|
| 111 |
if freeze |
| 112 |
token[0].deep_freeze |
| 113 |
token.freeze |
| 114 |
end |
| 115 |
end |
| 116 |
|
| 117 |
if freeze |
| 118 |
source.deep_freeze |
| 119 |
tokens.freeze |
| 120 |
result.freeze |
| 121 |
end |
| 122 |
|
| 123 |
result |
| 124 |
end |
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
def self.load_parse_comments(input, serialized, freeze) |
| 132 |
source = Source.for(input) |
| 133 |
loader = Loader.new(source, serialized) |
| 134 |
|
| 135 |
loader.load_header |
| 136 |
loader.load_encoding |
| 137 |
start_line = loader.load_varsint |
| 138 |
|
| 139 |
source.replace_start_line(start_line) |
| 140 |
|
| 141 |
result = loader.load_comments(freeze) |
| 142 |
raise unless loader.eof? |
| 143 |
|
| 144 |
source.deep_freeze if freeze |
| 145 |
result |
| 146 |
end |
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
def self.load_parse_lex(input, serialized, freeze) |
| 154 |
source = Source.for(input) |
| 155 |
loader = Loader.new(source, serialized) |
| 156 |
|
| 157 |
tokens = loader.load_tokens |
| 158 |
loader.load_header |
| 159 |
encoding = loader.load_encoding |
| 160 |
start_line = loader.load_varsint |
| 161 |
offsets = loader.load_line_offsets(freeze) |
| 162 |
|
| 163 |
source.replace_start_line(start_line) |
| 164 |
source.replace_offsets(offsets) |
| 165 |
|
| 166 |
comments = loader.load_comments(freeze) |
| 167 |
magic_comments = loader.load_magic_comments(freeze) |
| 168 |
data_loc = loader.load_optional_location_object(freeze) |
| 169 |
errors = loader.load_errors(encoding, freeze) |
| 170 |
warnings = loader.load_warnings(encoding, freeze) |
| 171 |
cpool_base = loader.load_uint32 |
| 172 |
cpool_size = loader.load_varuint |
| 173 |
|
| 174 |
constant_pool = ConstantPool.new(input, serialized, cpool_base, cpool_size) |
| 175 |
|
| 176 |
node = loader.load_node(constant_pool, encoding, freeze) |
| 177 |
loader.load_constant_pool(constant_pool) |
| 178 |
raise unless loader.eof? |
| 179 |
|
| 180 |
value = [node, tokens] |
| 181 |
result = ParseLexResult.new(value, comments, magic_comments, data_loc, errors, warnings, source) |
| 182 |
|
| 183 |
tokens.each do |token| |
| 184 |
token[0].value.force_encoding(encoding) |
| 185 |
|
| 186 |
if freeze |
| 187 |
token[0].deep_freeze |
| 188 |
token.freeze |
| 189 |
end |
| 190 |
end |
| 191 |
|
| 192 |
if freeze |
| 193 |
source.deep_freeze |
| 194 |
tokens.freeze |
| 195 |
value.freeze |
| 196 |
result.freeze |
| 197 |
end |
| 198 |
|
| 199 |
result |
| 200 |
end |
| 201 |
|
| 202 |
class ConstantPool |
| 203 |
attr_reader :size |
| 204 |
|
| 205 |
def initialize(input, serialized, base, size) |
| 206 |
@input = input |
| 207 |
@serialized = serialized |
| 208 |
@base = base |
| 209 |
@size = size |
| 210 |
@pool = Array.new(size, nil) |
| 211 |
end |
| 212 |
|
| 213 |
def get(index, encoding) |
| 214 |
@pool[index] ||= |
| 215 |
begin |
| 216 |
offset = @base + index * 8 |
| 217 |
start = @serialized.unpack1("L", offset: offset) |
| 218 |
length = @serialized.unpack1("L", offset: offset + 4) |
| 219 |
|
| 220 |
if start.nobits?(1 << 31) |
| 221 |
@input.byteslice(start, length).force_encoding(encoding).to_sym |
| 222 |
else |
| 223 |
@serialized.byteslice(start & ((1 << 31) - 1), length).force_encoding(encoding).to_sym |
| 224 |
end |
| 225 |
end |
| 226 |
end |
| 227 |
end |
| 228 |
|
| 229 |
if RUBY_ENGINE == "truffleruby" |
| 230 |
|
| 231 |
class FastStringIO |
| 232 |
attr_accessor :pos |
| 233 |
|
| 234 |
def initialize(string) |
| 235 |
@string = string |
| 236 |
@pos = 0 |
| 237 |
end |
| 238 |
|
| 239 |
def getbyte |
| 240 |
byte = @string.getbyte(@pos) |
| 241 |
@pos += 1 |
| 242 |
byte |
| 243 |
end |
| 244 |
|
| 245 |
def read(n) |
| 246 |
slice = @string.byteslice(@pos, n) |
| 247 |
@pos += n |
| 248 |
slice |
| 249 |
end |
| 250 |
|
| 251 |
def eof? |
| 252 |
@pos >= @string.bytesize |
| 253 |
end |
| 254 |
end |
| 255 |
else |
| 256 |
FastStringIO = ::StringIO |
| 257 |
end |
| 258 |
|
| 259 |
class Loader |
| 260 |
attr_reader :input, :io, :source |
| 261 |
|
| 262 |
def initialize(source, serialized) |
| 263 |
@input = source.source.dup |
| 264 |
raise unless serialized.encoding == Encoding::BINARY |
| 265 |
@io = FastStringIO.new(serialized) |
| 266 |
@source = source |
| 267 |
define_load_node_lambdas if RUBY_ENGINE != "ruby" |
| 268 |
end |
| 269 |
|
| 270 |
def eof? |
| 271 |
io.getbyte |
| 272 |
io.eof? |
| 273 |
end |
| 274 |
|
| 275 |
def load_constant_pool(constant_pool) |
| 276 |
trailer = 0 |
| 277 |
|
| 278 |
constant_pool.size.times do |index| |
| 279 |
start, length = io.read(8).unpack("L2") |
| 280 |
trailer += length if start.anybits?(1 << 31) |
| 281 |
end |
| 282 |
|
| 283 |
io.read(trailer) |
| 284 |
end |
| 285 |
|
| 286 |
def load_header |
| 287 |
raise "Invalid serialization" if io.read(5) != "PRISM" |
| 288 |
raise "Invalid serialization" if io.read(3).unpack("C3") != [MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION] |
| 289 |
raise "Invalid serialization (location fields must be included but are not)" if io.getbyte != 0 |
| 290 |
end |
| 291 |
|
| 292 |
def load_encoding |
| 293 |
encoding = Encoding.find(io.read(load_varuint)) |
| 294 |
@input = input.force_encoding(encoding).freeze |
| 295 |
encoding |
| 296 |
end |
| 297 |
|
| 298 |
def load_line_offsets(freeze) |
| 299 |
offsets = Array.new(load_varuint) { load_varuint } |
| 300 |
offsets.freeze if freeze |
| 301 |
offsets |
| 302 |
end |
| 303 |
|
| 304 |
def load_comments(freeze) |
| 305 |
comments = |
| 306 |
Array.new(load_varuint) do |
| 307 |
comment = |
| 308 |
case load_varuint |
| 309 |
when 0 then InlineComment.new(load_location_object(freeze)) |
| 310 |
when 1 then EmbDocComment.new(load_location_object(freeze)) |
| 311 |
end |
| 312 |
|
| 313 |
comment.freeze if freeze |
| 314 |
comment |
| 315 |
end |
| 316 |
|
| 317 |
comments.freeze if freeze |
| 318 |
comments |
| 319 |
end |
| 320 |
|
| 321 |
def load_magic_comments(freeze) |
| 322 |
magic_comments = |
| 323 |
Array.new(load_varuint) do |
| 324 |
magic_comment = |
| 325 |
MagicComment.new( |
| 326 |
load_location_object(freeze), |
| 327 |
load_location_object(freeze) |
| 328 |
) |
| 329 |
|
| 330 |
magic_comment.freeze if freeze |
| 331 |
magic_comment |
| 332 |
end |
| 333 |
|
| 334 |
magic_comments.freeze if freeze |
| 335 |
magic_comments |
| 336 |
end |
| 337 |
|
| 338 |
DIAGNOSTIC_TYPES = [ |
| 339 |
:alias_argument, |
| 340 |
:alias_argument_numbered_reference, |
| 341 |
:ampampeq_multi_assign, |
| 342 |
:argument_after_block, |
| 343 |
:argument_after_forwarding_ellipses, |
| 344 |
:argument_bare_hash, |
| 345 |
:argument_block_forwarding, |
| 346 |
:argument_block_multi, |
| 347 |
:argument_conflict_ampersand, |
| 348 |
:argument_conflict_star, |
| 349 |
:argument_conflict_star_star, |
| 350 |
:argument_formal_class, |
| 351 |
:argument_formal_constant, |
| 352 |
:argument_formal_global, |
| 353 |
:argument_formal_ivar, |
| 354 |
:argument_forwarding_unbound, |
| 355 |
:argument_no_forwarding_ampersand, |
| 356 |
:argument_no_forwarding_ellipses, |
| 357 |
:argument_no_forwarding_star, |
| 358 |
:argument_no_forwarding_star_star, |
| 359 |
:argument_splat_after_assoc_splat, |
| 360 |
:argument_splat_after_splat, |
| 361 |
:argument_term_paren, |
| 362 |
:argument_unexpected_block, |
| 363 |
:array_element, |
| 364 |
:array_expression, |
| 365 |
:array_expression_after_star, |
| 366 |
:array_separator, |
| 367 |
:array_term, |
| 368 |
:begin_lonely_else, |
| 369 |
:begin_term, |
| 370 |
:begin_upcase_brace, |
| 371 |
:begin_upcase_term, |
| 372 |
:begin_upcase_toplevel, |
| 373 |
:block_param_local_variable, |
| 374 |
:block_param_pipe_term, |
| 375 |
:block_term_brace, |
| 376 |
:block_term_end, |
| 377 |
:cannot_parse_expression, |
| 378 |
:cannot_parse_string_part, |
| 379 |
:case_expression_after_case, |
| 380 |
:case_expression_after_when, |
| 381 |
:case_match_missing_predicate, |
| 382 |
:case_missing_conditions, |
| 383 |
:case_term, |
| 384 |
:class_in_method, |
| 385 |
:class_name, |
| 386 |
:class_superclass, |
| 387 |
:class_term, |
| 388 |
:class_unexpected_end, |
| 389 |
:class_variable_bare, |
| 390 |
:conditional_elsif_predicate, |
| 391 |
:conditional_if_predicate, |
| 392 |
:conditional_predicate_term, |
| 393 |
:conditional_term, |
| 394 |
:conditional_term_else, |
| 395 |
:conditional_unless_predicate, |
| 396 |
:conditional_until_predicate, |
| 397 |
:conditional_while_predicate, |
| 398 |
:constant_path_colon_colon_constant, |
| 399 |
:def_endless, |
| 400 |
:def_endless_parameters, |
| 401 |
:def_endless_setter, |
| 402 |
:def_name, |
| 403 |
:def_params_term, |
| 404 |
:def_params_term_paren, |
| 405 |
:def_receiver, |
| 406 |
:def_receiver_term, |
| 407 |
:def_term, |
| 408 |
:defined_expression, |
| 409 |
:embdoc_term, |
| 410 |
:embexpr_end, |
| 411 |
:embvar_invalid, |
| 412 |
:end_upcase_brace, |
| 413 |
:end_upcase_term, |
| 414 |
:escape_invalid_control, |
| 415 |
:escape_invalid_control_repeat, |
| 416 |
:escape_invalid_hexadecimal, |
| 417 |
:escape_invalid_meta, |
| 418 |
:escape_invalid_meta_repeat, |
| 419 |
:escape_invalid_unicode, |
| 420 |
:escape_invalid_unicode_cm_flags, |
| 421 |
:escape_invalid_unicode_list, |
| 422 |
:escape_invalid_unicode_literal, |
| 423 |
:escape_invalid_unicode_long, |
| 424 |
:escape_invalid_unicode_short, |
| 425 |
:escape_invalid_unicode_term, |
| 426 |
:expect_argument, |
| 427 |
:expect_eol_after_statement, |
| 428 |
:expect_expression_after_ampampeq, |
| 429 |
:expect_expression_after_comma, |
| 430 |
:expect_expression_after_equal, |
| 431 |
:expect_expression_after_less_less, |
| 432 |
:expect_expression_after_lparen, |
| 433 |
:expect_expression_after_operator, |
| 434 |
:expect_expression_after_pipepipeeq, |
| 435 |
:expect_expression_after_question, |
| 436 |
:expect_expression_after_splat, |
| 437 |
:expect_expression_after_splat_hash, |
| 438 |
:expect_expression_after_star, |
| 439 |
:expect_for_delimiter, |
| 440 |
:expect_ident_req_parameter, |
| 441 |
:expect_in_delimiter, |
| 442 |
:expect_lparen_after_not_lparen, |
| 443 |
:expect_lparen_after_not_other, |
| 444 |
:expect_lparen_req_parameter, |
| 445 |
:expect_message, |
| 446 |
:expect_rbracket, |
| 447 |
:expect_rparen, |
| 448 |
:expect_rparen_after_multi, |
| 449 |
:expect_rparen_req_parameter, |
| 450 |
:expect_singleton_class_delimiter, |
| 451 |
:expect_string_content, |
| 452 |
:expect_when_delimiter, |
| 453 |
:expression_bare_hash, |
| 454 |
:expression_not_writable, |
| 455 |
:expression_not_writable_encoding, |
| 456 |
:expression_not_writable_false, |
| 457 |
:expression_not_writable_file, |
| 458 |
:expression_not_writable_line, |
| 459 |
:expression_not_writable_nil, |
| 460 |
:expression_not_writable_numbered, |
| 461 |
:expression_not_writable_self, |
| 462 |
:expression_not_writable_true, |
| 463 |
:float_parse, |
| 464 |
:for_collection, |
| 465 |
:for_in, |
| 466 |
:for_index, |
| 467 |
:for_term, |
| 468 |
:global_variable_bare, |
| 469 |
:hash_expression_after_label, |
| 470 |
:hash_key, |
| 471 |
:hash_rocket, |
| 472 |
:hash_term, |
| 473 |
:hash_value, |
| 474 |
:heredoc_identifier, |
| 475 |
:heredoc_term, |
| 476 |
:incomplete_question_mark, |
| 477 |
:incomplete_variable_class, |
| 478 |
:incomplete_variable_class_3_3, |
| 479 |
:incomplete_variable_instance, |
| 480 |
:incomplete_variable_instance_3_3, |
| 481 |
:instance_variable_bare, |
| 482 |
:invalid_block_exit, |
| 483 |
:invalid_character, |
| 484 |
:invalid_comma, |
| 485 |
:invalid_encoding_magic_comment, |
| 486 |
:invalid_escape_character, |
| 487 |
:invalid_float_exponent, |
| 488 |
:invalid_local_variable_read, |
| 489 |
:invalid_local_variable_write, |
| 490 |
:invalid_multibyte_char, |
| 491 |
:invalid_multibyte_character, |
| 492 |
:invalid_multibyte_escape, |
| 493 |
:invalid_number_binary, |
| 494 |
:invalid_number_decimal, |
| 495 |
:invalid_number_fraction, |
| 496 |
:invalid_number_hexadecimal, |
| 497 |
:invalid_number_octal, |
| 498 |
:invalid_number_underscore_inner, |
| 499 |
:invalid_number_underscore_trailing, |
| 500 |
:invalid_percent, |
| 501 |
:invalid_percent_eof, |
| 502 |
:invalid_printable_character, |
| 503 |
:invalid_retry_after_else, |
| 504 |
:invalid_retry_after_ensure, |
| 505 |
:invalid_retry_without_rescue, |
| 506 |
:invalid_symbol, |
| 507 |
:invalid_variable_global, |
| 508 |
:invalid_variable_global_3_3, |
| 509 |
:invalid_yield, |
| 510 |
:it_not_allowed_numbered, |
| 511 |
:it_not_allowed_ordinary, |
| 512 |
:lambda_open, |
| 513 |
:lambda_term_brace, |
| 514 |
:lambda_term_end, |
| 515 |
:list_i_lower_element, |
| 516 |
:list_i_lower_term, |
| 517 |
:list_i_upper_element, |
| 518 |
:list_i_upper_term, |
| 519 |
:list_w_lower_element, |
| 520 |
:list_w_lower_term, |
| 521 |
:list_w_upper_element, |
| 522 |
:list_w_upper_term, |
| 523 |
:malloc_failed, |
| 524 |
:mixed_encoding, |
| 525 |
:module_in_method, |
| 526 |
:module_name, |
| 527 |
:module_term, |
| 528 |
:multi_assign_multi_splats, |
| 529 |
:multi_assign_unexpected_rest, |
| 530 |
:nesting_too_deep, |
| 531 |
:no_local_variable, |
| 532 |
:non_associative_operator, |
| 533 |
:not_expression, |
| 534 |
:number_literal_underscore, |
| 535 |
:numbered_parameter_inner_block, |
| 536 |
:numbered_parameter_it, |
| 537 |
:numbered_parameter_ordinary, |
| 538 |
:numbered_parameter_outer_block, |
| 539 |
:operator_multi_assign, |
| 540 |
:operator_write_arguments, |
| 541 |
:operator_write_block, |
| 542 |
:parameter_assoc_splat_multi, |
| 543 |
:parameter_block_multi, |
| 544 |
:parameter_circular, |
| 545 |
:parameter_forwarding_after_rest, |
| 546 |
:parameter_method_name, |
| 547 |
:parameter_name_duplicated, |
| 548 |
:parameter_no_default, |
| 549 |
:parameter_no_default_kw, |
| 550 |
:parameter_numbered_reserved, |
| 551 |
:parameter_order, |
| 552 |
:parameter_splat_multi, |
| 553 |
:parameter_star, |
| 554 |
:parameter_unexpected_fwd, |
| 555 |
:parameter_unexpected_no_kw, |
| 556 |
:parameter_wild_loose_comma, |
| 557 |
:pattern_array_multiple_rests, |
| 558 |
:pattern_capture_duplicate, |
| 559 |
:pattern_capture_in_alternative, |
| 560 |
:pattern_expression_after_bracket, |
| 561 |
:pattern_expression_after_comma, |
| 562 |
:pattern_expression_after_hrocket, |
| 563 |
:pattern_expression_after_in, |
| 564 |
:pattern_expression_after_key, |
| 565 |
:pattern_expression_after_paren, |
| 566 |
:pattern_expression_after_pin, |
| 567 |
:pattern_expression_after_pipe, |
| 568 |
:pattern_expression_after_range, |
| 569 |
:pattern_expression_after_rest, |
| 570 |
:pattern_find_missing_inner, |
| 571 |
:pattern_hash_implicit, |
| 572 |
:pattern_hash_key, |
| 573 |
:pattern_hash_key_duplicate, |
| 574 |
:pattern_hash_key_interpolated, |
| 575 |
:pattern_hash_key_label, |
| 576 |
:pattern_hash_key_locals, |
| 577 |
:pattern_ident_after_hrocket, |
| 578 |
:pattern_label_after_comma, |
| 579 |
:pattern_rest, |
| 580 |
:pattern_term_brace, |
| 581 |
:pattern_term_bracket, |
| 582 |
:pattern_term_paren, |
| 583 |
:pipepipeeq_multi_assign, |
| 584 |
:regexp_encoding_option_mismatch, |
| 585 |
:regexp_incompat_char_encoding, |
| 586 |
:regexp_invalid_unicode_range, |
| 587 |
:regexp_non_escaped_mbc, |
| 588 |
:regexp_parse_error, |
| 589 |
:regexp_term, |
| 590 |
:regexp_unknown_options, |
| 591 |
:regexp_utf8_char_non_utf8_regexp, |
| 592 |
:rescue_expression, |
| 593 |
:rescue_modifier_value, |
| 594 |
:rescue_term, |
| 595 |
:rescue_variable, |
| 596 |
:return_invalid, |
| 597 |
:script_not_found, |
| 598 |
:singleton_for_literals, |
| 599 |
:statement_alias, |
| 600 |
:statement_postexe_end, |
| 601 |
:statement_preexe_begin, |
| 602 |
:statement_undef, |
| 603 |
:string_concatenation, |
| 604 |
:string_interpolated_term, |
| 605 |
:string_literal_eof, |
| 606 |
:string_literal_term, |
| 607 |
:symbol_invalid, |
| 608 |
:symbol_term_dynamic, |
| 609 |
:symbol_term_interpolated, |
| 610 |
:ternary_colon, |
| 611 |
:ternary_expression_false, |
| 612 |
:ternary_expression_true, |
| 613 |
:unary_disallowed, |
| 614 |
:unary_receiver, |
| 615 |
:undef_argument, |
| 616 |
:unexpected_block_argument, |
| 617 |
:unexpected_index_block, |
| 618 |
:unexpected_index_keywords, |
| 619 |
:unexpected_label, |
| 620 |
:unexpected_multi_write, |
| 621 |
:unexpected_parameter_default_value, |
| 622 |
:unexpected_range_operator, |
| 623 |
:unexpected_safe_navigation, |
| 624 |
:unexpected_token_close_context, |
| 625 |
:unexpected_token_ignore, |
| 626 |
:until_term, |
| 627 |
:void_expression, |
| 628 |
:while_term, |
| 629 |
:write_target_in_method, |
| 630 |
:write_target_readonly, |
| 631 |
:write_target_unexpected, |
| 632 |
:xstring_term, |
| 633 |
:ambiguous_binary_operator, |
| 634 |
:ambiguous_first_argument_minus, |
| 635 |
:ambiguous_first_argument_plus, |
| 636 |
:ambiguous_prefix_ampersand, |
| 637 |
:ambiguous_prefix_star, |
| 638 |
:ambiguous_prefix_star_star, |
| 639 |
:ambiguous_slash, |
| 640 |
:comparison_after_comparison, |
| 641 |
:dot_dot_dot_eol, |
| 642 |
:equal_in_conditional, |
| 643 |
:equal_in_conditional_3_3, |
| 644 |
:end_in_method, |
| 645 |
:duplicated_hash_key, |
| 646 |
:duplicated_when_clause, |
| 647 |
:float_out_of_range, |
| 648 |
:ignored_frozen_string_literal, |
| 649 |
:indentation_mismatch, |
| 650 |
:integer_in_flip_flop, |
| 651 |
:invalid_character, |
| 652 |
:invalid_magic_comment_value, |
| 653 |
:invalid_numbered_reference, |
| 654 |
:keyword_eol, |
| 655 |
:literal_in_condition_default, |
| 656 |
:literal_in_condition_verbose, |
| 657 |
:shareable_constant_value_line, |
| 658 |
:shebang_carriage_return, |
| 659 |
:unexpected_carriage_return, |
| 660 |
:unreachable_statement, |
| 661 |
:unused_local_variable, |
| 662 |
:void_statement, |
| 663 |
].freeze |
| 664 |
|
| 665 |
private_constant :DIAGNOSTIC_TYPES |
| 666 |
|
| 667 |
def load_error_level |
| 668 |
level = io.getbyte |
| 669 |
|
| 670 |
case level |
| 671 |
when 0 |
| 672 |
:syntax |
| 673 |
when 1 |
| 674 |
:argument |
| 675 |
when 2 |
| 676 |
:load |
| 677 |
else |
| 678 |
raise "Unknown level: #{level}" |
| 679 |
end |
| 680 |
end |
| 681 |
|
| 682 |
def load_errors(encoding, freeze) |
| 683 |
errors = |
| 684 |
Array.new(load_varuint) do |
| 685 |
error = |
| 686 |
ParseError.new( |
| 687 |
DIAGNOSTIC_TYPES.fetch(load_varuint), |
| 688 |
load_embedded_string(encoding), |
| 689 |
load_location_object(freeze), |
| 690 |
load_error_level |
| 691 |
) |
| 692 |
|
| 693 |
error.freeze if freeze |
| 694 |
error |
| 695 |
end |
| 696 |
|
| 697 |
errors.freeze if freeze |
| 698 |
errors |
| 699 |
end |
| 700 |
|
| 701 |
def load_warning_level |
| 702 |
level = io.getbyte |
| 703 |
|
| 704 |
case level |
| 705 |
when 0 |
| 706 |
:default |
| 707 |
when 1 |
| 708 |
:verbose |
| 709 |
else |
| 710 |
raise "Unknown level: #{level}" |
| 711 |
end |
| 712 |
end |
| 713 |
|
| 714 |
def load_warnings(encoding, freeze) |
| 715 |
warnings = |
| 716 |
Array.new(load_varuint) do |
| 717 |
warning = |
| 718 |
ParseWarning.new( |
| 719 |
DIAGNOSTIC_TYPES.fetch(load_varuint), |
| 720 |
load_embedded_string(encoding), |
| 721 |
load_location_object(freeze), |
| 722 |
load_warning_level |
| 723 |
) |
| 724 |
|
| 725 |
warning.freeze if freeze |
| 726 |
warning |
| 727 |
end |
| 728 |
|
| 729 |
warnings.freeze if freeze |
| 730 |
warnings |
| 731 |
end |
| 732 |
|
| 733 |
def load_tokens |
| 734 |
tokens = [] |
| 735 |
|
| 736 |
while (type = TOKEN_TYPES.fetch(load_varuint)) |
| 737 |
start = load_varuint |
| 738 |
length = load_varuint |
| 739 |
lex_state = load_varuint |
| 740 |
|
| 741 |
location = Location.new(@source, start, length) |
| 742 |
token = Token.new(@source, type, location.slice, location) |
| 743 |
|
| 744 |
tokens << [token, lex_state] |
| 745 |
end |
| 746 |
|
| 747 |
tokens |
| 748 |
end |
| 749 |
|
| 750 |
|
| 751 |
|
| 752 |
def load_varuint |
| 753 |
n = io.getbyte |
| 754 |
if n < 128 |
| 755 |
n |
| 756 |
else |
| 757 |
n -= 128 |
| 758 |
shift = 0 |
| 759 |
while (b = io.getbyte) >= 128 |
| 760 |
n += (b - 128) << (shift += 7) |
| 761 |
end |
| 762 |
n + (b << (shift + 7)) |
| 763 |
end |
| 764 |
end |
| 765 |
|
| 766 |
def load_varsint |
| 767 |
n = load_varuint |
| 768 |
(n >> 1) ^ (-(n & 1)) |
| 769 |
end |
| 770 |
|
| 771 |
def load_integer |
| 772 |
negative = io.getbyte != 0 |
| 773 |
length = load_varuint |
| 774 |
|
| 775 |
value = 0 |
| 776 |
length.times { |index| value |= (load_varuint << (index * 32)) } |
| 777 |
|
| 778 |
value = -value if negative |
| 779 |
value |
| 780 |
end |
| 781 |
|
| 782 |
def load_double |
| 783 |
io.read(8).unpack1("D") |
| 784 |
end |
| 785 |
|
| 786 |
def load_uint32 |
| 787 |
io.read(4).unpack1("L") |
| 788 |
end |
| 789 |
|
| 790 |
def load_optional_node(constant_pool, encoding, freeze) |
| 791 |
if io.getbyte != 0 |
| 792 |
io.pos -= 1 |
| 793 |
load_node(constant_pool, encoding, freeze) |
| 794 |
end |
| 795 |
end |
| 796 |
|
| 797 |
def load_embedded_string(encoding) |
| 798 |
io.read(load_varuint).force_encoding(encoding).freeze |
| 799 |
end |
| 800 |
|
| 801 |
def load_string(encoding) |
| 802 |
case (type = io.getbyte) |
| 803 |
when 1 |
| 804 |
input.byteslice(load_varuint, load_varuint).force_encoding(encoding).freeze |
| 805 |
when 2 |
| 806 |
load_embedded_string(encoding) |
| 807 |
else |
| 808 |
raise "Unknown serialized string type: #{type}" |
| 809 |
end |
| 810 |
end |
| 811 |
|
| 812 |
def load_location_object(freeze) |
| 813 |
location = Location.new(source, load_varuint, load_varuint) |
| 814 |
location.freeze if freeze |
| 815 |
location |
| 816 |
end |
| 817 |
|
| 818 |
def load_location(freeze) |
| 819 |
return load_location_object(freeze) if freeze |
| 820 |
(load_varuint << 32) | load_varuint |
| 821 |
end |
| 822 |
|
| 823 |
def load_optional_location(freeze) |
| 824 |
load_location(freeze) if io.getbyte != 0 |
| 825 |
end |
| 826 |
|
| 827 |
def load_optional_location_object(freeze) |
| 828 |
load_location_object(freeze) if io.getbyte != 0 |
| 829 |
end |
| 830 |
|
| 831 |
def load_constant(constant_pool, encoding) |
| 832 |
index = load_varuint |
| 833 |
constant_pool.get(index - 1, encoding) |
| 834 |
end |
| 835 |
|
| 836 |
def load_optional_constant(constant_pool, encoding) |
| 837 |
index = load_varuint |
| 838 |
constant_pool.get(index - 1, encoding) if index != 0 |
| 839 |
end |
| 840 |
|
| 841 |
if RUBY_ENGINE == "ruby" |
| 842 |
def load_node(constant_pool, encoding, freeze) |
| 843 |
type = io.getbyte |
| 844 |
node_id = load_varuint |
| 845 |
location = load_location(freeze) |
| 846 |
value = case type |
| 847 |
when 1 then |
| 848 |
AliasGlobalVariableNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 849 |
when 2 then |
| 850 |
AliasMethodNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 851 |
when 3 then |
| 852 |
AlternationPatternNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 853 |
when 4 then |
| 854 |
AndNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 855 |
when 5 then |
| 856 |
ArgumentsNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }) |
| 857 |
when 6 then |
| 858 |
ArrayNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_location(freeze), load_optional_location(freeze)) |
| 859 |
when 7 then |
| 860 |
ArrayPatternNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_location(freeze), load_optional_location(freeze)) |
| 861 |
when 8 then |
| 862 |
AssocNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 863 |
when 9 then |
| 864 |
AssocSplatNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 865 |
when 10 then |
| 866 |
BackReferenceReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 867 |
when 11 then |
| 868 |
BeginNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 869 |
when 12 then |
| 870 |
BlockArgumentNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 871 |
when 13 then |
| 872 |
BlockLocalVariableNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 873 |
when 14 then |
| 874 |
BlockNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }.tap { |constants| constants.freeze if freeze }, load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze)) |
| 875 |
when 15 then |
| 876 |
BlockParameterNode.new(source, node_id, location, load_varuint, load_optional_constant(constant_pool, encoding), load_optional_location(freeze), load_location(freeze)) |
| 877 |
when 16 then |
| 878 |
BlockParametersNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_location(freeze), load_optional_location(freeze)) |
| 879 |
when 17 then |
| 880 |
BreakNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 881 |
when 18 then |
| 882 |
CallAndWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze), load_constant(constant_pool, encoding), load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 883 |
when 19 then |
| 884 |
CallNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_constant(constant_pool, encoding), load_optional_location(freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 885 |
when 20 then |
| 886 |
CallOperatorWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze), load_constant(constant_pool, encoding), load_constant(constant_pool, encoding), load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 887 |
when 21 then |
| 888 |
CallOrWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze), load_constant(constant_pool, encoding), load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 889 |
when 22 then |
| 890 |
CallTargetNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_constant(constant_pool, encoding), load_location(freeze)) |
| 891 |
when 23 then |
| 892 |
CapturePatternNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 893 |
when 24 then |
| 894 |
CaseMatchNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze)) |
| 895 |
when 25 then |
| 896 |
CaseNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze)) |
| 897 |
when 26 then |
| 898 |
ClassNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }.tap { |constants| constants.freeze if freeze }, load_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_constant(constant_pool, encoding)) |
| 899 |
when 27 then |
| 900 |
ClassVariableAndWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 901 |
when 28 then |
| 902 |
ClassVariableOperatorWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding)) |
| 903 |
when 29 then |
| 904 |
ClassVariableOrWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 905 |
when 30 then |
| 906 |
ClassVariableReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 907 |
when 31 then |
| 908 |
ClassVariableTargetNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 909 |
when 32 then |
| 910 |
ClassVariableWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 911 |
when 33 then |
| 912 |
ConstantAndWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 913 |
when 34 then |
| 914 |
ConstantOperatorWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding)) |
| 915 |
when 35 then |
| 916 |
ConstantOrWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 917 |
when 36 then |
| 918 |
ConstantPathAndWriteNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 919 |
when 37 then |
| 920 |
ConstantPathNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_constant(constant_pool, encoding), load_location(freeze), load_location(freeze)) |
| 921 |
when 38 then |
| 922 |
ConstantPathOperatorWriteNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding)) |
| 923 |
when 39 then |
| 924 |
ConstantPathOrWriteNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 925 |
when 40 then |
| 926 |
ConstantPathTargetNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_constant(constant_pool, encoding), load_location(freeze), load_location(freeze)) |
| 927 |
when 41 then |
| 928 |
ConstantPathWriteNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 929 |
when 42 then |
| 930 |
ConstantReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 931 |
when 43 then |
| 932 |
ConstantTargetNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 933 |
when 44 then |
| 934 |
ConstantWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 935 |
when 45 then |
| 936 |
load_uint32 |
| 937 |
DefNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_constant(constant_pool, encoding) }.tap { |constants| constants.freeze if freeze }, load_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_optional_location(freeze)) |
| 938 |
when 46 then |
| 939 |
DefinedNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_location(freeze)) |
| 940 |
when 47 then |
| 941 |
ElseNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 942 |
when 48 then |
| 943 |
EmbeddedStatementsNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 944 |
when 49 then |
| 945 |
EmbeddedVariableNode.new(source, node_id, location, load_varuint, load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 946 |
when 50 then |
| 947 |
EnsureNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 948 |
when 51 then |
| 949 |
FalseNode.new(source, node_id, location, load_varuint) |
| 950 |
when 52 then |
| 951 |
FindPatternNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze)) |
| 952 |
when 53 then |
| 953 |
FlipFlopNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 954 |
when 54 then |
| 955 |
FloatNode.new(source, node_id, location, load_varuint, load_double) |
| 956 |
when 55 then |
| 957 |
ForNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze), load_optional_location(freeze), load_location(freeze)) |
| 958 |
when 56 then |
| 959 |
ForwardingArgumentsNode.new(source, node_id, location, load_varuint) |
| 960 |
when 57 then |
| 961 |
ForwardingParameterNode.new(source, node_id, location, load_varuint) |
| 962 |
when 58 then |
| 963 |
ForwardingSuperNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze)) |
| 964 |
when 59 then |
| 965 |
GlobalVariableAndWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 966 |
when 60 then |
| 967 |
GlobalVariableOperatorWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding)) |
| 968 |
when 61 then |
| 969 |
GlobalVariableOrWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 970 |
when 62 then |
| 971 |
GlobalVariableReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 972 |
when 63 then |
| 973 |
GlobalVariableTargetNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 974 |
when 64 then |
| 975 |
GlobalVariableWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 976 |
when 65 then |
| 977 |
HashNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_location(freeze)) |
| 978 |
when 66 then |
| 979 |
HashPatternNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze)) |
| 980 |
when 67 then |
| 981 |
IfNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 982 |
when 68 then |
| 983 |
ImaginaryNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze)) |
| 984 |
when 69 then |
| 985 |
ImplicitNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze)) |
| 986 |
when 70 then |
| 987 |
ImplicitRestNode.new(source, node_id, location, load_varuint) |
| 988 |
when 71 then |
| 989 |
InNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_location(freeze)) |
| 990 |
when 72 then |
| 991 |
IndexAndWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 992 |
when 73 then |
| 993 |
IndexOperatorWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 994 |
when 74 then |
| 995 |
IndexOrWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 996 |
when 75 then |
| 997 |
IndexTargetNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 998 |
when 76 then |
| 999 |
InstanceVariableAndWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1000 |
when 77 then |
| 1001 |
InstanceVariableOperatorWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding)) |
| 1002 |
when 78 then |
| 1003 |
InstanceVariableOrWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1004 |
when 79 then |
| 1005 |
InstanceVariableReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1006 |
when 80 then |
| 1007 |
InstanceVariableTargetNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1008 |
when 81 then |
| 1009 |
InstanceVariableWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1010 |
when 82 then |
| 1011 |
IntegerNode.new(source, node_id, location, load_varuint, load_integer) |
| 1012 |
when 83 then |
| 1013 |
InterpolatedMatchLastLineNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_location(freeze)) |
| 1014 |
when 84 then |
| 1015 |
InterpolatedRegularExpressionNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_location(freeze)) |
| 1016 |
when 85 then |
| 1017 |
InterpolatedStringNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_location(freeze)) |
| 1018 |
when 86 then |
| 1019 |
InterpolatedSymbolNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_location(freeze)) |
| 1020 |
when 87 then |
| 1021 |
InterpolatedXStringNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_location(freeze)) |
| 1022 |
when 88 then |
| 1023 |
ItLocalVariableReadNode.new(source, node_id, location, load_varuint) |
| 1024 |
when 89 then |
| 1025 |
ItParametersNode.new(source, node_id, location, load_varuint) |
| 1026 |
when 90 then |
| 1027 |
KeywordHashNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }) |
| 1028 |
when 91 then |
| 1029 |
KeywordRestParameterNode.new(source, node_id, location, load_varuint, load_optional_constant(constant_pool, encoding), load_optional_location(freeze), load_location(freeze)) |
| 1030 |
when 92 then |
| 1031 |
LambdaNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }.tap { |constants| constants.freeze if freeze }, load_location(freeze), load_location(freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1032 |
when 93 then |
| 1033 |
LocalVariableAndWriteNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding), load_varuint) |
| 1034 |
when 94 then |
| 1035 |
LocalVariableOperatorWriteNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding), load_constant(constant_pool, encoding), load_varuint) |
| 1036 |
when 95 then |
| 1037 |
LocalVariableOrWriteNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding), load_varuint) |
| 1038 |
when 96 then |
| 1039 |
LocalVariableReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_varuint) |
| 1040 |
when 97 then |
| 1041 |
LocalVariableTargetNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_varuint) |
| 1042 |
when 98 then |
| 1043 |
LocalVariableWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_varuint, load_location(freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1044 |
when 99 then |
| 1045 |
MatchLastLineNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_location(freeze), load_string(encoding)) |
| 1046 |
when 100 then |
| 1047 |
MatchPredicateNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1048 |
when 101 then |
| 1049 |
MatchRequiredNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1050 |
when 102 then |
| 1051 |
MatchWriteNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }) |
| 1052 |
when 103 then |
| 1053 |
MissingNode.new(source, node_id, location, load_varuint) |
| 1054 |
when 104 then |
| 1055 |
ModuleNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }.tap { |constants| constants.freeze if freeze }, load_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_constant(constant_pool, encoding)) |
| 1056 |
when 105 then |
| 1057 |
MultiTargetNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_location(freeze), load_optional_location(freeze)) |
| 1058 |
when 106 then |
| 1059 |
MultiWriteNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_location(freeze), load_optional_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1060 |
when 107 then |
| 1061 |
NextNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1062 |
when 108 then |
| 1063 |
NilNode.new(source, node_id, location, load_varuint) |
| 1064 |
when 109 then |
| 1065 |
NoKeywordsParameterNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze)) |
| 1066 |
when 110 then |
| 1067 |
NumberedParametersNode.new(source, node_id, location, load_varuint, io.getbyte) |
| 1068 |
when 111 then |
| 1069 |
NumberedReferenceReadNode.new(source, node_id, location, load_varuint, load_varuint) |
| 1070 |
when 112 then |
| 1071 |
OptionalKeywordParameterNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1072 |
when 113 then |
| 1073 |
OptionalParameterNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1074 |
when 114 then |
| 1075 |
OrNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1076 |
when 115 then |
| 1077 |
ParametersNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1078 |
when 116 then |
| 1079 |
ParenthesesNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze)) |
| 1080 |
when 117 then |
| 1081 |
PinnedExpressionNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze), load_location(freeze)) |
| 1082 |
when 118 then |
| 1083 |
PinnedVariableNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1084 |
when 119 then |
| 1085 |
PostExecutionNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze), load_location(freeze)) |
| 1086 |
when 120 then |
| 1087 |
PreExecutionNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze), load_location(freeze)) |
| 1088 |
when 121 then |
| 1089 |
ProgramNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }.tap { |constants| constants.freeze if freeze }, load_node(constant_pool, encoding, freeze)) |
| 1090 |
when 122 then |
| 1091 |
RangeNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1092 |
when 123 then |
| 1093 |
RationalNode.new(source, node_id, location, load_varuint, load_integer, load_integer) |
| 1094 |
when 124 then |
| 1095 |
RedoNode.new(source, node_id, location, load_varuint) |
| 1096 |
when 125 then |
| 1097 |
RegularExpressionNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_location(freeze), load_string(encoding)) |
| 1098 |
when 126 then |
| 1099 |
RequiredKeywordParameterNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze)) |
| 1100 |
when 127 then |
| 1101 |
RequiredParameterNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1102 |
when 128 then |
| 1103 |
RescueModifierNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1104 |
when 129 then |
| 1105 |
RescueNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1106 |
when 130 then |
| 1107 |
RestParameterNode.new(source, node_id, location, load_varuint, load_optional_constant(constant_pool, encoding), load_optional_location(freeze), load_location(freeze)) |
| 1108 |
when 131 then |
| 1109 |
RetryNode.new(source, node_id, location, load_varuint) |
| 1110 |
when 132 then |
| 1111 |
ReturnNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1112 |
when 133 then |
| 1113 |
SelfNode.new(source, node_id, location, load_varuint) |
| 1114 |
when 134 then |
| 1115 |
ShareableConstantNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze)) |
| 1116 |
when 135 then |
| 1117 |
SingletonClassNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }.tap { |constants| constants.freeze if freeze }, load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1118 |
when 136 then |
| 1119 |
SourceEncodingNode.new(source, node_id, location, load_varuint) |
| 1120 |
when 137 then |
| 1121 |
SourceFileNode.new(source, node_id, location, load_varuint, load_string(encoding)) |
| 1122 |
when 138 then |
| 1123 |
SourceLineNode.new(source, node_id, location, load_varuint) |
| 1124 |
when 139 then |
| 1125 |
SplatNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1126 |
when 140 then |
| 1127 |
StatementsNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }) |
| 1128 |
when 141 then |
| 1129 |
StringNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), load_location(freeze), load_optional_location(freeze), load_string(encoding)) |
| 1130 |
when 142 then |
| 1131 |
SuperNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1132 |
when 143 then |
| 1133 |
SymbolNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_string(encoding)) |
| 1134 |
when 144 then |
| 1135 |
TrueNode.new(source, node_id, location, load_varuint) |
| 1136 |
when 145 then |
| 1137 |
UndefNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_location(freeze)) |
| 1138 |
when 146 then |
| 1139 |
UnlessNode.new(source, node_id, location, load_varuint, load_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 1140 |
when 147 then |
| 1141 |
UntilNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1142 |
when 148 then |
| 1143 |
WhenNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }.tap { |nodes| nodes.freeze if freeze }, load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1144 |
when 149 then |
| 1145 |
WhileNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1146 |
when 150 then |
| 1147 |
XStringNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_location(freeze), load_string(encoding)) |
| 1148 |
when 151 then |
| 1149 |
YieldNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 1150 |
end |
| 1151 |
|
| 1152 |
value.freeze if freeze |
| 1153 |
value |
| 1154 |
end |
| 1155 |
else |
| 1156 |
def load_node(constant_pool, encoding, freeze) |
| 1157 |
@load_node_lambdas[io.getbyte].call(constant_pool, encoding, freeze) |
| 1158 |
end |
| 1159 |
|
| 1160 |
def define_load_node_lambdas |
| 1161 |
@load_node_lambdas = [ |
| 1162 |
nil, |
| 1163 |
-> (constant_pool, encoding, freeze) { |
| 1164 |
node_id = load_varuint |
| 1165 |
location = load_location(freeze) |
| 1166 |
value = AliasGlobalVariableNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1167 |
value.freeze if freeze |
| 1168 |
value |
| 1169 |
}, |
| 1170 |
-> (constant_pool, encoding, freeze) { |
| 1171 |
node_id = load_varuint |
| 1172 |
location = load_location(freeze) |
| 1173 |
value = AliasMethodNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1174 |
value.freeze if freeze |
| 1175 |
value |
| 1176 |
}, |
| 1177 |
-> (constant_pool, encoding, freeze) { |
| 1178 |
node_id = load_varuint |
| 1179 |
location = load_location(freeze) |
| 1180 |
value = AlternationPatternNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1181 |
value.freeze if freeze |
| 1182 |
value |
| 1183 |
}, |
| 1184 |
-> (constant_pool, encoding, freeze) { |
| 1185 |
node_id = load_varuint |
| 1186 |
location = load_location(freeze) |
| 1187 |
value = AndNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1188 |
value.freeze if freeze |
| 1189 |
value |
| 1190 |
}, |
| 1191 |
-> (constant_pool, encoding, freeze) { |
| 1192 |
node_id = load_varuint |
| 1193 |
location = load_location(freeze) |
| 1194 |
value = ArgumentsNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }) |
| 1195 |
value.freeze if freeze |
| 1196 |
value |
| 1197 |
}, |
| 1198 |
-> (constant_pool, encoding, freeze) { |
| 1199 |
node_id = load_varuint |
| 1200 |
location = load_location(freeze) |
| 1201 |
value = ArrayNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_location(freeze), load_optional_location(freeze)) |
| 1202 |
value.freeze if freeze |
| 1203 |
value |
| 1204 |
}, |
| 1205 |
-> (constant_pool, encoding, freeze) { |
| 1206 |
node_id = load_varuint |
| 1207 |
location = load_location(freeze) |
| 1208 |
value = ArrayPatternNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_location(freeze), load_optional_location(freeze)) |
| 1209 |
value.freeze if freeze |
| 1210 |
value |
| 1211 |
}, |
| 1212 |
-> (constant_pool, encoding, freeze) { |
| 1213 |
node_id = load_varuint |
| 1214 |
location = load_location(freeze) |
| 1215 |
value = AssocNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 1216 |
value.freeze if freeze |
| 1217 |
value |
| 1218 |
}, |
| 1219 |
-> (constant_pool, encoding, freeze) { |
| 1220 |
node_id = load_varuint |
| 1221 |
location = load_location(freeze) |
| 1222 |
value = AssocSplatNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1223 |
value.freeze if freeze |
| 1224 |
value |
| 1225 |
}, |
| 1226 |
-> (constant_pool, encoding, freeze) { |
| 1227 |
node_id = load_varuint |
| 1228 |
location = load_location(freeze) |
| 1229 |
value = BackReferenceReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1230 |
value.freeze if freeze |
| 1231 |
value |
| 1232 |
}, |
| 1233 |
-> (constant_pool, encoding, freeze) { |
| 1234 |
node_id = load_varuint |
| 1235 |
location = load_location(freeze) |
| 1236 |
value = BeginNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 1237 |
value.freeze if freeze |
| 1238 |
value |
| 1239 |
}, |
| 1240 |
-> (constant_pool, encoding, freeze) { |
| 1241 |
node_id = load_varuint |
| 1242 |
location = load_location(freeze) |
| 1243 |
value = BlockArgumentNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1244 |
value.freeze if freeze |
| 1245 |
value |
| 1246 |
}, |
| 1247 |
-> (constant_pool, encoding, freeze) { |
| 1248 |
node_id = load_varuint |
| 1249 |
location = load_location(freeze) |
| 1250 |
value = BlockLocalVariableNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1251 |
value.freeze if freeze |
| 1252 |
value |
| 1253 |
}, |
| 1254 |
-> (constant_pool, encoding, freeze) { |
| 1255 |
node_id = load_varuint |
| 1256 |
location = load_location(freeze) |
| 1257 |
value = BlockNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }, load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze)) |
| 1258 |
value.freeze if freeze |
| 1259 |
value |
| 1260 |
}, |
| 1261 |
-> (constant_pool, encoding, freeze) { |
| 1262 |
node_id = load_varuint |
| 1263 |
location = load_location(freeze) |
| 1264 |
value = BlockParameterNode.new(source, node_id, location, load_varuint, load_optional_constant(constant_pool, encoding), load_optional_location(freeze), load_location(freeze)) |
| 1265 |
value.freeze if freeze |
| 1266 |
value |
| 1267 |
}, |
| 1268 |
-> (constant_pool, encoding, freeze) { |
| 1269 |
node_id = load_varuint |
| 1270 |
location = load_location(freeze) |
| 1271 |
value = BlockParametersNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_location(freeze), load_optional_location(freeze)) |
| 1272 |
value.freeze if freeze |
| 1273 |
value |
| 1274 |
}, |
| 1275 |
-> (constant_pool, encoding, freeze) { |
| 1276 |
node_id = load_varuint |
| 1277 |
location = load_location(freeze) |
| 1278 |
value = BreakNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1279 |
value.freeze if freeze |
| 1280 |
value |
| 1281 |
}, |
| 1282 |
-> (constant_pool, encoding, freeze) { |
| 1283 |
node_id = load_varuint |
| 1284 |
location = load_location(freeze) |
| 1285 |
value = CallAndWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze), load_constant(constant_pool, encoding), load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1286 |
value.freeze if freeze |
| 1287 |
value |
| 1288 |
}, |
| 1289 |
-> (constant_pool, encoding, freeze) { |
| 1290 |
node_id = load_varuint |
| 1291 |
location = load_location(freeze) |
| 1292 |
value = CallNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_constant(constant_pool, encoding), load_optional_location(freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1293 |
value.freeze if freeze |
| 1294 |
value |
| 1295 |
}, |
| 1296 |
-> (constant_pool, encoding, freeze) { |
| 1297 |
node_id = load_varuint |
| 1298 |
location = load_location(freeze) |
| 1299 |
value = CallOperatorWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze), load_constant(constant_pool, encoding), load_constant(constant_pool, encoding), load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1300 |
value.freeze if freeze |
| 1301 |
value |
| 1302 |
}, |
| 1303 |
-> (constant_pool, encoding, freeze) { |
| 1304 |
node_id = load_varuint |
| 1305 |
location = load_location(freeze) |
| 1306 |
value = CallOrWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze), load_constant(constant_pool, encoding), load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1307 |
value.freeze if freeze |
| 1308 |
value |
| 1309 |
}, |
| 1310 |
-> (constant_pool, encoding, freeze) { |
| 1311 |
node_id = load_varuint |
| 1312 |
location = load_location(freeze) |
| 1313 |
value = CallTargetNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_constant(constant_pool, encoding), load_location(freeze)) |
| 1314 |
value.freeze if freeze |
| 1315 |
value |
| 1316 |
}, |
| 1317 |
-> (constant_pool, encoding, freeze) { |
| 1318 |
node_id = load_varuint |
| 1319 |
location = load_location(freeze) |
| 1320 |
value = CapturePatternNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1321 |
value.freeze if freeze |
| 1322 |
value |
| 1323 |
}, |
| 1324 |
-> (constant_pool, encoding, freeze) { |
| 1325 |
node_id = load_varuint |
| 1326 |
location = load_location(freeze) |
| 1327 |
value = CaseMatchNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze)) |
| 1328 |
value.freeze if freeze |
| 1329 |
value |
| 1330 |
}, |
| 1331 |
-> (constant_pool, encoding, freeze) { |
| 1332 |
node_id = load_varuint |
| 1333 |
location = load_location(freeze) |
| 1334 |
value = CaseNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze)) |
| 1335 |
value.freeze if freeze |
| 1336 |
value |
| 1337 |
}, |
| 1338 |
-> (constant_pool, encoding, freeze) { |
| 1339 |
node_id = load_varuint |
| 1340 |
location = load_location(freeze) |
| 1341 |
value = ClassNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }, load_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_constant(constant_pool, encoding)) |
| 1342 |
value.freeze if freeze |
| 1343 |
value |
| 1344 |
}, |
| 1345 |
-> (constant_pool, encoding, freeze) { |
| 1346 |
node_id = load_varuint |
| 1347 |
location = load_location(freeze) |
| 1348 |
value = ClassVariableAndWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1349 |
value.freeze if freeze |
| 1350 |
value |
| 1351 |
}, |
| 1352 |
-> (constant_pool, encoding, freeze) { |
| 1353 |
node_id = load_varuint |
| 1354 |
location = load_location(freeze) |
| 1355 |
value = ClassVariableOperatorWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding)) |
| 1356 |
value.freeze if freeze |
| 1357 |
value |
| 1358 |
}, |
| 1359 |
-> (constant_pool, encoding, freeze) { |
| 1360 |
node_id = load_varuint |
| 1361 |
location = load_location(freeze) |
| 1362 |
value = ClassVariableOrWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1363 |
value.freeze if freeze |
| 1364 |
value |
| 1365 |
}, |
| 1366 |
-> (constant_pool, encoding, freeze) { |
| 1367 |
node_id = load_varuint |
| 1368 |
location = load_location(freeze) |
| 1369 |
value = ClassVariableReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1370 |
value.freeze if freeze |
| 1371 |
value |
| 1372 |
}, |
| 1373 |
-> (constant_pool, encoding, freeze) { |
| 1374 |
node_id = load_varuint |
| 1375 |
location = load_location(freeze) |
| 1376 |
value = ClassVariableTargetNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1377 |
value.freeze if freeze |
| 1378 |
value |
| 1379 |
}, |
| 1380 |
-> (constant_pool, encoding, freeze) { |
| 1381 |
node_id = load_varuint |
| 1382 |
location = load_location(freeze) |
| 1383 |
value = ClassVariableWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1384 |
value.freeze if freeze |
| 1385 |
value |
| 1386 |
}, |
| 1387 |
-> (constant_pool, encoding, freeze) { |
| 1388 |
node_id = load_varuint |
| 1389 |
location = load_location(freeze) |
| 1390 |
value = ConstantAndWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1391 |
value.freeze if freeze |
| 1392 |
value |
| 1393 |
}, |
| 1394 |
-> (constant_pool, encoding, freeze) { |
| 1395 |
node_id = load_varuint |
| 1396 |
location = load_location(freeze) |
| 1397 |
value = ConstantOperatorWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding)) |
| 1398 |
value.freeze if freeze |
| 1399 |
value |
| 1400 |
}, |
| 1401 |
-> (constant_pool, encoding, freeze) { |
| 1402 |
node_id = load_varuint |
| 1403 |
location = load_location(freeze) |
| 1404 |
value = ConstantOrWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1405 |
value.freeze if freeze |
| 1406 |
value |
| 1407 |
}, |
| 1408 |
-> (constant_pool, encoding, freeze) { |
| 1409 |
node_id = load_varuint |
| 1410 |
location = load_location(freeze) |
| 1411 |
value = ConstantPathAndWriteNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1412 |
value.freeze if freeze |
| 1413 |
value |
| 1414 |
}, |
| 1415 |
-> (constant_pool, encoding, freeze) { |
| 1416 |
node_id = load_varuint |
| 1417 |
location = load_location(freeze) |
| 1418 |
value = ConstantPathNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_constant(constant_pool, encoding), load_location(freeze), load_location(freeze)) |
| 1419 |
value.freeze if freeze |
| 1420 |
value |
| 1421 |
}, |
| 1422 |
-> (constant_pool, encoding, freeze) { |
| 1423 |
node_id = load_varuint |
| 1424 |
location = load_location(freeze) |
| 1425 |
value = ConstantPathOperatorWriteNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding)) |
| 1426 |
value.freeze if freeze |
| 1427 |
value |
| 1428 |
}, |
| 1429 |
-> (constant_pool, encoding, freeze) { |
| 1430 |
node_id = load_varuint |
| 1431 |
location = load_location(freeze) |
| 1432 |
value = ConstantPathOrWriteNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1433 |
value.freeze if freeze |
| 1434 |
value |
| 1435 |
}, |
| 1436 |
-> (constant_pool, encoding, freeze) { |
| 1437 |
node_id = load_varuint |
| 1438 |
location = load_location(freeze) |
| 1439 |
value = ConstantPathTargetNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_constant(constant_pool, encoding), load_location(freeze), load_location(freeze)) |
| 1440 |
value.freeze if freeze |
| 1441 |
value |
| 1442 |
}, |
| 1443 |
-> (constant_pool, encoding, freeze) { |
| 1444 |
node_id = load_varuint |
| 1445 |
location = load_location(freeze) |
| 1446 |
value = ConstantPathWriteNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1447 |
value.freeze if freeze |
| 1448 |
value |
| 1449 |
}, |
| 1450 |
-> (constant_pool, encoding, freeze) { |
| 1451 |
node_id = load_varuint |
| 1452 |
location = load_location(freeze) |
| 1453 |
value = ConstantReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1454 |
value.freeze if freeze |
| 1455 |
value |
| 1456 |
}, |
| 1457 |
-> (constant_pool, encoding, freeze) { |
| 1458 |
node_id = load_varuint |
| 1459 |
location = load_location(freeze) |
| 1460 |
value = ConstantTargetNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1461 |
value.freeze if freeze |
| 1462 |
value |
| 1463 |
}, |
| 1464 |
-> (constant_pool, encoding, freeze) { |
| 1465 |
node_id = load_varuint |
| 1466 |
location = load_location(freeze) |
| 1467 |
value = ConstantWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1468 |
value.freeze if freeze |
| 1469 |
value |
| 1470 |
}, |
| 1471 |
-> (constant_pool, encoding, freeze) { |
| 1472 |
node_id = load_varuint |
| 1473 |
location = load_location(freeze) |
| 1474 |
load_uint32 |
| 1475 |
value = DefNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_constant(constant_pool, encoding) }, load_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_optional_location(freeze)) |
| 1476 |
value.freeze if freeze |
| 1477 |
value |
| 1478 |
}, |
| 1479 |
-> (constant_pool, encoding, freeze) { |
| 1480 |
node_id = load_varuint |
| 1481 |
location = load_location(freeze) |
| 1482 |
value = DefinedNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_location(freeze)) |
| 1483 |
value.freeze if freeze |
| 1484 |
value |
| 1485 |
}, |
| 1486 |
-> (constant_pool, encoding, freeze) { |
| 1487 |
node_id = load_varuint |
| 1488 |
location = load_location(freeze) |
| 1489 |
value = ElseNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 1490 |
value.freeze if freeze |
| 1491 |
value |
| 1492 |
}, |
| 1493 |
-> (constant_pool, encoding, freeze) { |
| 1494 |
node_id = load_varuint |
| 1495 |
location = load_location(freeze) |
| 1496 |
value = EmbeddedStatementsNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1497 |
value.freeze if freeze |
| 1498 |
value |
| 1499 |
}, |
| 1500 |
-> (constant_pool, encoding, freeze) { |
| 1501 |
node_id = load_varuint |
| 1502 |
location = load_location(freeze) |
| 1503 |
value = EmbeddedVariableNode.new(source, node_id, location, load_varuint, load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1504 |
value.freeze if freeze |
| 1505 |
value |
| 1506 |
}, |
| 1507 |
-> (constant_pool, encoding, freeze) { |
| 1508 |
node_id = load_varuint |
| 1509 |
location = load_location(freeze) |
| 1510 |
value = EnsureNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1511 |
value.freeze if freeze |
| 1512 |
value |
| 1513 |
}, |
| 1514 |
-> (constant_pool, encoding, freeze) { |
| 1515 |
node_id = load_varuint |
| 1516 |
location = load_location(freeze) |
| 1517 |
value = FalseNode.new(source, node_id, location, load_varuint) |
| 1518 |
value.freeze if freeze |
| 1519 |
value |
| 1520 |
}, |
| 1521 |
-> (constant_pool, encoding, freeze) { |
| 1522 |
node_id = load_varuint |
| 1523 |
location = load_location(freeze) |
| 1524 |
value = FindPatternNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze)) |
| 1525 |
value.freeze if freeze |
| 1526 |
value |
| 1527 |
}, |
| 1528 |
-> (constant_pool, encoding, freeze) { |
| 1529 |
node_id = load_varuint |
| 1530 |
location = load_location(freeze) |
| 1531 |
value = FlipFlopNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1532 |
value.freeze if freeze |
| 1533 |
value |
| 1534 |
}, |
| 1535 |
-> (constant_pool, encoding, freeze) { |
| 1536 |
node_id = load_varuint |
| 1537 |
location = load_location(freeze) |
| 1538 |
value = FloatNode.new(source, node_id, location, load_varuint, load_double) |
| 1539 |
value.freeze if freeze |
| 1540 |
value |
| 1541 |
}, |
| 1542 |
-> (constant_pool, encoding, freeze) { |
| 1543 |
node_id = load_varuint |
| 1544 |
location = load_location(freeze) |
| 1545 |
value = ForNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze), load_optional_location(freeze), load_location(freeze)) |
| 1546 |
value.freeze if freeze |
| 1547 |
value |
| 1548 |
}, |
| 1549 |
-> (constant_pool, encoding, freeze) { |
| 1550 |
node_id = load_varuint |
| 1551 |
location = load_location(freeze) |
| 1552 |
value = ForwardingArgumentsNode.new(source, node_id, location, load_varuint) |
| 1553 |
value.freeze if freeze |
| 1554 |
value |
| 1555 |
}, |
| 1556 |
-> (constant_pool, encoding, freeze) { |
| 1557 |
node_id = load_varuint |
| 1558 |
location = load_location(freeze) |
| 1559 |
value = ForwardingParameterNode.new(source, node_id, location, load_varuint) |
| 1560 |
value.freeze if freeze |
| 1561 |
value |
| 1562 |
}, |
| 1563 |
-> (constant_pool, encoding, freeze) { |
| 1564 |
node_id = load_varuint |
| 1565 |
location = load_location(freeze) |
| 1566 |
value = ForwardingSuperNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze)) |
| 1567 |
value.freeze if freeze |
| 1568 |
value |
| 1569 |
}, |
| 1570 |
-> (constant_pool, encoding, freeze) { |
| 1571 |
node_id = load_varuint |
| 1572 |
location = load_location(freeze) |
| 1573 |
value = GlobalVariableAndWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1574 |
value.freeze if freeze |
| 1575 |
value |
| 1576 |
}, |
| 1577 |
-> (constant_pool, encoding, freeze) { |
| 1578 |
node_id = load_varuint |
| 1579 |
location = load_location(freeze) |
| 1580 |
value = GlobalVariableOperatorWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding)) |
| 1581 |
value.freeze if freeze |
| 1582 |
value |
| 1583 |
}, |
| 1584 |
-> (constant_pool, encoding, freeze) { |
| 1585 |
node_id = load_varuint |
| 1586 |
location = load_location(freeze) |
| 1587 |
value = GlobalVariableOrWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1588 |
value.freeze if freeze |
| 1589 |
value |
| 1590 |
}, |
| 1591 |
-> (constant_pool, encoding, freeze) { |
| 1592 |
node_id = load_varuint |
| 1593 |
location = load_location(freeze) |
| 1594 |
value = GlobalVariableReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1595 |
value.freeze if freeze |
| 1596 |
value |
| 1597 |
}, |
| 1598 |
-> (constant_pool, encoding, freeze) { |
| 1599 |
node_id = load_varuint |
| 1600 |
location = load_location(freeze) |
| 1601 |
value = GlobalVariableTargetNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1602 |
value.freeze if freeze |
| 1603 |
value |
| 1604 |
}, |
| 1605 |
-> (constant_pool, encoding, freeze) { |
| 1606 |
node_id = load_varuint |
| 1607 |
location = load_location(freeze) |
| 1608 |
value = GlobalVariableWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1609 |
value.freeze if freeze |
| 1610 |
value |
| 1611 |
}, |
| 1612 |
-> (constant_pool, encoding, freeze) { |
| 1613 |
node_id = load_varuint |
| 1614 |
location = load_location(freeze) |
| 1615 |
value = HashNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_location(freeze)) |
| 1616 |
value.freeze if freeze |
| 1617 |
value |
| 1618 |
}, |
| 1619 |
-> (constant_pool, encoding, freeze) { |
| 1620 |
node_id = load_varuint |
| 1621 |
location = load_location(freeze) |
| 1622 |
value = HashPatternNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_location(freeze)) |
| 1623 |
value.freeze if freeze |
| 1624 |
value |
| 1625 |
}, |
| 1626 |
-> (constant_pool, encoding, freeze) { |
| 1627 |
node_id = load_varuint |
| 1628 |
location = load_location(freeze) |
| 1629 |
value = IfNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 1630 |
value.freeze if freeze |
| 1631 |
value |
| 1632 |
}, |
| 1633 |
-> (constant_pool, encoding, freeze) { |
| 1634 |
node_id = load_varuint |
| 1635 |
location = load_location(freeze) |
| 1636 |
value = ImaginaryNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze)) |
| 1637 |
value.freeze if freeze |
| 1638 |
value |
| 1639 |
}, |
| 1640 |
-> (constant_pool, encoding, freeze) { |
| 1641 |
node_id = load_varuint |
| 1642 |
location = load_location(freeze) |
| 1643 |
value = ImplicitNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze)) |
| 1644 |
value.freeze if freeze |
| 1645 |
value |
| 1646 |
}, |
| 1647 |
-> (constant_pool, encoding, freeze) { |
| 1648 |
node_id = load_varuint |
| 1649 |
location = load_location(freeze) |
| 1650 |
value = ImplicitRestNode.new(source, node_id, location, load_varuint) |
| 1651 |
value.freeze if freeze |
| 1652 |
value |
| 1653 |
}, |
| 1654 |
-> (constant_pool, encoding, freeze) { |
| 1655 |
node_id = load_varuint |
| 1656 |
location = load_location(freeze) |
| 1657 |
value = InNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_location(freeze)) |
| 1658 |
value.freeze if freeze |
| 1659 |
value |
| 1660 |
}, |
| 1661 |
-> (constant_pool, encoding, freeze) { |
| 1662 |
node_id = load_varuint |
| 1663 |
location = load_location(freeze) |
| 1664 |
value = IndexAndWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1665 |
value.freeze if freeze |
| 1666 |
value |
| 1667 |
}, |
| 1668 |
-> (constant_pool, encoding, freeze) { |
| 1669 |
node_id = load_varuint |
| 1670 |
location = load_location(freeze) |
| 1671 |
value = IndexOperatorWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1672 |
value.freeze if freeze |
| 1673 |
value |
| 1674 |
}, |
| 1675 |
-> (constant_pool, encoding, freeze) { |
| 1676 |
node_id = load_varuint |
| 1677 |
location = load_location(freeze) |
| 1678 |
value = IndexOrWriteNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1679 |
value.freeze if freeze |
| 1680 |
value |
| 1681 |
}, |
| 1682 |
-> (constant_pool, encoding, freeze) { |
| 1683 |
node_id = load_varuint |
| 1684 |
location = load_location(freeze) |
| 1685 |
value = IndexTargetNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1686 |
value.freeze if freeze |
| 1687 |
value |
| 1688 |
}, |
| 1689 |
-> (constant_pool, encoding, freeze) { |
| 1690 |
node_id = load_varuint |
| 1691 |
location = load_location(freeze) |
| 1692 |
value = InstanceVariableAndWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1693 |
value.freeze if freeze |
| 1694 |
value |
| 1695 |
}, |
| 1696 |
-> (constant_pool, encoding, freeze) { |
| 1697 |
node_id = load_varuint |
| 1698 |
location = load_location(freeze) |
| 1699 |
value = InstanceVariableOperatorWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding)) |
| 1700 |
value.freeze if freeze |
| 1701 |
value |
| 1702 |
}, |
| 1703 |
-> (constant_pool, encoding, freeze) { |
| 1704 |
node_id = load_varuint |
| 1705 |
location = load_location(freeze) |
| 1706 |
value = InstanceVariableOrWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1707 |
value.freeze if freeze |
| 1708 |
value |
| 1709 |
}, |
| 1710 |
-> (constant_pool, encoding, freeze) { |
| 1711 |
node_id = load_varuint |
| 1712 |
location = load_location(freeze) |
| 1713 |
value = InstanceVariableReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1714 |
value.freeze if freeze |
| 1715 |
value |
| 1716 |
}, |
| 1717 |
-> (constant_pool, encoding, freeze) { |
| 1718 |
node_id = load_varuint |
| 1719 |
location = load_location(freeze) |
| 1720 |
value = InstanceVariableTargetNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 1721 |
value.freeze if freeze |
| 1722 |
value |
| 1723 |
}, |
| 1724 |
-> (constant_pool, encoding, freeze) { |
| 1725 |
node_id = load_varuint |
| 1726 |
location = load_location(freeze) |
| 1727 |
value = InstanceVariableWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1728 |
value.freeze if freeze |
| 1729 |
value |
| 1730 |
}, |
| 1731 |
-> (constant_pool, encoding, freeze) { |
| 1732 |
node_id = load_varuint |
| 1733 |
location = load_location(freeze) |
| 1734 |
value = IntegerNode.new(source, node_id, location, load_varuint, load_integer) |
| 1735 |
value.freeze if freeze |
| 1736 |
value |
| 1737 |
}, |
| 1738 |
-> (constant_pool, encoding, freeze) { |
| 1739 |
node_id = load_varuint |
| 1740 |
location = load_location(freeze) |
| 1741 |
value = InterpolatedMatchLastLineNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_location(freeze)) |
| 1742 |
value.freeze if freeze |
| 1743 |
value |
| 1744 |
}, |
| 1745 |
-> (constant_pool, encoding, freeze) { |
| 1746 |
node_id = load_varuint |
| 1747 |
location = load_location(freeze) |
| 1748 |
value = InterpolatedRegularExpressionNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_location(freeze)) |
| 1749 |
value.freeze if freeze |
| 1750 |
value |
| 1751 |
}, |
| 1752 |
-> (constant_pool, encoding, freeze) { |
| 1753 |
node_id = load_varuint |
| 1754 |
location = load_location(freeze) |
| 1755 |
value = InterpolatedStringNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_location(freeze)) |
| 1756 |
value.freeze if freeze |
| 1757 |
value |
| 1758 |
}, |
| 1759 |
-> (constant_pool, encoding, freeze) { |
| 1760 |
node_id = load_varuint |
| 1761 |
location = load_location(freeze) |
| 1762 |
value = InterpolatedSymbolNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_location(freeze)) |
| 1763 |
value.freeze if freeze |
| 1764 |
value |
| 1765 |
}, |
| 1766 |
-> (constant_pool, encoding, freeze) { |
| 1767 |
node_id = load_varuint |
| 1768 |
location = load_location(freeze) |
| 1769 |
value = InterpolatedXStringNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_location(freeze)) |
| 1770 |
value.freeze if freeze |
| 1771 |
value |
| 1772 |
}, |
| 1773 |
-> (constant_pool, encoding, freeze) { |
| 1774 |
node_id = load_varuint |
| 1775 |
location = load_location(freeze) |
| 1776 |
value = ItLocalVariableReadNode.new(source, node_id, location, load_varuint) |
| 1777 |
value.freeze if freeze |
| 1778 |
value |
| 1779 |
}, |
| 1780 |
-> (constant_pool, encoding, freeze) { |
| 1781 |
node_id = load_varuint |
| 1782 |
location = load_location(freeze) |
| 1783 |
value = ItParametersNode.new(source, node_id, location, load_varuint) |
| 1784 |
value.freeze if freeze |
| 1785 |
value |
| 1786 |
}, |
| 1787 |
-> (constant_pool, encoding, freeze) { |
| 1788 |
node_id = load_varuint |
| 1789 |
location = load_location(freeze) |
| 1790 |
value = KeywordHashNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }) |
| 1791 |
value.freeze if freeze |
| 1792 |
value |
| 1793 |
}, |
| 1794 |
-> (constant_pool, encoding, freeze) { |
| 1795 |
node_id = load_varuint |
| 1796 |
location = load_location(freeze) |
| 1797 |
value = KeywordRestParameterNode.new(source, node_id, location, load_varuint, load_optional_constant(constant_pool, encoding), load_optional_location(freeze), load_location(freeze)) |
| 1798 |
value.freeze if freeze |
| 1799 |
value |
| 1800 |
}, |
| 1801 |
-> (constant_pool, encoding, freeze) { |
| 1802 |
node_id = load_varuint |
| 1803 |
location = load_location(freeze) |
| 1804 |
value = LambdaNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }, load_location(freeze), load_location(freeze), load_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1805 |
value.freeze if freeze |
| 1806 |
value |
| 1807 |
}, |
| 1808 |
-> (constant_pool, encoding, freeze) { |
| 1809 |
node_id = load_varuint |
| 1810 |
location = load_location(freeze) |
| 1811 |
value = LocalVariableAndWriteNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding), load_varuint) |
| 1812 |
value.freeze if freeze |
| 1813 |
value |
| 1814 |
}, |
| 1815 |
-> (constant_pool, encoding, freeze) { |
| 1816 |
node_id = load_varuint |
| 1817 |
location = load_location(freeze) |
| 1818 |
value = LocalVariableOperatorWriteNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding), load_constant(constant_pool, encoding), load_varuint) |
| 1819 |
value.freeze if freeze |
| 1820 |
value |
| 1821 |
}, |
| 1822 |
-> (constant_pool, encoding, freeze) { |
| 1823 |
node_id = load_varuint |
| 1824 |
location = load_location(freeze) |
| 1825 |
value = LocalVariableOrWriteNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_constant(constant_pool, encoding), load_varuint) |
| 1826 |
value.freeze if freeze |
| 1827 |
value |
| 1828 |
}, |
| 1829 |
-> (constant_pool, encoding, freeze) { |
| 1830 |
node_id = load_varuint |
| 1831 |
location = load_location(freeze) |
| 1832 |
value = LocalVariableReadNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_varuint) |
| 1833 |
value.freeze if freeze |
| 1834 |
value |
| 1835 |
}, |
| 1836 |
-> (constant_pool, encoding, freeze) { |
| 1837 |
node_id = load_varuint |
| 1838 |
location = load_location(freeze) |
| 1839 |
value = LocalVariableTargetNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_varuint) |
| 1840 |
value.freeze if freeze |
| 1841 |
value |
| 1842 |
}, |
| 1843 |
-> (constant_pool, encoding, freeze) { |
| 1844 |
node_id = load_varuint |
| 1845 |
location = load_location(freeze) |
| 1846 |
value = LocalVariableWriteNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_varuint, load_location(freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1847 |
value.freeze if freeze |
| 1848 |
value |
| 1849 |
}, |
| 1850 |
-> (constant_pool, encoding, freeze) { |
| 1851 |
node_id = load_varuint |
| 1852 |
location = load_location(freeze) |
| 1853 |
value = MatchLastLineNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_location(freeze), load_string(encoding)) |
| 1854 |
value.freeze if freeze |
| 1855 |
value |
| 1856 |
}, |
| 1857 |
-> (constant_pool, encoding, freeze) { |
| 1858 |
node_id = load_varuint |
| 1859 |
location = load_location(freeze) |
| 1860 |
value = MatchPredicateNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1861 |
value.freeze if freeze |
| 1862 |
value |
| 1863 |
}, |
| 1864 |
-> (constant_pool, encoding, freeze) { |
| 1865 |
node_id = load_varuint |
| 1866 |
location = load_location(freeze) |
| 1867 |
value = MatchRequiredNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1868 |
value.freeze if freeze |
| 1869 |
value |
| 1870 |
}, |
| 1871 |
-> (constant_pool, encoding, freeze) { |
| 1872 |
node_id = load_varuint |
| 1873 |
location = load_location(freeze) |
| 1874 |
value = MatchWriteNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }) |
| 1875 |
value.freeze if freeze |
| 1876 |
value |
| 1877 |
}, |
| 1878 |
-> (constant_pool, encoding, freeze) { |
| 1879 |
node_id = load_varuint |
| 1880 |
location = load_location(freeze) |
| 1881 |
value = MissingNode.new(source, node_id, location, load_varuint) |
| 1882 |
value.freeze if freeze |
| 1883 |
value |
| 1884 |
}, |
| 1885 |
-> (constant_pool, encoding, freeze) { |
| 1886 |
node_id = load_varuint |
| 1887 |
location = load_location(freeze) |
| 1888 |
value = ModuleNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }, load_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_constant(constant_pool, encoding)) |
| 1889 |
value.freeze if freeze |
| 1890 |
value |
| 1891 |
}, |
| 1892 |
-> (constant_pool, encoding, freeze) { |
| 1893 |
node_id = load_varuint |
| 1894 |
location = load_location(freeze) |
| 1895 |
value = MultiTargetNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_location(freeze), load_optional_location(freeze)) |
| 1896 |
value.freeze if freeze |
| 1897 |
value |
| 1898 |
}, |
| 1899 |
-> (constant_pool, encoding, freeze) { |
| 1900 |
node_id = load_varuint |
| 1901 |
location = load_location(freeze) |
| 1902 |
value = MultiWriteNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_location(freeze), load_optional_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1903 |
value.freeze if freeze |
| 1904 |
value |
| 1905 |
}, |
| 1906 |
-> (constant_pool, encoding, freeze) { |
| 1907 |
node_id = load_varuint |
| 1908 |
location = load_location(freeze) |
| 1909 |
value = NextNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1910 |
value.freeze if freeze |
| 1911 |
value |
| 1912 |
}, |
| 1913 |
-> (constant_pool, encoding, freeze) { |
| 1914 |
node_id = load_varuint |
| 1915 |
location = load_location(freeze) |
| 1916 |
value = NilNode.new(source, node_id, location, load_varuint) |
| 1917 |
value.freeze if freeze |
| 1918 |
value |
| 1919 |
}, |
| 1920 |
-> (constant_pool, encoding, freeze) { |
| 1921 |
node_id = load_varuint |
| 1922 |
location = load_location(freeze) |
| 1923 |
value = NoKeywordsParameterNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze)) |
| 1924 |
value.freeze if freeze |
| 1925 |
value |
| 1926 |
}, |
| 1927 |
-> (constant_pool, encoding, freeze) { |
| 1928 |
node_id = load_varuint |
| 1929 |
location = load_location(freeze) |
| 1930 |
value = NumberedParametersNode.new(source, node_id, location, load_varuint, io.getbyte) |
| 1931 |
value.freeze if freeze |
| 1932 |
value |
| 1933 |
}, |
| 1934 |
-> (constant_pool, encoding, freeze) { |
| 1935 |
node_id = load_varuint |
| 1936 |
location = load_location(freeze) |
| 1937 |
value = NumberedReferenceReadNode.new(source, node_id, location, load_varuint, load_varuint) |
| 1938 |
value.freeze if freeze |
| 1939 |
value |
| 1940 |
}, |
| 1941 |
-> (constant_pool, encoding, freeze) { |
| 1942 |
node_id = load_varuint |
| 1943 |
location = load_location(freeze) |
| 1944 |
value = OptionalKeywordParameterNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1945 |
value.freeze if freeze |
| 1946 |
value |
| 1947 |
}, |
| 1948 |
-> (constant_pool, encoding, freeze) { |
| 1949 |
node_id = load_varuint |
| 1950 |
location = load_location(freeze) |
| 1951 |
value = OptionalParameterNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 1952 |
value.freeze if freeze |
| 1953 |
value |
| 1954 |
}, |
| 1955 |
-> (constant_pool, encoding, freeze) { |
| 1956 |
node_id = load_varuint |
| 1957 |
location = load_location(freeze) |
| 1958 |
value = OrNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1959 |
value.freeze if freeze |
| 1960 |
value |
| 1961 |
}, |
| 1962 |
-> (constant_pool, encoding, freeze) { |
| 1963 |
node_id = load_varuint |
| 1964 |
location = load_location(freeze) |
| 1965 |
value = ParametersNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_node(constant_pool, encoding, freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 1966 |
value.freeze if freeze |
| 1967 |
value |
| 1968 |
}, |
| 1969 |
-> (constant_pool, encoding, freeze) { |
| 1970 |
node_id = load_varuint |
| 1971 |
location = load_location(freeze) |
| 1972 |
value = ParenthesesNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze)) |
| 1973 |
value.freeze if freeze |
| 1974 |
value |
| 1975 |
}, |
| 1976 |
-> (constant_pool, encoding, freeze) { |
| 1977 |
node_id = load_varuint |
| 1978 |
location = load_location(freeze) |
| 1979 |
value = PinnedExpressionNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze), load_location(freeze)) |
| 1980 |
value.freeze if freeze |
| 1981 |
value |
| 1982 |
}, |
| 1983 |
-> (constant_pool, encoding, freeze) { |
| 1984 |
node_id = load_varuint |
| 1985 |
location = load_location(freeze) |
| 1986 |
value = PinnedVariableNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 1987 |
value.freeze if freeze |
| 1988 |
value |
| 1989 |
}, |
| 1990 |
-> (constant_pool, encoding, freeze) { |
| 1991 |
node_id = load_varuint |
| 1992 |
location = load_location(freeze) |
| 1993 |
value = PostExecutionNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze), load_location(freeze)) |
| 1994 |
value.freeze if freeze |
| 1995 |
value |
| 1996 |
}, |
| 1997 |
-> (constant_pool, encoding, freeze) { |
| 1998 |
node_id = load_varuint |
| 1999 |
location = load_location(freeze) |
| 2000 |
value = PreExecutionNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_location(freeze), load_location(freeze), load_location(freeze)) |
| 2001 |
value.freeze if freeze |
| 2002 |
value |
| 2003 |
}, |
| 2004 |
-> (constant_pool, encoding, freeze) { |
| 2005 |
node_id = load_varuint |
| 2006 |
location = load_location(freeze) |
| 2007 |
value = ProgramNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }, load_node(constant_pool, encoding, freeze)) |
| 2008 |
value.freeze if freeze |
| 2009 |
value |
| 2010 |
}, |
| 2011 |
-> (constant_pool, encoding, freeze) { |
| 2012 |
node_id = load_varuint |
| 2013 |
location = load_location(freeze) |
| 2014 |
value = RangeNode.new(source, node_id, location, load_varuint, load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 2015 |
value.freeze if freeze |
| 2016 |
value |
| 2017 |
}, |
| 2018 |
-> (constant_pool, encoding, freeze) { |
| 2019 |
node_id = load_varuint |
| 2020 |
location = load_location(freeze) |
| 2021 |
value = RationalNode.new(source, node_id, location, load_varuint, load_integer, load_integer) |
| 2022 |
value.freeze if freeze |
| 2023 |
value |
| 2024 |
}, |
| 2025 |
-> (constant_pool, encoding, freeze) { |
| 2026 |
node_id = load_varuint |
| 2027 |
location = load_location(freeze) |
| 2028 |
value = RedoNode.new(source, node_id, location, load_varuint) |
| 2029 |
value.freeze if freeze |
| 2030 |
value |
| 2031 |
}, |
| 2032 |
-> (constant_pool, encoding, freeze) { |
| 2033 |
node_id = load_varuint |
| 2034 |
location = load_location(freeze) |
| 2035 |
value = RegularExpressionNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_location(freeze), load_string(encoding)) |
| 2036 |
value.freeze if freeze |
| 2037 |
value |
| 2038 |
}, |
| 2039 |
-> (constant_pool, encoding, freeze) { |
| 2040 |
node_id = load_varuint |
| 2041 |
location = load_location(freeze) |
| 2042 |
value = RequiredKeywordParameterNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding), load_location(freeze)) |
| 2043 |
value.freeze if freeze |
| 2044 |
value |
| 2045 |
}, |
| 2046 |
-> (constant_pool, encoding, freeze) { |
| 2047 |
node_id = load_varuint |
| 2048 |
location = load_location(freeze) |
| 2049 |
value = RequiredParameterNode.new(source, node_id, location, load_varuint, load_constant(constant_pool, encoding)) |
| 2050 |
value.freeze if freeze |
| 2051 |
value |
| 2052 |
}, |
| 2053 |
-> (constant_pool, encoding, freeze) { |
| 2054 |
node_id = load_varuint |
| 2055 |
location = load_location(freeze) |
| 2056 |
value = RescueModifierNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze), load_location(freeze), load_node(constant_pool, encoding, freeze)) |
| 2057 |
value.freeze if freeze |
| 2058 |
value |
| 2059 |
}, |
| 2060 |
-> (constant_pool, encoding, freeze) { |
| 2061 |
node_id = load_varuint |
| 2062 |
location = load_location(freeze) |
| 2063 |
value = RescueNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 2064 |
value.freeze if freeze |
| 2065 |
value |
| 2066 |
}, |
| 2067 |
-> (constant_pool, encoding, freeze) { |
| 2068 |
node_id = load_varuint |
| 2069 |
location = load_location(freeze) |
| 2070 |
value = RestParameterNode.new(source, node_id, location, load_varuint, load_optional_constant(constant_pool, encoding), load_optional_location(freeze), load_location(freeze)) |
| 2071 |
value.freeze if freeze |
| 2072 |
value |
| 2073 |
}, |
| 2074 |
-> (constant_pool, encoding, freeze) { |
| 2075 |
node_id = load_varuint |
| 2076 |
location = load_location(freeze) |
| 2077 |
value = RetryNode.new(source, node_id, location, load_varuint) |
| 2078 |
value.freeze if freeze |
| 2079 |
value |
| 2080 |
}, |
| 2081 |
-> (constant_pool, encoding, freeze) { |
| 2082 |
node_id = load_varuint |
| 2083 |
location = load_location(freeze) |
| 2084 |
value = ReturnNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 2085 |
value.freeze if freeze |
| 2086 |
value |
| 2087 |
}, |
| 2088 |
-> (constant_pool, encoding, freeze) { |
| 2089 |
node_id = load_varuint |
| 2090 |
location = load_location(freeze) |
| 2091 |
value = SelfNode.new(source, node_id, location, load_varuint) |
| 2092 |
value.freeze if freeze |
| 2093 |
value |
| 2094 |
}, |
| 2095 |
-> (constant_pool, encoding, freeze) { |
| 2096 |
node_id = load_varuint |
| 2097 |
location = load_location(freeze) |
| 2098 |
value = ShareableConstantNode.new(source, node_id, location, load_varuint, load_node(constant_pool, encoding, freeze)) |
| 2099 |
value.freeze if freeze |
| 2100 |
value |
| 2101 |
}, |
| 2102 |
-> (constant_pool, encoding, freeze) { |
| 2103 |
node_id = load_varuint |
| 2104 |
location = load_location(freeze) |
| 2105 |
value = SingletonClassNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_constant(constant_pool, encoding) }, load_location(freeze), load_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_location(freeze)) |
| 2106 |
value.freeze if freeze |
| 2107 |
value |
| 2108 |
}, |
| 2109 |
-> (constant_pool, encoding, freeze) { |
| 2110 |
node_id = load_varuint |
| 2111 |
location = load_location(freeze) |
| 2112 |
value = SourceEncodingNode.new(source, node_id, location, load_varuint) |
| 2113 |
value.freeze if freeze |
| 2114 |
value |
| 2115 |
}, |
| 2116 |
-> (constant_pool, encoding, freeze) { |
| 2117 |
node_id = load_varuint |
| 2118 |
location = load_location(freeze) |
| 2119 |
value = SourceFileNode.new(source, node_id, location, load_varuint, load_string(encoding)) |
| 2120 |
value.freeze if freeze |
| 2121 |
value |
| 2122 |
}, |
| 2123 |
-> (constant_pool, encoding, freeze) { |
| 2124 |
node_id = load_varuint |
| 2125 |
location = load_location(freeze) |
| 2126 |
value = SourceLineNode.new(source, node_id, location, load_varuint) |
| 2127 |
value.freeze if freeze |
| 2128 |
value |
| 2129 |
}, |
| 2130 |
-> (constant_pool, encoding, freeze) { |
| 2131 |
node_id = load_varuint |
| 2132 |
location = load_location(freeze) |
| 2133 |
value = SplatNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 2134 |
value.freeze if freeze |
| 2135 |
value |
| 2136 |
}, |
| 2137 |
-> (constant_pool, encoding, freeze) { |
| 2138 |
node_id = load_varuint |
| 2139 |
location = load_location(freeze) |
| 2140 |
value = StatementsNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }) |
| 2141 |
value.freeze if freeze |
| 2142 |
value |
| 2143 |
}, |
| 2144 |
-> (constant_pool, encoding, freeze) { |
| 2145 |
node_id = load_varuint |
| 2146 |
location = load_location(freeze) |
| 2147 |
value = StringNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), load_location(freeze), load_optional_location(freeze), load_string(encoding)) |
| 2148 |
value.freeze if freeze |
| 2149 |
value |
| 2150 |
}, |
| 2151 |
-> (constant_pool, encoding, freeze) { |
| 2152 |
node_id = load_varuint |
| 2153 |
location = load_location(freeze) |
| 2154 |
value = SuperNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 2155 |
value.freeze if freeze |
| 2156 |
value |
| 2157 |
}, |
| 2158 |
-> (constant_pool, encoding, freeze) { |
| 2159 |
node_id = load_varuint |
| 2160 |
location = load_location(freeze) |
| 2161 |
value = SymbolNode.new(source, node_id, location, load_varuint, load_optional_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_string(encoding)) |
| 2162 |
value.freeze if freeze |
| 2163 |
value |
| 2164 |
}, |
| 2165 |
-> (constant_pool, encoding, freeze) { |
| 2166 |
node_id = load_varuint |
| 2167 |
location = load_location(freeze) |
| 2168 |
value = TrueNode.new(source, node_id, location, load_varuint) |
| 2169 |
value.freeze if freeze |
| 2170 |
value |
| 2171 |
}, |
| 2172 |
-> (constant_pool, encoding, freeze) { |
| 2173 |
node_id = load_varuint |
| 2174 |
location = load_location(freeze) |
| 2175 |
value = UndefNode.new(source, node_id, location, load_varuint, Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_location(freeze)) |
| 2176 |
value.freeze if freeze |
| 2177 |
value |
| 2178 |
}, |
| 2179 |
-> (constant_pool, encoding, freeze) { |
| 2180 |
node_id = load_varuint |
| 2181 |
location = load_location(freeze) |
| 2182 |
value = UnlessNode.new(source, node_id, location, load_varuint, load_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 2183 |
value.freeze if freeze |
| 2184 |
value |
| 2185 |
}, |
| 2186 |
-> (constant_pool, encoding, freeze) { |
| 2187 |
node_id = load_varuint |
| 2188 |
location = load_location(freeze) |
| 2189 |
value = UntilNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 2190 |
value.freeze if freeze |
| 2191 |
value |
| 2192 |
}, |
| 2193 |
-> (constant_pool, encoding, freeze) { |
| 2194 |
node_id = load_varuint |
| 2195 |
location = load_location(freeze) |
| 2196 |
value = WhenNode.new(source, node_id, location, load_varuint, load_location(freeze), Array.new(load_varuint) { load_node(constant_pool, encoding, freeze) }, load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 2197 |
value.freeze if freeze |
| 2198 |
value |
| 2199 |
}, |
| 2200 |
-> (constant_pool, encoding, freeze) { |
| 2201 |
node_id = load_varuint |
| 2202 |
location = load_location(freeze) |
| 2203 |
value = WhileNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_location(freeze), load_optional_location(freeze), load_node(constant_pool, encoding, freeze), load_optional_node(constant_pool, encoding, freeze)) |
| 2204 |
value.freeze if freeze |
| 2205 |
value |
| 2206 |
}, |
| 2207 |
-> (constant_pool, encoding, freeze) { |
| 2208 |
node_id = load_varuint |
| 2209 |
location = load_location(freeze) |
| 2210 |
value = XStringNode.new(source, node_id, location, load_varuint, load_location(freeze), load_location(freeze), load_location(freeze), load_string(encoding)) |
| 2211 |
value.freeze if freeze |
| 2212 |
value |
| 2213 |
}, |
| 2214 |
-> (constant_pool, encoding, freeze) { |
| 2215 |
node_id = load_varuint |
| 2216 |
location = load_location(freeze) |
| 2217 |
value = YieldNode.new(source, node_id, location, load_varuint, load_location(freeze), load_optional_location(freeze), load_optional_node(constant_pool, encoding, freeze), load_optional_location(freeze)) |
| 2218 |
value.freeze if freeze |
| 2219 |
value |
| 2220 |
}, |
| 2221 |
] |
| 2222 |
end |
| 2223 |
end |
| 2224 |
end |
| 2225 |
|
| 2226 |
|
| 2227 |
TOKEN_TYPES = [ |
| 2228 |
nil, |
| 2229 |
:EOF, |
| 2230 |
:BRACE_RIGHT, |
| 2231 |
:COMMA, |
| 2232 |
:EMBEXPR_END, |
| 2233 |
:KEYWORD_DO, |
| 2234 |
:KEYWORD_ELSE, |
| 2235 |
:KEYWORD_ELSIF, |
| 2236 |
:KEYWORD_END, |
| 2237 |
:KEYWORD_ENSURE, |
| 2238 |
:KEYWORD_IN, |
| 2239 |
:KEYWORD_RESCUE, |
| 2240 |
:KEYWORD_THEN, |
| 2241 |
:KEYWORD_WHEN, |
| 2242 |
:NEWLINE, |
| 2243 |
:PARENTHESIS_RIGHT, |
| 2244 |
:PIPE, |
| 2245 |
:SEMICOLON, |
| 2246 |
:AMPERSAND, |
| 2247 |
:AMPERSAND_AMPERSAND, |
| 2248 |
:AMPERSAND_AMPERSAND_EQUAL, |
| 2249 |
:AMPERSAND_DOT, |
| 2250 |
:AMPERSAND_EQUAL, |
| 2251 |
:BACKTICK, |
| 2252 |
:BACK_REFERENCE, |
| 2253 |
:BANG, |
| 2254 |
:BANG_EQUAL, |
| 2255 |
:BANG_TILDE, |
| 2256 |
:BRACE_LEFT, |
| 2257 |
:BRACKET_LEFT, |
| 2258 |
:BRACKET_LEFT_ARRAY, |
| 2259 |
:BRACKET_LEFT_RIGHT, |
| 2260 |
:BRACKET_LEFT_RIGHT_EQUAL, |
| 2261 |
:BRACKET_RIGHT, |
| 2262 |
:CARET, |
| 2263 |
:CARET_EQUAL, |
| 2264 |
:CHARACTER_LITERAL, |
| 2265 |
:CLASS_VARIABLE, |
| 2266 |
:COLON, |
| 2267 |
:COLON_COLON, |
| 2268 |
:COMMENT, |
| 2269 |
:CONSTANT, |
| 2270 |
:DOT, |
| 2271 |
:DOT_DOT, |
| 2272 |
:DOT_DOT_DOT, |
| 2273 |
:EMBDOC_BEGIN, |
| 2274 |
:EMBDOC_END, |
| 2275 |
:EMBDOC_LINE, |
| 2276 |
:EMBEXPR_BEGIN, |
| 2277 |
:EMBVAR, |
| 2278 |
:EQUAL, |
| 2279 |
:EQUAL_EQUAL, |
| 2280 |
:EQUAL_EQUAL_EQUAL, |
| 2281 |
:EQUAL_GREATER, |
| 2282 |
:EQUAL_TILDE, |
| 2283 |
:FLOAT, |
| 2284 |
:FLOAT_IMAGINARY, |
| 2285 |
:FLOAT_RATIONAL, |
| 2286 |
:FLOAT_RATIONAL_IMAGINARY, |
| 2287 |
:GLOBAL_VARIABLE, |
| 2288 |
:GREATER, |
| 2289 |
:GREATER_EQUAL, |
| 2290 |
:GREATER_GREATER, |
| 2291 |
:GREATER_GREATER_EQUAL, |
| 2292 |
:HEREDOC_END, |
| 2293 |
:HEREDOC_START, |
| 2294 |
:IDENTIFIER, |
| 2295 |
:IGNORED_NEWLINE, |
| 2296 |
:INSTANCE_VARIABLE, |
| 2297 |
:INTEGER, |
| 2298 |
:INTEGER_IMAGINARY, |
| 2299 |
:INTEGER_RATIONAL, |
| 2300 |
:INTEGER_RATIONAL_IMAGINARY, |
| 2301 |
:KEYWORD_ALIAS, |
| 2302 |
:KEYWORD_AND, |
| 2303 |
:KEYWORD_BEGIN, |
| 2304 |
:KEYWORD_BEGIN_UPCASE, |
| 2305 |
:KEYWORD_BREAK, |
| 2306 |
:KEYWORD_CASE, |
| 2307 |
:KEYWORD_CLASS, |
| 2308 |
:KEYWORD_DEF, |
| 2309 |
:KEYWORD_DEFINED, |
| 2310 |
:KEYWORD_DO_LOOP, |
| 2311 |
:KEYWORD_END_UPCASE, |
| 2312 |
:KEYWORD_FALSE, |
| 2313 |
:KEYWORD_FOR, |
| 2314 |
:KEYWORD_IF, |
| 2315 |
:KEYWORD_IF_MODIFIER, |
| 2316 |
:KEYWORD_MODULE, |
| 2317 |
:KEYWORD_NEXT, |
| 2318 |
:KEYWORD_NIL, |
| 2319 |
:KEYWORD_NOT, |
| 2320 |
:KEYWORD_OR, |
| 2321 |
:KEYWORD_REDO, |
| 2322 |
:KEYWORD_RESCUE_MODIFIER, |
| 2323 |
:KEYWORD_RETRY, |
| 2324 |
:KEYWORD_RETURN, |
| 2325 |
:KEYWORD_SELF, |
| 2326 |
:KEYWORD_SUPER, |
| 2327 |
:KEYWORD_TRUE, |
| 2328 |
:KEYWORD_UNDEF, |
| 2329 |
:KEYWORD_UNLESS, |
| 2330 |
:KEYWORD_UNLESS_MODIFIER, |
| 2331 |
:KEYWORD_UNTIL, |
| 2332 |
:KEYWORD_UNTIL_MODIFIER, |
| 2333 |
:KEYWORD_WHILE, |
| 2334 |
:KEYWORD_WHILE_MODIFIER, |
| 2335 |
:KEYWORD_YIELD, |
| 2336 |
:KEYWORD___ENCODING__, |
| 2337 |
:KEYWORD___FILE__, |
| 2338 |
:KEYWORD___LINE__, |
| 2339 |
:LABEL, |
| 2340 |
:LABEL_END, |
| 2341 |
:LAMBDA_BEGIN, |
| 2342 |
:LESS, |
| 2343 |
:LESS_EQUAL, |
| 2344 |
:LESS_EQUAL_GREATER, |
| 2345 |
:LESS_LESS, |
| 2346 |
:LESS_LESS_EQUAL, |
| 2347 |
:METHOD_NAME, |
| 2348 |
:MINUS, |
| 2349 |
:MINUS_EQUAL, |
| 2350 |
:MINUS_GREATER, |
| 2351 |
:NUMBERED_REFERENCE, |
| 2352 |
:PARENTHESIS_LEFT, |
| 2353 |
:PARENTHESIS_LEFT_PARENTHESES, |
| 2354 |
:PERCENT, |
| 2355 |
:PERCENT_EQUAL, |
| 2356 |
:PERCENT_LOWER_I, |
| 2357 |
:PERCENT_LOWER_W, |
| 2358 |
:PERCENT_LOWER_X, |
| 2359 |
:PERCENT_UPPER_I, |
| 2360 |
:PERCENT_UPPER_W, |
| 2361 |
:PIPE_EQUAL, |
| 2362 |
:PIPE_PIPE, |
| 2363 |
:PIPE_PIPE_EQUAL, |
| 2364 |
:PLUS, |
| 2365 |
:PLUS_EQUAL, |
| 2366 |
:QUESTION_MARK, |
| 2367 |
:REGEXP_BEGIN, |
| 2368 |
:REGEXP_END, |
| 2369 |
:SLASH, |
| 2370 |
:SLASH_EQUAL, |
| 2371 |
:STAR, |
| 2372 |
:STAR_EQUAL, |
| 2373 |
:STAR_STAR, |
| 2374 |
:STAR_STAR_EQUAL, |
| 2375 |
:STRING_BEGIN, |
| 2376 |
:STRING_CONTENT, |
| 2377 |
:STRING_END, |
| 2378 |
:SYMBOL_BEGIN, |
| 2379 |
:TILDE, |
| 2380 |
:UAMPERSAND, |
| 2381 |
:UCOLON_COLON, |
| 2382 |
:UDOT_DOT, |
| 2383 |
:UDOT_DOT_DOT, |
| 2384 |
:UMINUS, |
| 2385 |
:UMINUS_NUM, |
| 2386 |
:UPLUS, |
| 2387 |
:USTAR, |
| 2388 |
:USTAR_STAR, |
| 2389 |
:WORDS_SEP, |
| 2390 |
:__END__, |
| 2391 |
:MISSING, |
| 2392 |
:NOT_PROVIDED, |
| 2393 |
].freeze |
| 2394 |
|
| 2395 |
private_constant :MAJOR_VERSION, :MINOR_VERSION, :PATCH_VERSION |
| 2396 |
private_constant :ConstantPool, :FastStringIO, :Loader, :TOKEN_TYPES |
| 2397 |
end |
| 2398 |
|
| 2399 |
private_constant :Serialize |
| 2400 |
end |