Commit graph

9 commits

Author SHA1 Message Date
Kevin Newton
4c9a036606 [ruby/yarp] Add constants and constants
d7eaa89bc3
2023-09-06 13:00:23 +00:00
Kevin Newton
c666077182 [ruby/yarp] Add global variables to the constant pool
b48067b067
2023-09-01 22:52:14 +00:00
Benoit Daloze
4172036bc6 [ruby/yarp] Do not desugar Foo::Bar {||,&&,+}= baz as it is incorrect without a temporary variable
* See https://github.com/ruby/yarp/pull/1329#discussion_r1310775433 for details.

f0fdcba0c3
2023-09-01 13:18:29 +00:00
Benoit Daloze
7fb56df726 [ruby/yarp] Fix comments for methods using desugar_or_write_defined_node
a39147736e
2023-09-01 13:18:29 +00:00
Kevin Newton
00dbee94ac [ruby/yarp] Add class variables to the constant pool
be5cb60c83
2023-08-30 19:59:28 +00:00
Kevin Newton
c4998bc3f2 [ruby/yarp] Desugar ||= more accurately
Class variables, global variables, constants, and constant paths
should actually desugar to `defined?` instead of just reading the
value.

551a59b876
2023-08-30 16:51:17 +00:00
Kevin Newton
b435161404 [ruby/yarp] Add instance variable names to the constant pool
f049932c44
2023-08-29 20:12:57 +00:00
Benoit Daloze
5937d01f7f [ruby/yarp] Rename constant pool fields to name or operator
* `constant_id` and `operator_id` are confusing.
* See https://github.com/ruby/yarp/issues/1296

09d0a144df
2023-08-27 16:18:15 +00:00
Kevin Newton
2ebaf077f6 [ruby/yarp] Provide a desugar visitor
9fad513089
2023-08-25 19:31:30 +00:00