diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-09-27 12:22:36 -0400 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2023-09-27 13:57:38 -0400 |
commit | 8ab56869a64fdccc094f4a83c6367fb23b72d38b (patch) | |
tree | 46ef2bd5c51d5b7f923eda6a60edefc7a08200db /test/prism/snapshots/whitequark/newline_in_hash_argument.txt | |
parent | 7e0971eb5d679bb6219abb0ec238139aa6502c5a (diff) |
Rename YARP filepaths to prism filepaths
Diffstat (limited to 'test/prism/snapshots/whitequark/newline_in_hash_argument.txt')
-rw-r--r-- | test/prism/snapshots/whitequark/newline_in_hash_argument.txt | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/test/prism/snapshots/whitequark/newline_in_hash_argument.txt b/test/prism/snapshots/whitequark/newline_in_hash_argument.txt new file mode 100644 index 0000000000..6c91492ca8 --- /dev/null +++ b/test/prism/snapshots/whitequark/newline_in_hash_argument.txt @@ -0,0 +1,141 @@ +@ ProgramNode (location: (1,0)-(14,1)) +├── locals: [:a, :b] +└── statements: + @ StatementsNode (location: (1,0)-(14,1)) + └── body: (length: 3) + ├── @ CaseNode (location: (1,0)-(8,3)) + │ ├── predicate: + │ │ @ CallNode (location: (1,5)-(1,8)) + │ │ ├── receiver: ∅ + │ │ ├── call_operator_loc: ∅ + │ │ ├── message_loc: (1,5)-(1,8) = "foo" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: ∅ + │ │ ├── closing_loc: ∅ + │ │ ├── block: ∅ + │ │ ├── flags: variable_call + │ │ └── name: "foo" + │ ├── conditions: (length: 2) + │ │ ├── @ InNode (location: (2,0)-(4,4)) + │ │ │ ├── pattern: + │ │ │ │ @ HashPatternNode (location: (2,3)-(2,5)) + │ │ │ │ ├── constant: ∅ + │ │ │ │ ├── assocs: (length: 1) + │ │ │ │ │ └── @ AssocNode (location: (2,3)-(2,5)) + │ │ │ │ │ ├── key: + │ │ │ │ │ │ @ SymbolNode (location: (2,3)-(2,5)) + │ │ │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ │ │ ├── value_loc: (2,3)-(2,4) = "a" + │ │ │ │ │ │ ├── closing_loc: (2,4)-(2,5) = ":" + │ │ │ │ │ │ └── unescaped: "a" + │ │ │ │ │ ├── value: ∅ + │ │ │ │ │ └── operator_loc: ∅ + │ │ │ │ ├── kwrest: ∅ + │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ └── closing_loc: ∅ + │ │ │ ├── statements: + │ │ │ │ @ StatementsNode (location: (3,0)-(4,4)) + │ │ │ │ └── body: (length: 2) + │ │ │ │ ├── @ IntegerNode (location: (3,0)-(3,1)) + │ │ │ │ │ └── flags: decimal + │ │ │ │ └── @ TrueNode (location: (4,0)-(4,4)) + │ │ │ ├── in_loc: (2,0)-(2,2) = "in" + │ │ │ └── then_loc: ∅ + │ │ └── @ InNode (location: (5,0)-(7,4)) + │ │ ├── pattern: + │ │ │ @ HashPatternNode (location: (5,3)-(5,7)) + │ │ │ ├── constant: ∅ + │ │ │ ├── assocs: (length: 1) + │ │ │ │ └── @ AssocNode (location: (5,3)-(5,7)) + │ │ │ │ ├── key: + │ │ │ │ │ @ SymbolNode (location: (5,3)-(5,7)) + │ │ │ │ │ ├── opening_loc: (5,3)-(5,4) = "\"" + │ │ │ │ │ ├── value_loc: (5,4)-(5,5) = "b" + │ │ │ │ │ ├── closing_loc: (5,5)-(5,7) = "\":" + │ │ │ │ │ └── unescaped: "b" + │ │ │ │ ├── value: ∅ + │ │ │ │ └── operator_loc: ∅ + │ │ │ ├── kwrest: ∅ + │ │ │ ├── opening_loc: ∅ + │ │ │ └── closing_loc: ∅ + │ │ ├── statements: + │ │ │ @ StatementsNode (location: (6,0)-(7,4)) + │ │ │ └── body: (length: 2) + │ │ │ ├── @ IntegerNode (location: (6,0)-(6,1)) + │ │ │ │ └── flags: decimal + │ │ │ └── @ TrueNode (location: (7,0)-(7,4)) + │ │ ├── in_loc: (5,0)-(5,2) = "in" + │ │ └── then_loc: ∅ + │ ├── consequent: ∅ + │ ├── case_keyword_loc: (1,0)-(1,4) = "case" + │ └── end_keyword_loc: (8,0)-(8,3) = "end" + ├── @ CallNode (location: (10,0)-(11,1)) + │ ├── receiver: + │ │ @ CallNode (location: (10,0)-(10,3)) + │ │ ├── receiver: ∅ + │ │ ├── call_operator_loc: ∅ + │ │ ├── message_loc: (10,0)-(10,3) = "obj" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: ∅ + │ │ ├── closing_loc: ∅ + │ │ ├── block: ∅ + │ │ ├── flags: variable_call + │ │ └── name: "obj" + │ ├── call_operator_loc: (10,3)-(10,4) = "." + │ ├── message_loc: (10,4)-(10,7) = "set" + │ ├── opening_loc: ∅ + │ ├── arguments: + │ │ @ ArgumentsNode (location: (10,8)-(11,1)) + │ │ └── arguments: (length: 1) + │ │ └── @ KeywordHashNode (location: (10,8)-(11,1)) + │ │ └── elements: (length: 1) + │ │ └── @ AssocNode (location: (10,8)-(11,1)) + │ │ ├── key: + │ │ │ @ SymbolNode (location: (10,8)-(10,14)) + │ │ │ ├── opening_loc: (10,8)-(10,9) = "\"" + │ │ │ ├── value_loc: (10,9)-(10,12) = "foo" + │ │ │ ├── closing_loc: (10,12)-(10,14) = "\":" + │ │ │ └── unescaped: "foo" + │ │ ├── value: + │ │ │ @ IntegerNode (location: (11,0)-(11,1)) + │ │ │ └── flags: decimal + │ │ └── operator_loc: ∅ + │ ├── closing_loc: ∅ + │ ├── block: ∅ + │ ├── flags: ∅ + │ └── name: "set" + └── @ CallNode (location: (13,0)-(14,1)) + ├── receiver: + │ @ CallNode (location: (13,0)-(13,3)) + │ ├── receiver: ∅ + │ ├── call_operator_loc: ∅ + │ ├── message_loc: (13,0)-(13,3) = "obj" + │ ├── opening_loc: ∅ + │ ├── arguments: ∅ + │ ├── closing_loc: ∅ + │ ├── block: ∅ + │ ├── flags: variable_call + │ └── name: "obj" + ├── call_operator_loc: (13,3)-(13,4) = "." + ├── message_loc: (13,4)-(13,7) = "set" + ├── opening_loc: ∅ + ├── arguments: + │ @ ArgumentsNode (location: (13,8)-(14,1)) + │ └── arguments: (length: 1) + │ └── @ KeywordHashNode (location: (13,8)-(14,1)) + │ └── elements: (length: 1) + │ └── @ AssocNode (location: (13,8)-(14,1)) + │ ├── key: + │ │ @ SymbolNode (location: (13,8)-(13,12)) + │ │ ├── opening_loc: ∅ + │ │ ├── value_loc: (13,8)-(13,11) = "foo" + │ │ ├── closing_loc: (13,11)-(13,12) = ":" + │ │ └── unescaped: "foo" + │ ├── value: + │ │ @ IntegerNode (location: (14,0)-(14,1)) + │ │ └── flags: decimal + │ └── operator_loc: ∅ + ├── closing_loc: ∅ + ├── block: ∅ + ├── flags: ∅ + └── name: "set" |