diff options
Diffstat (limited to 'test/prism/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt b/test/prism/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt new file mode 100644 index 0000000000..6603e5c894 --- /dev/null +++ b/test/prism/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt @@ -0,0 +1,47 @@ +@ ProgramNode (location: (1,0)-(9,3)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(9,3)) + └── body: (length: 1) + └── @ BeginNode (location: (1,0)-(9,3)) + ├── begin_keyword_loc: (1,0)-(1,5) = "begin" + ├── statements: + │ @ StatementsNode (location: (2,2)-(2,3)) + │ └── body: (length: 1) + │ └── @ IntegerNode (location: (2,2)-(2,3)) + │ ├── flags: decimal + │ └── value: 1 + ├── rescue_clause: + │ @ RescueNode (location: (3,0)-(4,3)) + │ ├── keyword_loc: (3,0)-(3,6) = "rescue" + │ ├── exceptions: (length: 0) + │ ├── operator_loc: ∅ + │ ├── reference: ∅ + │ ├── statements: + │ │ @ StatementsNode (location: (4,2)-(4,3)) + │ │ └── body: (length: 1) + │ │ └── @ IntegerNode (location: (4,2)-(4,3)) + │ │ ├── flags: decimal + │ │ └── value: 2 + │ └── consequent: ∅ + ├── else_clause: + │ @ ElseNode (location: (5,0)-(7,6)) + │ ├── else_keyword_loc: (5,0)-(5,4) = "else" + │ ├── statements: + │ │ @ StatementsNode (location: (6,2)-(6,3)) + │ │ └── body: (length: 1) + │ │ └── @ IntegerNode (location: (6,2)-(6,3)) + │ │ ├── flags: decimal + │ │ └── value: 3 + │ └── end_keyword_loc: (7,0)-(7,6) = "ensure" + ├── ensure_clause: + │ @ EnsureNode (location: (7,0)-(9,3)) + │ ├── ensure_keyword_loc: (7,0)-(7,6) = "ensure" + │ ├── statements: + │ │ @ StatementsNode (location: (8,2)-(8,3)) + │ │ └── body: (length: 1) + │ │ └── @ IntegerNode (location: (8,2)-(8,3)) + │ │ ├── flags: decimal + │ │ └── value: 4 + │ └── end_keyword_loc: (9,0)-(9,3) = "end" + └── end_keyword_loc: (9,0)-(9,3) = "end" |