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/seattlerb/parse_pattern_058_2.txt | |
parent | 7e0971eb5d679bb6219abb0ec238139aa6502c5a (diff) | |
download | ruby-8ab56869a64fdccc094f4a83c6367fb23b72d38b.tar.gz |
Rename YARP filepaths to prism filepaths
Diffstat (limited to 'test/prism/snapshots/seattlerb/parse_pattern_058_2.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/parse_pattern_058_2.txt | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/parse_pattern_058_2.txt b/test/prism/snapshots/seattlerb/parse_pattern_058_2.txt new file mode 100644 index 0000000000..dc89fc3640 --- /dev/null +++ b/test/prism/snapshots/seattlerb/parse_pattern_058_2.txt @@ -0,0 +1,58 @@ +@ ProgramNode (location: (1,0)-(4,3)) +├── locals: [:a] +└── statements: + @ StatementsNode (location: (1,0)-(4,3)) + └── body: (length: 1) + └── @ CaseNode (location: (1,0)-(4,3)) + ├── predicate: + │ @ HashNode (location: (1,5)-(1,11)) + │ ├── opening_loc: (1,5)-(1,6) = "{" + │ ├── elements: (length: 1) + │ │ └── @ AssocNode (location: (1,6)-(1,10)) + │ │ ├── key: + │ │ │ @ SymbolNode (location: (1,6)-(1,8)) + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── value_loc: (1,6)-(1,7) = "a" + │ │ │ ├── closing_loc: (1,7)-(1,8) = ":" + │ │ │ └── unescaped: "a" + │ │ ├── value: + │ │ │ @ IntegerNode (location: (1,9)-(1,10)) + │ │ │ └── flags: decimal + │ │ └── operator_loc: ∅ + │ └── closing_loc: (1,10)-(1,11) = "}" + ├── conditions: (length: 1) + │ └── @ InNode (location: (2,0)-(3,5)) + │ ├── pattern: + │ │ @ HashPatternNode (location: (2,3)-(2,11)) + │ │ ├── constant: ∅ + │ │ ├── assocs: (length: 2) + │ │ │ ├── @ AssocNode (location: (2,4)-(2,6)) + │ │ │ │ ├── key: + │ │ │ │ │ @ SymbolNode (location: (2,4)-(2,6)) + │ │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ │ ├── value_loc: (2,4)-(2,5) = "a" + │ │ │ │ │ ├── closing_loc: (2,5)-(2,6) = ":" + │ │ │ │ │ └── unescaped: "a" + │ │ │ │ ├── value: ∅ + │ │ │ │ └── operator_loc: ∅ + │ │ │ └── @ AssocSplatNode (location: (2,8)-(2,10)) + │ │ │ ├── value: ∅ + │ │ │ └── operator_loc: (2,8)-(2,10) = "**" + │ │ ├── kwrest: ∅ + │ │ ├── opening_loc: (2,3)-(2,4) = "{" + │ │ └── closing_loc: (2,10)-(2,11) = "}" + │ ├── statements: + │ │ @ StatementsNode (location: (3,2)-(3,5)) + │ │ └── body: (length: 1) + │ │ └── @ ArrayNode (location: (3,2)-(3,5)) + │ │ ├── elements: (length: 1) + │ │ │ └── @ LocalVariableReadNode (location: (3,3)-(3,4)) + │ │ │ ├── name: :a + │ │ │ └── depth: 0 + │ │ ├── opening_loc: (3,2)-(3,3) = "[" + │ │ └── closing_loc: (3,4)-(3,5) = "]" + │ ├── in_loc: (2,0)-(2,2) = "in" + │ └── then_loc: ∅ + ├── consequent: ∅ + ├── case_keyword_loc: (1,0)-(1,4) = "case" + └── end_keyword_loc: (4,0)-(4,3) = "end" |