diff options
Diffstat (limited to 'test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt b/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt new file mode 100644 index 0000000000..18e019d4f4 --- /dev/null +++ b/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt @@ -0,0 +1,40 @@ +@ ProgramNode (location: (1,0)-(1,43)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(1,43)) + └── body: (length: 1) + └── @ DefNode (location: (1,0)-(1,43)) + ├── name: :some_method + ├── name_loc: (1,4)-(1,15) = "some_method" + ├── receiver: ∅ + ├── parameters: ∅ + ├── body: + │ @ StatementsNode (location: (1,18)-(1,43)) + │ └── body: (length: 1) + │ └── @ CallNode (location: (1,18)-(1,43)) + │ ├── receiver: ∅ + │ ├── call_operator_loc: ∅ + │ ├── message_loc: (1,18)-(1,30) = "other_method" + │ ├── opening_loc: ∅ + │ ├── arguments: + │ │ @ ArgumentsNode (location: (1,31)-(1,43)) + │ │ └── arguments: (length: 1) + │ │ └── @ RescueModifierNode (location: (1,31)-(1,43)) + │ │ ├── expression: + │ │ │ @ IntegerNode (location: (1,31)-(1,33)) + │ │ │ └── flags: decimal + │ │ ├── keyword_loc: (1,34)-(1,40) = "rescue" + │ │ └── rescue_expression: + │ │ @ IntegerNode (location: (1,41)-(1,43)) + │ │ └── flags: decimal + │ ├── closing_loc: ∅ + │ ├── block: ∅ + │ ├── flags: ∅ + │ └── name: "other_method" + ├── locals: [] + ├── def_keyword_loc: (1,0)-(1,3) = "def" + ├── operator_loc: ∅ + ├── lparen_loc: ∅ + ├── rparen_loc: ∅ + ├── equal_loc: (1,16)-(1,17) = "=" + └── end_keyword_loc: ∅ |