diff options
Diffstat (limited to 'test/prism/snapshots/seattlerb/case_in_find.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/case_in_find.txt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/case_in_find.txt b/test/prism/snapshots/seattlerb/case_in_find.txt new file mode 100644 index 0000000000..f84c4c30d0 --- /dev/null +++ b/test/prism/snapshots/seattlerb/case_in_find.txt @@ -0,0 +1,47 @@ +@ ProgramNode (location: (1,0)-(3,3)) +├── locals: [:a, :b] +└── statements: + @ StatementsNode (location: (1,0)-(3,3)) + └── body: (length: 1) + └── @ CaseMatchNode (location: (1,0)-(3,3)) + ├── predicate: + │ @ SymbolNode (location: (1,5)-(1,7)) + │ ├── flags: forced_us_ascii_encoding + │ ├── opening_loc: (1,5)-(1,6) = ":" + │ ├── value_loc: (1,6)-(1,7) = "a" + │ ├── closing_loc: ∅ + │ └── unescaped: "a" + ├── conditions: (length: 1) + │ └── @ InNode (location: (2,2)-(2,15)) + │ ├── pattern: + │ │ @ FindPatternNode (location: (2,5)-(2,15)) + │ │ ├── constant: ∅ + │ │ ├── left: + │ │ │ @ SplatNode (location: (2,5)-(2,7)) + │ │ │ ├── operator_loc: (2,5)-(2,6) = "*" + │ │ │ └── expression: + │ │ │ @ LocalVariableTargetNode (location: (2,6)-(2,7)) + │ │ │ ├── name: :a + │ │ │ └── depth: 0 + │ │ ├── requireds: (length: 1) + │ │ │ └── @ SymbolNode (location: (2,9)-(2,11)) + │ │ │ ├── flags: forced_us_ascii_encoding + │ │ │ ├── opening_loc: (2,9)-(2,10) = ":" + │ │ │ ├── value_loc: (2,10)-(2,11) = "+" + │ │ │ ├── closing_loc: ∅ + │ │ │ └── unescaped: "+" + │ │ ├── right: + │ │ │ @ SplatNode (location: (2,13)-(2,15)) + │ │ │ ├── operator_loc: (2,13)-(2,14) = "*" + │ │ │ └── expression: + │ │ │ @ LocalVariableTargetNode (location: (2,14)-(2,15)) + │ │ │ ├── name: :b + │ │ │ └── depth: 0 + │ │ ├── opening_loc: ∅ + │ │ └── closing_loc: ∅ + │ ├── statements: ∅ + │ ├── in_loc: (2,2)-(2,4) = "in" + │ └── then_loc: ∅ + ├── consequent: ∅ + ├── case_keyword_loc: (1,0)-(1,4) = "case" + └── end_keyword_loc: (3,0)-(3,3) = "end" |