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/seattlerb/bug_call_arglist_parens.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/seattlerb/bug_call_arglist_parens.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt | 69 |
1 files changed, 36 insertions, 33 deletions
diff --git a/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt b/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt index 2c59938f59..b0a3db1580 100644 --- a/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt +++ b/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt @@ -18,17 +18,18 @@ │ │ ├── opening_loc: ∅ │ │ ├── arguments: │ │ │ @ ArgumentsNode (location: (2,10)-(2,17)) - │ │ │ └── arguments: (length: 2) - │ │ │ ├── @ ParenthesesNode (location: (2,10)-(2,14)) - │ │ │ │ ├── body: - │ │ │ │ │ @ StatementsNode (location: (2,12)-(2,13)) - │ │ │ │ │ └── body: (length: 1) - │ │ │ │ │ └── @ IntegerNode (location: (2,12)-(2,13)) - │ │ │ │ │ └── flags: decimal - │ │ │ │ ├── opening_loc: (2,10)-(2,11) = "(" - │ │ │ │ └── closing_loc: (2,13)-(2,14) = ")" - │ │ │ └── @ IntegerNode (location: (2,16)-(2,17)) - │ │ │ └── flags: decimal + │ │ │ ├── arguments: (length: 2) + │ │ │ │ ├── @ ParenthesesNode (location: (2,10)-(2,14)) + │ │ │ │ │ ├── body: + │ │ │ │ │ │ @ StatementsNode (location: (2,12)-(2,13)) + │ │ │ │ │ │ └── body: (length: 1) + │ │ │ │ │ │ └── @ IntegerNode (location: (2,12)-(2,13)) + │ │ │ │ │ │ └── flags: decimal + │ │ │ │ │ ├── opening_loc: (2,10)-(2,11) = "(" + │ │ │ │ │ └── closing_loc: (2,13)-(2,14) = ")" + │ │ │ │ └── @ IntegerNode (location: (2,16)-(2,17)) + │ │ │ │ └── flags: decimal + │ │ │ └── flags: ∅ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ @@ -55,17 +56,18 @@ │ │ ├── opening_loc: ∅ │ │ ├── arguments: │ │ │ @ ArgumentsNode (location: (7,10)-(7,16)) - │ │ │ └── arguments: (length: 2) - │ │ │ ├── @ ParenthesesNode (location: (7,10)-(7,13)) - │ │ │ │ ├── body: - │ │ │ │ │ @ StatementsNode (location: (7,11)-(7,12)) - │ │ │ │ │ └── body: (length: 1) - │ │ │ │ │ └── @ IntegerNode (location: (7,11)-(7,12)) - │ │ │ │ │ └── flags: decimal - │ │ │ │ ├── opening_loc: (7,10)-(7,11) = "(" - │ │ │ │ └── closing_loc: (7,12)-(7,13) = ")" - │ │ │ └── @ IntegerNode (location: (7,15)-(7,16)) - │ │ │ └── flags: decimal + │ │ │ ├── arguments: (length: 2) + │ │ │ │ ├── @ ParenthesesNode (location: (7,10)-(7,13)) + │ │ │ │ │ ├── body: + │ │ │ │ │ │ @ StatementsNode (location: (7,11)-(7,12)) + │ │ │ │ │ │ └── body: (length: 1) + │ │ │ │ │ │ └── @ IntegerNode (location: (7,11)-(7,12)) + │ │ │ │ │ │ └── flags: decimal + │ │ │ │ │ ├── opening_loc: (7,10)-(7,11) = "(" + │ │ │ │ │ └── closing_loc: (7,12)-(7,13) = ")" + │ │ │ │ └── @ IntegerNode (location: (7,15)-(7,16)) + │ │ │ │ └── flags: decimal + │ │ │ └── flags: ∅ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ @@ -84,17 +86,18 @@ ├── opening_loc: ∅ ├── arguments: │ @ ArgumentsNode (location: (11,2)-(11,9)) - │ └── arguments: (length: 2) - │ ├── @ ParenthesesNode (location: (11,2)-(11,6)) - │ │ ├── body: - │ │ │ @ StatementsNode (location: (11,4)-(11,5)) - │ │ │ └── body: (length: 1) - │ │ │ └── @ IntegerNode (location: (11,4)-(11,5)) - │ │ │ └── flags: decimal - │ │ ├── opening_loc: (11,2)-(11,3) = "(" - │ │ └── closing_loc: (11,5)-(11,6) = ")" - │ └── @ IntegerNode (location: (11,8)-(11,9)) - │ └── flags: decimal + │ ├── arguments: (length: 2) + │ │ ├── @ ParenthesesNode (location: (11,2)-(11,6)) + │ │ │ ├── body: + │ │ │ │ @ StatementsNode (location: (11,4)-(11,5)) + │ │ │ │ └── body: (length: 1) + │ │ │ │ └── @ IntegerNode (location: (11,4)-(11,5)) + │ │ │ │ └── flags: decimal + │ │ │ ├── opening_loc: (11,2)-(11,3) = "(" + │ │ │ └── closing_loc: (11,5)-(11,6) = ")" + │ │ └── @ IntegerNode (location: (11,8)-(11,9)) + │ │ └── flags: decimal + │ └── flags: ∅ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ |