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/slashy_newlines_within_string.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/slashy_newlines_within_string.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/slashy_newlines_within_string.txt | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/test/prism/snapshots/seattlerb/slashy_newlines_within_string.txt b/test/prism/snapshots/seattlerb/slashy_newlines_within_string.txt index 454fc7d502..63c287c146 100644 --- a/test/prism/snapshots/seattlerb/slashy_newlines_within_string.txt +++ b/test/prism/snapshots/seattlerb/slashy_newlines_within_string.txt @@ -10,13 +10,14 @@ │ ├── opening_loc: ∅ │ ├── arguments: │ │ @ ArgumentsNode (location: (1,5)-(4,8)) - │ │ └── arguments: (length: 1) - │ │ └── @ StringNode (location: (1,5)-(4,8)) - │ │ ├── flags: ∅ - │ │ ├── opening_loc: (1,5)-(1,6) = "\"" - │ │ ├── content_loc: (1,6)-(4,7) = "hello\\\n my\\\n dear\\\n friend" - │ │ ├── closing_loc: (4,7)-(4,8) = "\"" - │ │ └── unescaped: "hello my dear friend" + │ │ ├── arguments: (length: 1) + │ │ │ └── @ StringNode (location: (1,5)-(4,8)) + │ │ │ ├── flags: ∅ + │ │ │ ├── opening_loc: (1,5)-(1,6) = "\"" + │ │ │ ├── content_loc: (1,6)-(4,7) = "hello\\\n my\\\n dear\\\n friend" + │ │ │ ├── closing_loc: (4,7)-(4,8) = "\"" + │ │ │ └── unescaped: "hello my dear friend" + │ │ └── flags: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ @@ -38,17 +39,18 @@ ├── opening_loc: ∅ ├── arguments: │ @ ArgumentsNode (location: (6,4)-(6,5)) - │ └── arguments: (length: 1) - │ └── @ CallNode (location: (6,4)-(6,5)) - │ ├── receiver: ∅ - │ ├── call_operator_loc: ∅ - │ ├── message_loc: (6,4)-(6,5) = "b" - │ ├── opening_loc: ∅ - │ ├── arguments: ∅ - │ ├── closing_loc: ∅ - │ ├── block: ∅ - │ ├── flags: variable_call - │ └── name: :b + │ ├── arguments: (length: 1) + │ │ └── @ CallNode (location: (6,4)-(6,5)) + │ │ ├── receiver: ∅ + │ │ ├── call_operator_loc: ∅ + │ │ ├── message_loc: (6,4)-(6,5) = "b" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: ∅ + │ │ ├── closing_loc: ∅ + │ │ ├── block: ∅ + │ │ ├── flags: variable_call + │ │ └── name: :b + │ └── flags: ∅ ├── closing_loc: ∅ ├── block: ∅ ├── flags: ∅ |