diff options
author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-10-26 15:02:27 -0300 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-10-26 18:47:50 +0000 |
commit | 7e4ee92de225473d3ad3ac8d0a27bd02a2905738 (patch) | |
tree | 32dcd2d4305bcba802b82e319799339ef942a38b /test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt | |
parent | a082e560bb3b875dfcce5ff4743a04e76e008d46 (diff) | |
download | ruby-7e4ee92de225473d3ad3ac8d0a27bd02a2905738.tar.gz |
[ruby/prism] Add KeywordSplat flag to ArgumentsNode
Method calls with keyword splat args compile differently than
without since they merge the keyword arg hash with the keyword splat
hash. We know this information at parse time, so can set a flag
which the compiler can use.
https://github.com/ruby/prism/commit/e5f8a9a3cd
Diffstat (limited to 'test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt')
-rw-r--r-- | test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt b/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt index 5a52f22cc7..ac277f1ae8 100644 --- a/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt +++ b/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt @@ -10,29 +10,30 @@ ├── opening_loc: ∅ ├── arguments: │ @ ArgumentsNode (location: (1,4)-(1,17)) - │ └── arguments: (length: 1) - │ └── @ ParenthesesNode (location: (1,4)-(1,17)) - │ ├── body: - │ │ @ StatementsNode (location: (1,5)-(1,16)) - │ │ └── body: (length: 1) - │ │ └── @ CallNode (location: (1,5)-(1,16)) - │ │ ├── receiver: ∅ - │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (1,5)-(1,9) = "proc" - │ │ ├── opening_loc: ∅ - │ │ ├── arguments: ∅ - │ │ ├── closing_loc: ∅ - │ │ ├── block: - │ │ │ @ BlockNode (location: (1,10)-(1,16)) - │ │ │ ├── locals: [] - │ │ │ ├── parameters: ∅ - │ │ │ ├── body: ∅ - │ │ │ ├── opening_loc: (1,10)-(1,12) = "do" - │ │ │ └── closing_loc: (1,13)-(1,16) = "end" - │ │ ├── flags: ∅ - │ │ └── name: :proc - │ ├── opening_loc: (1,4)-(1,5) = "(" - │ └── closing_loc: (1,16)-(1,17) = ")" + │ ├── arguments: (length: 1) + │ │ └── @ ParenthesesNode (location: (1,4)-(1,17)) + │ │ ├── body: + │ │ │ @ StatementsNode (location: (1,5)-(1,16)) + │ │ │ └── body: (length: 1) + │ │ │ └── @ CallNode (location: (1,5)-(1,16)) + │ │ │ ├── receiver: ∅ + │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── message_loc: (1,5)-(1,9) = "proc" + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── arguments: ∅ + │ │ │ ├── closing_loc: ∅ + │ │ │ ├── block: + │ │ │ │ @ BlockNode (location: (1,10)-(1,16)) + │ │ │ │ ├── locals: [] + │ │ │ │ ├── parameters: ∅ + │ │ │ │ ├── body: ∅ + │ │ │ │ ├── opening_loc: (1,10)-(1,12) = "do" + │ │ │ │ └── closing_loc: (1,13)-(1,16) = "end" + │ │ │ ├── flags: ∅ + │ │ │ └── name: :proc + │ │ ├── opening_loc: (1,4)-(1,5) = "(" + │ │ └── closing_loc: (1,16)-(1,17) = ")" + │ └── flags: ∅ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ |