diff options
Diffstat (limited to 'test/yarp/snapshots/whitequark/endless_method.txt')
-rw-r--r-- | test/yarp/snapshots/whitequark/endless_method.txt | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/test/yarp/snapshots/whitequark/endless_method.txt b/test/yarp/snapshots/whitequark/endless_method.txt index 904989742b..4d1d01bde0 100644 --- a/test/yarp/snapshots/whitequark/endless_method.txt +++ b/test/yarp/snapshots/whitequark/endless_method.txt @@ -1,33 +1,33 @@ -@ ProgramNode (location: (0...78)) +@ ProgramNode (location: (1,0)-(7,22)) ├── locals: [] └── statements: - @ StatementsNode (location: (0...78)) + @ StatementsNode (location: (1,0)-(7,22)) └── body: (length: 4) - ├── @ DefNode (location: (0...14)) + ├── @ DefNode (location: (1,0)-(1,14)) │ ├── name: :foo - │ ├── name_loc: (4...7) = "foo" + │ ├── name_loc: (1,4)-(1,7) = "foo" │ ├── receiver: ∅ │ ├── parameters: ∅ │ ├── body: - │ │ @ StatementsNode (location: (12...14)) + │ │ @ StatementsNode (location: (1,12)-(1,14)) │ │ └── body: (length: 1) - │ │ └── @ IntegerNode (location: (12...14)) + │ │ └── @ IntegerNode (location: (1,12)-(1,14)) │ │ └── flags: decimal │ ├── locals: [] - │ ├── def_keyword_loc: (0...3) = "def" + │ ├── def_keyword_loc: (1,0)-(1,3) = "def" │ ├── operator_loc: ∅ - │ ├── lparen_loc: (7...8) = "(" - │ ├── rparen_loc: (8...9) = ")" - │ ├── equal_loc: (10...11) = "=" + │ ├── lparen_loc: (1,7)-(1,8) = "(" + │ ├── rparen_loc: (1,8)-(1,9) = ")" + │ ├── equal_loc: (1,10)-(1,11) = "=" │ └── end_keyword_loc: ∅ - ├── @ DefNode (location: (16...34)) + ├── @ DefNode (location: (3,0)-(3,18)) │ ├── name: :inc - │ ├── name_loc: (20...23) = "inc" + │ ├── name_loc: (3,4)-(3,7) = "inc" │ ├── receiver: ∅ │ ├── parameters: - │ │ @ ParametersNode (location: (24...25)) + │ │ @ ParametersNode (location: (3,8)-(3,9)) │ │ ├── requireds: (length: 1) - │ │ │ └── @ RequiredParameterNode (location: (24...25)) + │ │ │ └── @ RequiredParameterNode (location: (3,8)-(3,9)) │ │ │ └── name: :x │ │ ├── optionals: (length: 0) │ │ ├── rest: ∅ @@ -36,40 +36,40 @@ │ │ ├── keyword_rest: ∅ │ │ └── block: ∅ │ ├── body: - │ │ @ StatementsNode (location: (29...34)) + │ │ @ StatementsNode (location: (3,13)-(3,18)) │ │ └── body: (length: 1) - │ │ └── @ CallNode (location: (29...34)) + │ │ └── @ CallNode (location: (3,13)-(3,18)) │ │ ├── receiver: - │ │ │ @ LocalVariableReadNode (location: (29...30)) + │ │ │ @ LocalVariableReadNode (location: (3,13)-(3,14)) │ │ │ ├── name: :x │ │ │ └── depth: 0 │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (31...32) = "+" + │ │ ├── message_loc: (3,15)-(3,16) = "+" │ │ ├── opening_loc: ∅ │ │ ├── arguments: - │ │ │ @ ArgumentsNode (location: (33...34)) + │ │ │ @ ArgumentsNode (location: (3,17)-(3,18)) │ │ │ └── arguments: (length: 1) - │ │ │ └── @ IntegerNode (location: (33...34)) + │ │ │ └── @ IntegerNode (location: (3,17)-(3,18)) │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ │ │ └── name: "+" │ ├── locals: [:x] - │ ├── def_keyword_loc: (16...19) = "def" + │ ├── def_keyword_loc: (3,0)-(3,3) = "def" │ ├── operator_loc: ∅ - │ ├── lparen_loc: (23...24) = "(" - │ ├── rparen_loc: (25...26) = ")" - │ ├── equal_loc: (27...28) = "=" + │ ├── lparen_loc: (3,7)-(3,8) = "(" + │ ├── rparen_loc: (3,9)-(3,10) = ")" + │ ├── equal_loc: (3,11)-(3,12) = "=" │ └── end_keyword_loc: ∅ - ├── @ DefNode (location: (36...54)) + ├── @ DefNode (location: (5,0)-(5,18)) │ ├── name: :foo - │ ├── name_loc: (44...47) = "foo" + │ ├── name_loc: (5,8)-(5,11) = "foo" │ ├── receiver: - │ │ @ CallNode (location: (40...43)) + │ │ @ CallNode (location: (5,4)-(5,7)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (40...43) = "obj" + │ │ ├── message_loc: (5,4)-(5,7) = "obj" │ │ ├── opening_loc: ∅ │ │ ├── arguments: ∅ │ │ ├── closing_loc: ∅ @@ -78,25 +78,25 @@ │ │ └── name: "obj" │ ├── parameters: ∅ │ ├── body: - │ │ @ StatementsNode (location: (52...54)) + │ │ @ StatementsNode (location: (5,16)-(5,18)) │ │ └── body: (length: 1) - │ │ └── @ IntegerNode (location: (52...54)) + │ │ └── @ IntegerNode (location: (5,16)-(5,18)) │ │ └── flags: decimal │ ├── locals: [] - │ ├── def_keyword_loc: (36...39) = "def" - │ ├── operator_loc: (43...44) = "." - │ ├── lparen_loc: (47...48) = "(" - │ ├── rparen_loc: (48...49) = ")" - │ ├── equal_loc: (50...51) = "=" + │ ├── def_keyword_loc: (5,0)-(5,3) = "def" + │ ├── operator_loc: (5,7)-(5,8) = "." + │ ├── lparen_loc: (5,11)-(5,12) = "(" + │ ├── rparen_loc: (5,12)-(5,13) = ")" + │ ├── equal_loc: (5,14)-(5,15) = "=" │ └── end_keyword_loc: ∅ - └── @ DefNode (location: (56...78)) + └── @ DefNode (location: (7,0)-(7,22)) ├── name: :inc - ├── name_loc: (64...67) = "inc" + ├── name_loc: (7,8)-(7,11) = "inc" ├── receiver: - │ @ CallNode (location: (60...63)) + │ @ CallNode (location: (7,4)-(7,7)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ - │ ├── message_loc: (60...63) = "obj" + │ ├── message_loc: (7,4)-(7,7) = "obj" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ @@ -104,9 +104,9 @@ │ ├── flags: variable_call │ └── name: "obj" ├── parameters: - │ @ ParametersNode (location: (68...69)) + │ @ ParametersNode (location: (7,12)-(7,13)) │ ├── requireds: (length: 1) - │ │ └── @ RequiredParameterNode (location: (68...69)) + │ │ └── @ RequiredParameterNode (location: (7,12)-(7,13)) │ │ └── name: :x │ ├── optionals: (length: 0) │ ├── rest: ∅ @@ -115,29 +115,29 @@ │ ├── keyword_rest: ∅ │ └── block: ∅ ├── body: - │ @ StatementsNode (location: (73...78)) + │ @ StatementsNode (location: (7,17)-(7,22)) │ └── body: (length: 1) - │ └── @ CallNode (location: (73...78)) + │ └── @ CallNode (location: (7,17)-(7,22)) │ ├── receiver: - │ │ @ LocalVariableReadNode (location: (73...74)) + │ │ @ LocalVariableReadNode (location: (7,17)-(7,18)) │ │ ├── name: :x │ │ └── depth: 0 │ ├── call_operator_loc: ∅ - │ ├── message_loc: (75...76) = "+" + │ ├── message_loc: (7,19)-(7,20) = "+" │ ├── opening_loc: ∅ │ ├── arguments: - │ │ @ ArgumentsNode (location: (77...78)) + │ │ @ ArgumentsNode (location: (7,21)-(7,22)) │ │ └── arguments: (length: 1) - │ │ └── @ IntegerNode (location: (77...78)) + │ │ └── @ IntegerNode (location: (7,21)-(7,22)) │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: "+" ├── locals: [:x] - ├── def_keyword_loc: (56...59) = "def" - ├── operator_loc: (63...64) = "." - ├── lparen_loc: (67...68) = "(" - ├── rparen_loc: (69...70) = ")" - ├── equal_loc: (71...72) = "=" + ├── def_keyword_loc: (7,0)-(7,3) = "def" + ├── operator_loc: (7,7)-(7,8) = "." + ├── lparen_loc: (7,11)-(7,12) = "(" + ├── rparen_loc: (7,13)-(7,14) = ")" + ├── equal_loc: (7,15)-(7,16) = "=" └── end_keyword_loc: ∅ |