diff options
Diffstat (limited to 'test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt b/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt new file mode 100644 index 0000000000..f586634c59 --- /dev/null +++ b/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt @@ -0,0 +1,78 @@ +@ ProgramNode (location: (1,0)-(7,1)) +├── locals: [:b, :c] +└── statements: + @ StatementsNode (location: (1,0)-(7,1)) + └── body: (length: 2) + ├── @ IfNode (location: (1,0)-(6,3)) + │ ├── if_keyword_loc: (1,0)-(1,2) = "if" + │ ├── predicate: + │ │ @ TrueNode (location: (1,3)-(1,7)) + │ ├── then_keyword_loc: (1,8)-(1,12) = "then" + │ ├── statements: + │ │ @ StatementsNode (location: (2,2)-(5,6)) + │ │ └── body: (length: 4) + │ │ ├── @ CallNode (location: (2,2)-(2,8)) + │ │ │ ├── flags: ignore_visibility + │ │ │ ├── receiver: ∅ + │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── name: :p + │ │ │ ├── message_loc: (2,2)-(2,3) = "p" + │ │ │ ├── opening_loc: (2,3)-(2,4) = "(" + │ │ │ ├── arguments: + │ │ │ │ @ ArgumentsNode (location: (2,4)-(2,7)) + │ │ │ │ ├── flags: ∅ + │ │ │ │ └── arguments: (length: 1) + │ │ │ │ └── @ StringNode (location: (2,4)-(2,7)) + │ │ │ │ ├── flags: ∅ + │ │ │ │ ├── opening_loc: (2,4)-(2,5) = "\"" + │ │ │ │ ├── content_loc: (2,5)-(2,6) = "a" + │ │ │ │ ├── closing_loc: (2,6)-(2,7) = "\"" + │ │ │ │ └── unescaped: "a" + │ │ │ ├── closing_loc: (2,7)-(2,8) = ")" + │ │ │ └── block: ∅ + │ │ ├── @ LocalVariableWriteNode (location: (3,2)-(3,7)) + │ │ │ ├── name: :b + │ │ │ ├── depth: 0 + │ │ │ ├── name_loc: (3,2)-(3,3) = "b" + │ │ │ ├── value: + │ │ │ │ @ IntegerNode (location: (3,6)-(3,7)) + │ │ │ │ ├── flags: decimal + │ │ │ │ └── value: 1 + │ │ │ └── operator_loc: (3,4)-(3,5) = "=" + │ │ ├── @ CallNode (location: (4,2)-(4,5)) + │ │ │ ├── flags: ignore_visibility + │ │ │ ├── receiver: ∅ + │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── name: :p + │ │ │ ├── message_loc: (4,2)-(4,3) = "p" + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── arguments: + │ │ │ │ @ ArgumentsNode (location: (4,4)-(4,5)) + │ │ │ │ ├── flags: ∅ + │ │ │ │ └── arguments: (length: 1) + │ │ │ │ └── @ LocalVariableReadNode (location: (4,4)-(4,5)) + │ │ │ │ ├── name: :b + │ │ │ │ └── depth: 0 + │ │ │ ├── closing_loc: ∅ + │ │ │ └── block: ∅ + │ │ └── @ LocalVariableWriteNode (location: (5,2)-(5,6)) + │ │ ├── name: :c + │ │ ├── depth: 0 + │ │ ├── name_loc: (5,2)-(5,3) = "c" + │ │ ├── value: + │ │ │ @ IntegerNode (location: (5,5)-(5,6)) + │ │ │ ├── flags: decimal + │ │ │ └── value: 1 + │ │ └── operator_loc: (5,4)-(5,5) = "=" + │ ├── consequent: ∅ + │ └── end_keyword_loc: (6,0)-(6,3) = "end" + └── @ CallNode (location: (7,0)-(7,1)) + ├── flags: variable_call, ignore_visibility + ├── receiver: ∅ + ├── call_operator_loc: ∅ + ├── name: :a + ├── message_loc: (7,0)-(7,1) = "a" + ├── opening_loc: ∅ + ├── arguments: ∅ + ├── closing_loc: ∅ + └── block: ∅ |