summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/multi_write.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/snapshots/multi_write.txt')
-rw-r--r--test/prism/snapshots/multi_write.txt93
1 files changed, 93 insertions, 0 deletions
diff --git a/test/prism/snapshots/multi_write.txt b/test/prism/snapshots/multi_write.txt
new file mode 100644
index 0000000000..d313801fdb
--- /dev/null
+++ b/test/prism/snapshots/multi_write.txt
@@ -0,0 +1,93 @@
+@ ProgramNode (location: (1,0)-(4,26))
+├── locals: [:foo, :bar]
+└── statements:
+ @ StatementsNode (location: (1,0)-(4,26))
+ └── body: (length: 4)
+ ├── @ LocalVariableWriteNode (location: (1,0)-(1,18))
+ │ ├── name: :foo
+ │ ├── depth: 0
+ │ ├── name_loc: (1,0)-(1,3) = "foo"
+ │ ├── value:
+ │ │ @ RescueModifierNode (location: (1,6)-(1,18))
+ │ │ ├── expression:
+ │ │ │ @ IntegerNode (location: (1,6)-(1,7))
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
+ │ │ ├── keyword_loc: (1,8)-(1,14) = "rescue"
+ │ │ └── rescue_expression:
+ │ │ @ NilNode (location: (1,15)-(1,18))
+ │ └── operator_loc: (1,4)-(1,5) = "="
+ ├── @ MultiWriteNode (location: (2,0)-(2,23))
+ │ ├── lefts: (length: 2)
+ │ │ ├── @ LocalVariableTargetNode (location: (2,0)-(2,3))
+ │ │ │ ├── name: :foo
+ │ │ │ └── depth: 0
+ │ │ └── @ LocalVariableTargetNode (location: (2,5)-(2,8))
+ │ │ ├── name: :bar
+ │ │ └── depth: 0
+ │ ├── rest: ∅
+ │ ├── rights: (length: 0)
+ │ ├── lparen_loc: ∅
+ │ ├── rparen_loc: ∅
+ │ ├── operator_loc: (2,9)-(2,10) = "="
+ │ └── value:
+ │ @ RescueModifierNode (location: (2,11)-(2,23))
+ │ ├── expression:
+ │ │ @ IntegerNode (location: (2,11)-(2,12))
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
+ │ ├── keyword_loc: (2,13)-(2,19) = "rescue"
+ │ └── rescue_expression:
+ │ @ NilNode (location: (2,20)-(2,23))
+ ├── @ RescueModifierNode (location: (3,0)-(3,21))
+ │ ├── expression:
+ │ │ @ LocalVariableWriteNode (location: (3,0)-(3,10))
+ │ │ ├── name: :foo
+ │ │ ├── depth: 0
+ │ │ ├── name_loc: (3,0)-(3,3) = "foo"
+ │ │ ├── value:
+ │ │ │ @ ArrayNode (location: (3,6)-(3,10))
+ │ │ │ ├── flags: ∅
+ │ │ │ ├── elements: (length: 2)
+ │ │ │ │ ├── @ IntegerNode (location: (3,6)-(3,7))
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
+ │ │ │ │ └── @ IntegerNode (location: (3,9)-(3,10))
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
+ │ │ │ ├── opening_loc: ∅
+ │ │ │ └── closing_loc: ∅
+ │ │ └── operator_loc: (3,4)-(3,5) = "="
+ │ ├── keyword_loc: (3,11)-(3,17) = "rescue"
+ │ └── rescue_expression:
+ │ @ NilNode (location: (3,18)-(3,21))
+ └── @ MultiWriteNode (location: (4,0)-(4,26))
+ ├── lefts: (length: 2)
+ │ ├── @ LocalVariableTargetNode (location: (4,0)-(4,3))
+ │ │ ├── name: :foo
+ │ │ └── depth: 0
+ │ └── @ LocalVariableTargetNode (location: (4,5)-(4,8))
+ │ ├── name: :bar
+ │ └── depth: 0
+ ├── rest: ∅
+ ├── rights: (length: 0)
+ ├── lparen_loc: ∅
+ ├── rparen_loc: ∅
+ ├── operator_loc: (4,9)-(4,10) = "="
+ └── value:
+ @ RescueModifierNode (location: (4,11)-(4,26))
+ ├── expression:
+ │ @ ArrayNode (location: (4,11)-(4,15))
+ │ ├── flags: ∅
+ │ ├── elements: (length: 2)
+ │ │ ├── @ IntegerNode (location: (4,11)-(4,12))
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
+ │ │ └── @ IntegerNode (location: (4,14)-(4,15))
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
+ │ ├── opening_loc: ∅
+ │ └── closing_loc: ∅
+ ├── keyword_loc: (4,16)-(4,22) = "rescue"
+ └── rescue_expression:
+ @ NilNode (location: (4,23)-(4,26))