summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/multiline_hash_declaration.txt
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-10-26 15:02:27 -0300
committergit <svn-admin@ruby-lang.org>2023-10-26 18:47:50 +0000
commit7e4ee92de225473d3ad3ac8d0a27bd02a2905738 (patch)
tree32dcd2d4305bcba802b82e319799339ef942a38b /test/prism/snapshots/seattlerb/multiline_hash_declaration.txt
parenta082e560bb3b875dfcce5ff4743a04e76e008d46 (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/multiline_hash_declaration.txt')
-rw-r--r--test/prism/snapshots/seattlerb/multiline_hash_declaration.txt99
1 files changed, 51 insertions, 48 deletions
diff --git a/test/prism/snapshots/seattlerb/multiline_hash_declaration.txt b/test/prism/snapshots/seattlerb/multiline_hash_declaration.txt
index 847607ad24..4406932415 100644
--- a/test/prism/snapshots/seattlerb/multiline_hash_declaration.txt
+++ b/test/prism/snapshots/seattlerb/multiline_hash_declaration.txt
@@ -10,22 +10,23 @@
│ ├── opening_loc: (1,1)-(1,2) = "("
│ ├── arguments:
│ │ @ ArgumentsNode (location: (1,2)-(3,1))
- │ │ └── arguments: (length: 1)
- │ │ └── @ KeywordHashNode (location: (1,2)-(3,1))
- │ │ └── elements: (length: 1)
- │ │ └── @ AssocNode (location: (1,2)-(3,1))
- │ │ ├── key:
- │ │ │ @ SymbolNode (location: (1,2)-(1,8))
- │ │ │ ├── opening_loc: ∅
- │ │ │ ├── value_loc: (1,2)-(1,7) = "state"
- │ │ │ ├── closing_loc: (1,7)-(1,8) = ":"
- │ │ │ └── unescaped: "state"
- │ │ ├── value:
- │ │ │ @ HashNode (location: (2,1)-(3,1))
- │ │ │ ├── opening_loc: (2,1)-(2,2) = "{"
- │ │ │ ├── elements: (length: 0)
- │ │ │ └── closing_loc: (3,0)-(3,1) = "}"
- │ │ └── operator_loc: ∅
+ │ │ ├── arguments: (length: 1)
+ │ │ │ └── @ KeywordHashNode (location: (1,2)-(3,1))
+ │ │ │ └── elements: (length: 1)
+ │ │ │ └── @ AssocNode (location: (1,2)-(3,1))
+ │ │ │ ├── key:
+ │ │ │ │ @ SymbolNode (location: (1,2)-(1,8))
+ │ │ │ │ ├── opening_loc: ∅
+ │ │ │ │ ├── value_loc: (1,2)-(1,7) = "state"
+ │ │ │ │ ├── closing_loc: (1,7)-(1,8) = ":"
+ │ │ │ │ └── unescaped: "state"
+ │ │ │ ├── value:
+ │ │ │ │ @ HashNode (location: (2,1)-(3,1))
+ │ │ │ │ ├── opening_loc: (2,1)-(2,2) = "{"
+ │ │ │ │ ├── elements: (length: 0)
+ │ │ │ │ └── closing_loc: (3,0)-(3,1) = "}"
+ │ │ │ └── operator_loc: ∅
+ │ │ └── flags: ∅
│ ├── closing_loc: (3,1)-(3,2) = ")"
│ ├── block: ∅
│ ├── flags: ∅
@@ -37,22 +38,23 @@
│ ├── opening_loc: (5,1)-(5,2) = "("
│ ├── arguments:
│ │ @ ArgumentsNode (location: (5,2)-(6,1))
- │ │ └── arguments: (length: 1)
- │ │ └── @ KeywordHashNode (location: (5,2)-(6,1))
- │ │ └── elements: (length: 1)
- │ │ └── @ AssocNode (location: (5,2)-(6,1))
- │ │ ├── key:
- │ │ │ @ SymbolNode (location: (5,2)-(5,8))
- │ │ │ ├── opening_loc: ∅
- │ │ │ ├── value_loc: (5,2)-(5,7) = "state"
- │ │ │ ├── closing_loc: (5,7)-(5,8) = ":"
- │ │ │ └── unescaped: "state"
- │ │ ├── value:
- │ │ │ @ HashNode (location: (5,9)-(6,1))
- │ │ │ ├── opening_loc: (5,9)-(5,10) = "{"
- │ │ │ ├── elements: (length: 0)
- │ │ │ └── closing_loc: (6,0)-(6,1) = "}"
- │ │ └── operator_loc: ∅
+ │ │ ├── arguments: (length: 1)
+ │ │ │ └── @ KeywordHashNode (location: (5,2)-(6,1))
+ │ │ │ └── elements: (length: 1)
+ │ │ │ └── @ AssocNode (location: (5,2)-(6,1))
+ │ │ │ ├── key:
+ │ │ │ │ @ SymbolNode (location: (5,2)-(5,8))
+ │ │ │ │ ├── opening_loc: ∅
+ │ │ │ │ ├── value_loc: (5,2)-(5,7) = "state"
+ │ │ │ │ ├── closing_loc: (5,7)-(5,8) = ":"
+ │ │ │ │ └── unescaped: "state"
+ │ │ │ ├── value:
+ │ │ │ │ @ HashNode (location: (5,9)-(6,1))
+ │ │ │ │ ├── opening_loc: (5,9)-(5,10) = "{"
+ │ │ │ │ ├── elements: (length: 0)
+ │ │ │ │ └── closing_loc: (6,0)-(6,1) = "}"
+ │ │ │ └── operator_loc: ∅
+ │ │ └── flags: ∅
│ ├── closing_loc: (6,1)-(6,2) = ")"
│ ├── block: ∅
│ ├── flags: ∅
@@ -64,22 +66,23 @@
├── opening_loc: (8,1)-(8,2) = "("
├── arguments:
│ @ ArgumentsNode (location: (8,2)-(8,11))
- │ └── arguments: (length: 1)
- │ └── @ KeywordHashNode (location: (8,2)-(8,11))
- │ └── elements: (length: 1)
- │ └── @ AssocNode (location: (8,2)-(8,11))
- │ ├── key:
- │ │ @ SymbolNode (location: (8,2)-(8,8))
- │ │ ├── opening_loc: ∅
- │ │ ├── value_loc: (8,2)-(8,7) = "state"
- │ │ ├── closing_loc: (8,7)-(8,8) = ":"
- │ │ └── unescaped: "state"
- │ ├── value:
- │ │ @ HashNode (location: (8,9)-(8,11))
- │ │ ├── opening_loc: (8,9)-(8,10) = "{"
- │ │ ├── elements: (length: 0)
- │ │ └── closing_loc: (8,10)-(8,11) = "}"
- │ └── operator_loc: ∅
+ │ ├── arguments: (length: 1)
+ │ │ └── @ KeywordHashNode (location: (8,2)-(8,11))
+ │ │ └── elements: (length: 1)
+ │ │ └── @ AssocNode (location: (8,2)-(8,11))
+ │ │ ├── key:
+ │ │ │ @ SymbolNode (location: (8,2)-(8,8))
+ │ │ │ ├── opening_loc: ∅
+ │ │ │ ├── value_loc: (8,2)-(8,7) = "state"
+ │ │ │ ├── closing_loc: (8,7)-(8,8) = ":"
+ │ │ │ └── unescaped: "state"
+ │ │ ├── value:
+ │ │ │ @ HashNode (location: (8,9)-(8,11))
+ │ │ │ ├── opening_loc: (8,9)-(8,10) = "{"
+ │ │ │ ├── elements: (length: 0)
+ │ │ │ └── closing_loc: (8,10)-(8,11) = "}"
+ │ │ └── operator_loc: ∅
+ │ └── flags: ∅
├── closing_loc: (8,11)-(8,12) = ")"
├── block: ∅
├── flags: ∅