diff options
Diffstat (limited to 'test/prism/snapshots/unparser/corpus/literal/hookexe.txt')
-rw-r--r-- | test/prism/snapshots/unparser/corpus/literal/hookexe.txt | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/test/prism/snapshots/unparser/corpus/literal/hookexe.txt b/test/prism/snapshots/unparser/corpus/literal/hookexe.txt new file mode 100644 index 0000000000..dabedbc588 --- /dev/null +++ b/test/prism/snapshots/unparser/corpus/literal/hookexe.txt @@ -0,0 +1,49 @@ +@ ProgramNode (location: (1,0)-(7,1)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(7,1)) + └── body: (length: 3) + ├── @ PreExecutionNode (location: (1,0)-(3,1)) + │ ├── statements: + │ │ @ StatementsNode (location: (2,2)-(2,5)) + │ │ └── body: (length: 1) + │ │ └── @ CallNode (location: (2,2)-(2,5)) + │ │ ├── flags: variable_call, ignore_visibility + │ │ ├── receiver: ∅ + │ │ ├── call_operator_loc: ∅ + │ │ ├── name: :foo + │ │ ├── message_loc: (2,2)-(2,5) = "foo" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: ∅ + │ │ ├── closing_loc: ∅ + │ │ └── block: ∅ + │ ├── keyword_loc: (1,0)-(1,5) = "BEGIN" + │ ├── opening_loc: (1,6)-(1,7) = "{" + │ └── closing_loc: (3,0)-(3,1) = "}" + ├── @ CallNode (location: (4,0)-(4,3)) + │ ├── flags: variable_call, ignore_visibility + │ ├── receiver: ∅ + │ ├── call_operator_loc: ∅ + │ ├── name: :bar + │ ├── message_loc: (4,0)-(4,3) = "bar" + │ ├── opening_loc: ∅ + │ ├── arguments: ∅ + │ ├── closing_loc: ∅ + │ └── block: ∅ + └── @ PostExecutionNode (location: (5,0)-(7,1)) + ├── statements: + │ @ StatementsNode (location: (6,2)-(6,5)) + │ └── body: (length: 1) + │ └── @ CallNode (location: (6,2)-(6,5)) + │ ├── flags: variable_call, ignore_visibility + │ ├── receiver: ∅ + │ ├── call_operator_loc: ∅ + │ ├── name: :baz + │ ├── message_loc: (6,2)-(6,5) = "baz" + │ ├── opening_loc: ∅ + │ ├── arguments: ∅ + │ ├── closing_loc: ∅ + │ └── block: ∅ + ├── keyword_loc: (5,0)-(5,3) = "END" + ├── opening_loc: (5,4)-(5,5) = "{" + └── closing_loc: (7,0)-(7,1) = "}" |