aboutsummaryrefslogtreecommitdiffstats
path: root/test/prism/snapshots/seattlerb/block_args_opt2.txt
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/prism] Expose common flags in inspect outputKevin Newton2024-07-111-3/+8
| | | | https://github.com/ruby/prism/commit/d0143865c2
* [ruby/prism] Regenerate snapshots using integer valuesKevin Newton2024-02-221-2/+4
|
* [ruby/prism] Remove locals_body_indexKevin Newton2024-02-011-1/+0
| | | | | | | | We're not using this anymore, and it doesn't make a lot of sense outside the context of a compiler anyway, and in anyway it's wrong when you have local variables written in default values. https://github.com/ruby/prism/commit/5edbd9c25b
* [ruby/prism] Add a "repeated flag" to parameter nodesAaron Patterson2024-01-101-0/+2
| | | | | | | | | | | | | | | | | | It's possible to repeat parameters in method definitions like so: ```ruby def foo(_a, _a) end ``` The compiler needs to know to adjust the local table size to account for these duplicate names. We'll use the repeated parameter flag to account for the extra stack space required https://github.com/ruby/prism/commit/b443cb1f60 Co-Authored-By: Kevin Newton <kddnewton@gmail.com> Co-Authored-By: Jemma Issroff <jemmaissroff@gmail.com>
* [ruby/prism] Ignore visibility flagKevin Newton2024-01-021-1/+1
| | | | https://github.com/ruby/prism/commit/55b049ddac
* [ruby/prism] Move flag position consistently to frontKevin Newton2023-12-061-36/+36
| | | | https://github.com/ruby/prism/commit/6e69a81737
* [ruby/prism] Add locals_body_index to DefNode, BlockNode, LambdaNodeJemma Issroff2023-12-061-0/+1
| | | | | | | | The locals_body_index gives the index in the locals array where the locals from the body start. This allows compilers to easily index past the parameters in the locals array. https://github.com/ruby/prism/commit/5d4627b890
* [ruby/prism] Change numbered parametersKevin Newton2023-12-011-2/+1
| | | | | | | | | | | | | | | | | | | | Previously numbered parameters were a field on blocks and lambdas that indicated the maximum number of numbered parameters in either the block or lambda, respectively. However they also had a parameters field that would always be nil in these cases. This changes it so that we introduce a NumberedParametersNode that goes in place of parameters, which has a single uint8_t maximum field on it. That field contains the maximum numbered parameter in either the block or lambda. As a part of the PR, I'm introducing a new UInt8Field type that can be used on nodes, which is just to make it a little more explicit what the maximum values can be (the maximum is actually 9, since it only goes up to _9). Plus we can do a couple of nice things in serialization like just read a single byte. https://github.com/ruby/prism/commit/2d87303903
* [ruby/prism] Add numbered_parameters field to BlockNode and LambdaNodeJemma Issroff2023-11-281-1/+2
| | | | | | | | | | | | | | | | | | We are aware at parse time how many numbered parameters we have on a BlockNode or LambdaNode, but prior to this commit, did not store that information anywhere in its own right. The numbered parameters were stored as locals, but this does not distinguish them from other locals that have been set, for example in `a { b = 1; _1 }` there is nothing on the AST that distinguishes b from _1. Consumers such as the compiler need to know information about how many numbered parameters exist to set up their own tables around parameters. Since we have this information at parse time, we should compute it here, instead of deferring the work later on. https://github.com/ruby/prism/commit/bf4a1e124d
* [ruby/prism] Move CallNode#name field between receiver and argumentsBenoit Daloze2023-11-221-2/+2
| | | | | | | | * The same order as in source code. * CallOrWriteNode, CallOperatorWriteNode, CallAndWriteNode already have the correct order so it was also inconsistent with them. https://github.com/ruby/prism/commit/4434e4bc22
* Sync with prism CallNode#name changesBenoit Daloze2023-10-021-1/+1
| | | | * https://github.com/ruby/prism/pull/1533
* Rename YARP filepaths to prism filepathsKevin Newton2023-09-271-0/+48