diff options
Diffstat (limited to 'test/prism/snapshots/seattlerb/case_in_hash_pat_assign.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/case_in_hash_pat_assign.txt | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/case_in_hash_pat_assign.txt b/test/prism/snapshots/seattlerb/case_in_hash_pat_assign.txt new file mode 100644 index 0000000000..790d9d63ff --- /dev/null +++ b/test/prism/snapshots/seattlerb/case_in_hash_pat_assign.txt @@ -0,0 +1,86 @@ +@ ProgramNode (location: (1,0)-(4,3)) +├── locals: [:x, :f] +└── statements: + @ StatementsNode (location: (1,0)-(4,3)) + └── body: (length: 1) + └── @ CaseMatchNode (location: (1,0)-(4,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,0)-(3,4)) + │ ├── pattern: + │ │ @ HashPatternNode (location: (2,3)-(2,34)) + │ │ ├── constant: ∅ + │ │ ├── elements: (length: 3) + │ │ │ ├── @ AssocNode (location: (2,5)-(2,20)) + │ │ │ │ ├── key: + │ │ │ │ │ @ SymbolNode (location: (2,5)-(2,7)) + │ │ │ │ │ ├── flags: forced_us_ascii_encoding + │ │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ │ ├── value_loc: (2,5)-(2,6) = "b" + │ │ │ │ │ ├── closing_loc: (2,6)-(2,7) = ":" + │ │ │ │ │ └── unescaped: "b" + │ │ │ │ ├── value: + │ │ │ │ │ @ CapturePatternNode (location: (2,8)-(2,20)) + │ │ │ │ │ ├── value: + │ │ │ │ │ │ @ ConstantReadNode (location: (2,8)-(2,15)) + │ │ │ │ │ │ └── name: :Integer + │ │ │ │ │ ├── target: + │ │ │ │ │ │ @ LocalVariableTargetNode (location: (2,19)-(2,20)) + │ │ │ │ │ │ ├── name: :x + │ │ │ │ │ │ └── depth: 0 + │ │ │ │ │ └── operator_loc: (2,16)-(2,18) = "=>" + │ │ │ │ └── operator_loc: ∅ + │ │ │ ├── @ AssocNode (location: (2,22)-(2,28)) + │ │ │ │ ├── key: + │ │ │ │ │ @ SymbolNode (location: (2,22)-(2,24)) + │ │ │ │ │ ├── flags: forced_us_ascii_encoding + │ │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ │ ├── value_loc: (2,22)-(2,23) = "d" + │ │ │ │ │ ├── closing_loc: (2,23)-(2,24) = ":" + │ │ │ │ │ └── unescaped: "d" + │ │ │ │ ├── value: + │ │ │ │ │ @ StringNode (location: (2,25)-(2,28)) + │ │ │ │ │ ├── flags: ∅ + │ │ │ │ │ ├── opening_loc: (2,25)-(2,26) = "\"" + │ │ │ │ │ ├── content_loc: (2,26)-(2,27) = "e" + │ │ │ │ │ ├── closing_loc: (2,27)-(2,28) = "\"" + │ │ │ │ │ └── unescaped: "e" + │ │ │ │ └── operator_loc: ∅ + │ │ │ └── @ AssocNode (location: (2,30)-(2,32)) + │ │ │ ├── key: + │ │ │ │ @ SymbolNode (location: (2,30)-(2,32)) + │ │ │ │ ├── flags: forced_us_ascii_encoding + │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ ├── value_loc: (2,30)-(2,31) = "f" + │ │ │ │ ├── closing_loc: (2,31)-(2,32) = ":" + │ │ │ │ └── unescaped: "f" + │ │ │ ├── value: + │ │ │ │ @ ImplicitNode (location: (2,30)-(2,31)) + │ │ │ │ └── value: + │ │ │ │ @ LocalVariableTargetNode (location: (2,30)-(2,31)) + │ │ │ │ ├── name: :f + │ │ │ │ └── depth: 0 + │ │ │ └── operator_loc: ∅ + │ │ ├── rest: ∅ + │ │ ├── opening_loc: (2,3)-(2,4) = "{" + │ │ └── closing_loc: (2,33)-(2,34) = "}" + │ ├── statements: + │ │ @ StatementsNode (location: (3,2)-(3,4)) + │ │ └── body: (length: 1) + │ │ └── @ SymbolNode (location: (3,2)-(3,4)) + │ │ ├── flags: forced_us_ascii_encoding + │ │ ├── opening_loc: (3,2)-(3,3) = ":" + │ │ ├── value_loc: (3,3)-(3,4) = "g" + │ │ ├── closing_loc: ∅ + │ │ └── unescaped: "g" + │ ├── in_loc: (2,0)-(2,2) = "in" + │ └── then_loc: (2,35)-(2,39) = "then" + ├── consequent: ∅ + ├── case_keyword_loc: (1,0)-(1,4) = "case" + └── end_keyword_loc: (4,0)-(4,3) = "end" |