diff options
Diffstat (limited to 'test/prism/snapshots/endless_methods.txt')
-rw-r--r-- | test/prism/snapshots/endless_methods.txt | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/test/prism/snapshots/endless_methods.txt b/test/prism/snapshots/endless_methods.txt new file mode 100644 index 0000000000..6e20c0deec --- /dev/null +++ b/test/prism/snapshots/endless_methods.txt @@ -0,0 +1,107 @@ +@ ProgramNode (location: (1,0)-(5,22)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(5,22)) + └── body: (length: 3) + ├── @ DefNode (location: (1,0)-(1,11)) + │ ├── name: :foo + │ ├── name_loc: (1,4)-(1,7) = "foo" + │ ├── receiver: ∅ + │ ├── parameters: ∅ + │ ├── body: + │ │ @ StatementsNode (location: (1,10)-(1,11)) + │ │ └── body: (length: 1) + │ │ └── @ IntegerNode (location: (1,10)-(1,11)) + │ │ ├── flags: decimal + │ │ └── value: 1 + │ ├── locals: [] + │ ├── def_keyword_loc: (1,0)-(1,3) = "def" + │ ├── operator_loc: ∅ + │ ├── lparen_loc: ∅ + │ ├── rparen_loc: ∅ + │ ├── equal_loc: (1,8)-(1,9) = "=" + │ └── end_keyword_loc: ∅ + ├── @ DefNode (location: (3,0)-(3,14)) + │ ├── name: :bar + │ ├── name_loc: (3,4)-(3,7) = "bar" + │ ├── receiver: ∅ + │ ├── parameters: ∅ + │ ├── body: + │ │ @ StatementsNode (location: (3,10)-(3,14)) + │ │ └── body: (length: 1) + │ │ └── @ CallNode (location: (3,10)-(3,14)) + │ │ ├── flags: ignore_visibility + │ │ ├── receiver: ∅ + │ │ ├── call_operator_loc: ∅ + │ │ ├── name: :A + │ │ ├── message_loc: (3,10)-(3,11) = "A" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: + │ │ │ @ ArgumentsNode (location: (3,12)-(3,14)) + │ │ │ ├── flags: ∅ + │ │ │ └── arguments: (length: 1) + │ │ │ └── @ StringNode (location: (3,12)-(3,14)) + │ │ │ ├── flags: ∅ + │ │ │ ├── opening_loc: (3,12)-(3,13) = "\"" + │ │ │ ├── content_loc: (3,13)-(3,13) = "" + │ │ │ ├── closing_loc: (3,13)-(3,14) = "\"" + │ │ │ └── unescaped: "" + │ │ ├── closing_loc: ∅ + │ │ └── block: ∅ + │ ├── locals: [] + │ ├── def_keyword_loc: (3,0)-(3,3) = "def" + │ ├── operator_loc: ∅ + │ ├── lparen_loc: ∅ + │ ├── rparen_loc: ∅ + │ ├── equal_loc: (3,8)-(3,9) = "=" + │ └── end_keyword_loc: ∅ + └── @ DefNode (location: (5,0)-(5,22)) + ├── name: :method + ├── name_loc: (5,4)-(5,10) = "method" + ├── receiver: ∅ + ├── parameters: ∅ + ├── body: + │ @ StatementsNode (location: (5,13)-(5,22)) + │ └── body: (length: 1) + │ └── @ CallNode (location: (5,13)-(5,22)) + │ ├── flags: ∅ + │ ├── receiver: + │ │ @ CallNode (location: (5,13)-(5,18)) + │ │ ├── flags: ∅ + │ │ ├── receiver: + │ │ │ @ IntegerNode (location: (5,13)-(5,14)) + │ │ │ ├── flags: decimal + │ │ │ └── value: 1 + │ │ ├── call_operator_loc: ∅ + │ │ ├── name: :+ + │ │ ├── message_loc: (5,15)-(5,16) = "+" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: + │ │ │ @ ArgumentsNode (location: (5,17)-(5,18)) + │ │ │ ├── flags: ∅ + │ │ │ └── arguments: (length: 1) + │ │ │ └── @ IntegerNode (location: (5,17)-(5,18)) + │ │ │ ├── flags: decimal + │ │ │ └── value: 2 + │ │ ├── closing_loc: ∅ + │ │ └── block: ∅ + │ ├── call_operator_loc: ∅ + │ ├── name: :+ + │ ├── message_loc: (5,19)-(5,20) = "+" + │ ├── opening_loc: ∅ + │ ├── arguments: + │ │ @ ArgumentsNode (location: (5,21)-(5,22)) + │ │ ├── flags: ∅ + │ │ └── arguments: (length: 1) + │ │ └── @ IntegerNode (location: (5,21)-(5,22)) + │ │ ├── flags: decimal + │ │ └── value: 3 + │ ├── closing_loc: ∅ + │ └── block: ∅ + ├── locals: [] + ├── def_keyword_loc: (5,0)-(5,3) = "def" + ├── operator_loc: ∅ + ├── lparen_loc: ∅ + ├── rparen_loc: ∅ + ├── equal_loc: (5,11)-(5,12) = "=" + └── end_keyword_loc: ∅ |