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/unparser/corpus/semantic/send.txt | |
parent | a082e560bb3b875dfcce5ff4743a04e76e008d46 (diff) |
[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/unparser/corpus/semantic/send.txt')
-rw-r--r-- | test/prism/snapshots/unparser/corpus/semantic/send.txt | 141 |
1 files changed, 73 insertions, 68 deletions
diff --git a/test/prism/snapshots/unparser/corpus/semantic/send.txt b/test/prism/snapshots/unparser/corpus/semantic/send.txt index f1f5362ce8..30e2707edc 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/send.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/send.txt @@ -20,9 +20,10 @@ │ ├── opening_loc: (2,3)-(2,4) = "(" │ ├── arguments: │ │ @ ArgumentsNode (location: (2,4)-(2,5)) - │ │ └── arguments: (length: 1) - │ │ └── @ IntegerNode (location: (2,4)-(2,5)) - │ │ └── flags: decimal + │ │ ├── arguments: (length: 1) + │ │ │ └── @ IntegerNode (location: (2,4)-(2,5)) + │ │ │ └── flags: decimal + │ │ └── flags: ∅ │ ├── closing_loc: (2,5)-(2,6) = ")" │ ├── block: ∅ │ ├── flags: ∅ @@ -48,17 +49,18 @@ │ │ │ ├── opening_loc: (4,5)-(4,6) = "(" │ │ │ ├── arguments: │ │ │ │ @ ArgumentsNode (location: (4,6)-(4,7)) - │ │ │ │ └── arguments: (length: 1) - │ │ │ │ └── @ CallNode (location: (4,6)-(4,7)) - │ │ │ │ ├── receiver: ∅ - │ │ │ │ ├── call_operator_loc: ∅ - │ │ │ │ ├── message_loc: (4,6)-(4,7) = "b" - │ │ │ │ ├── opening_loc: ∅ - │ │ │ │ ├── arguments: ∅ - │ │ │ │ ├── closing_loc: ∅ - │ │ │ │ ├── block: ∅ - │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: :b + │ │ │ │ ├── arguments: (length: 1) + │ │ │ │ │ └── @ CallNode (location: (4,6)-(4,7)) + │ │ │ │ │ ├── receiver: ∅ + │ │ │ │ │ ├── call_operator_loc: ∅ + │ │ │ │ │ ├── message_loc: (4,6)-(4,7) = "b" + │ │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ │ ├── arguments: ∅ + │ │ │ │ │ ├── closing_loc: ∅ + │ │ │ │ │ ├── block: ∅ + │ │ │ │ │ ├── flags: variable_call + │ │ │ │ │ └── name: :b + │ │ │ │ └── flags: ∅ │ │ │ ├── closing_loc: (4,7)-(4,8) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ @@ -76,17 +78,18 @@ │ ├── opening_loc: ∅ │ ├── arguments: │ │ @ ArgumentsNode (location: (4,14)-(4,15)) - │ │ └── arguments: (length: 1) - │ │ └── @ CallNode (location: (4,14)-(4,15)) - │ │ ├── receiver: ∅ - │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (4,14)-(4,15) = "d" - │ │ ├── opening_loc: ∅ - │ │ ├── arguments: ∅ - │ │ ├── closing_loc: ∅ - │ │ ├── block: ∅ - │ │ ├── flags: variable_call - │ │ └── name: :d + │ │ ├── arguments: (length: 1) + │ │ │ └── @ CallNode (location: (4,14)-(4,15)) + │ │ │ ├── receiver: ∅ + │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── message_loc: (4,14)-(4,15) = "d" + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── arguments: ∅ + │ │ │ ├── closing_loc: ∅ + │ │ │ ├── block: ∅ + │ │ │ ├── flags: variable_call + │ │ │ └── name: :d + │ │ └── flags: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ @@ -108,49 +111,51 @@ ├── opening_loc: ∅ ├── arguments: │ @ ArgumentsNode (location: (6,5)-(6,15)) - │ └── arguments: (length: 1) - │ └── @ CallNode (location: (6,5)-(6,15)) - │ ├── receiver: - │ │ @ CallNode (location: (6,5)-(6,8)) - │ │ ├── receiver: - │ │ │ @ CallNode (location: (6,5)-(6,6)) - │ │ │ ├── receiver: ∅ - │ │ │ ├── call_operator_loc: ∅ - │ │ │ ├── message_loc: (6,5)-(6,6) = "d" - │ │ │ ├── opening_loc: ∅ - │ │ │ ├── arguments: ∅ - │ │ │ ├── closing_loc: ∅ - │ │ │ ├── block: ∅ - │ │ │ ├── flags: variable_call - │ │ │ └── name: :d - │ │ ├── call_operator_loc: (6,6)-(6,7) = "." - │ │ ├── message_loc: (6,7)-(6,8) = "c" - │ │ ├── opening_loc: ∅ - │ │ ├── arguments: ∅ - │ │ ├── closing_loc: ∅ - │ │ ├── block: ∅ - │ │ ├── flags: ∅ - │ │ └── name: :c - │ ├── call_operator_loc: (6,8)-(6,9) = "." - │ ├── message_loc: (6,9)-(6,12) = "===" - │ ├── opening_loc: (6,12)-(6,13) = "(" - │ ├── arguments: - │ │ @ ArgumentsNode (location: (6,13)-(6,14)) - │ │ └── arguments: (length: 1) - │ │ └── @ CallNode (location: (6,13)-(6,14)) - │ │ ├── receiver: ∅ - │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (6,13)-(6,14) = "c" - │ │ ├── opening_loc: ∅ - │ │ ├── arguments: ∅ - │ │ ├── closing_loc: ∅ - │ │ ├── block: ∅ - │ │ ├── flags: variable_call - │ │ └── name: :c - │ ├── closing_loc: (6,14)-(6,15) = ")" - │ ├── block: ∅ - │ ├── flags: ∅ - │ └── name: :=== + │ ├── arguments: (length: 1) + │ │ └── @ CallNode (location: (6,5)-(6,15)) + │ │ ├── receiver: + │ │ │ @ CallNode (location: (6,5)-(6,8)) + │ │ │ ├── receiver: + │ │ │ │ @ CallNode (location: (6,5)-(6,6)) + │ │ │ │ ├── receiver: ∅ + │ │ │ │ ├── call_operator_loc: ∅ + │ │ │ │ ├── message_loc: (6,5)-(6,6) = "d" + │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ ├── arguments: ∅ + │ │ │ │ ├── closing_loc: ∅ + │ │ │ │ ├── block: ∅ + │ │ │ │ ├── flags: variable_call + │ │ │ │ └── name: :d + │ │ │ ├── call_operator_loc: (6,6)-(6,7) = "." + │ │ │ ├── message_loc: (6,7)-(6,8) = "c" + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── arguments: ∅ + │ │ │ ├── closing_loc: ∅ + │ │ │ ├── block: ∅ + │ │ │ ├── flags: ∅ + │ │ │ └── name: :c + │ │ ├── call_operator_loc: (6,8)-(6,9) = "." + │ │ ├── message_loc: (6,9)-(6,12) = "===" + │ │ ├── opening_loc: (6,12)-(6,13) = "(" + │ │ ├── arguments: + │ │ │ @ ArgumentsNode (location: (6,13)-(6,14)) + │ │ │ ├── arguments: (length: 1) + │ │ │ │ └── @ CallNode (location: (6,13)-(6,14)) + │ │ │ │ ├── receiver: ∅ + │ │ │ │ ├── call_operator_loc: ∅ + │ │ │ │ ├── message_loc: (6,13)-(6,14) = "c" + │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ ├── arguments: ∅ + │ │ │ │ ├── closing_loc: ∅ + │ │ │ │ ├── block: ∅ + │ │ │ │ ├── flags: variable_call + │ │ │ │ └── name: :c + │ │ │ └── flags: ∅ + │ │ ├── closing_loc: (6,14)-(6,15) = ")" + │ │ ├── block: ∅ + │ │ ├── flags: ∅ + │ │ └── name: :=== + │ └── flags: ∅ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ |