diff options
Diffstat (limited to 'test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt b/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt new file mode 100644 index 0000000000..39544e98da --- /dev/null +++ b/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt @@ -0,0 +1,83 @@ +@ ProgramNode (location: (1,0)-(1,42)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(1,42)) + └── body: (length: 1) + └── @ CallNode (location: (1,0)-(1,42)) + ├── flags: attribute_write + ├── receiver: + │ @ ArrayNode (location: (1,0)-(1,12)) + │ ├── flags: ∅ + │ ├── elements: (length: 4) + │ │ ├── @ IntegerNode (location: (1,1)-(1,2)) + │ │ │ ├── flags: decimal + │ │ │ └── value: 1 + │ │ ├── @ IntegerNode (location: (1,4)-(1,5)) + │ │ │ ├── flags: decimal + │ │ │ └── value: 2 + │ │ ├── @ IntegerNode (location: (1,7)-(1,8)) + │ │ │ ├── flags: decimal + │ │ │ └── value: 3 + │ │ └── @ IntegerNode (location: (1,10)-(1,11)) + │ │ ├── flags: decimal + │ │ └── value: 4 + │ ├── opening_loc: (1,0)-(1,1) = "[" + │ └── closing_loc: (1,11)-(1,12) = "]" + ├── call_operator_loc: ∅ + ├── name: :[]= + ├── message_loc: (1,12)-(1,24) = "[from .. to]" + ├── opening_loc: (1,12)-(1,13) = "[" + ├── arguments: + │ @ ArgumentsNode (location: (1,13)-(1,42)) + │ ├── flags: ∅ + │ └── arguments: (length: 2) + │ ├── @ RangeNode (location: (1,13)-(1,23)) + │ │ ├── flags: ∅ + │ │ ├── left: + │ │ │ @ CallNode (location: (1,13)-(1,17)) + │ │ │ ├── flags: variable_call, ignore_visibility + │ │ │ ├── receiver: ∅ + │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── name: :from + │ │ │ ├── message_loc: (1,13)-(1,17) = "from" + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── arguments: ∅ + │ │ │ ├── closing_loc: ∅ + │ │ │ └── block: ∅ + │ │ ├── right: + │ │ │ @ CallNode (location: (1,21)-(1,23)) + │ │ │ ├── flags: variable_call, ignore_visibility + │ │ │ ├── receiver: ∅ + │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── name: :to + │ │ │ ├── message_loc: (1,21)-(1,23) = "to" + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── arguments: ∅ + │ │ │ ├── closing_loc: ∅ + │ │ │ └── block: ∅ + │ │ └── operator_loc: (1,18)-(1,20) = ".." + │ └── @ ArrayNode (location: (1,27)-(1,42)) + │ ├── flags: ∅ + │ ├── elements: (length: 3) + │ │ ├── @ StringNode (location: (1,28)-(1,31)) + │ │ │ ├── flags: ∅ + │ │ │ ├── opening_loc: (1,28)-(1,29) = "\"" + │ │ │ ├── content_loc: (1,29)-(1,30) = "a" + │ │ │ ├── closing_loc: (1,30)-(1,31) = "\"" + │ │ │ └── unescaped: "a" + │ │ ├── @ StringNode (location: (1,33)-(1,36)) + │ │ │ ├── flags: ∅ + │ │ │ ├── opening_loc: (1,33)-(1,34) = "\"" + │ │ │ ├── content_loc: (1,34)-(1,35) = "b" + │ │ │ ├── closing_loc: (1,35)-(1,36) = "\"" + │ │ │ └── unescaped: "b" + │ │ └── @ StringNode (location: (1,38)-(1,41)) + │ │ ├── flags: ∅ + │ │ ├── opening_loc: (1,38)-(1,39) = "\"" + │ │ ├── content_loc: (1,39)-(1,40) = "c" + │ │ ├── closing_loc: (1,40)-(1,41) = "\"" + │ │ └── unescaped: "c" + │ ├── opening_loc: (1,27)-(1,28) = "[" + │ └── closing_loc: (1,41)-(1,42) = "]" + ├── closing_loc: (1,23)-(1,24) = "]" + └── block: ∅ |