diff options
Diffstat (limited to 'test/prism/snapshots/seattlerb/parse_pattern_069.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/parse_pattern_069.txt | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/parse_pattern_069.txt b/test/prism/snapshots/seattlerb/parse_pattern_069.txt new file mode 100644 index 0000000000..09ac7653c6 --- /dev/null +++ b/test/prism/snapshots/seattlerb/parse_pattern_069.txt @@ -0,0 +1,48 @@ +@ ProgramNode (location: (1,0)-(4,3)) +├── locals: [] +└── 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,3)) + │ ├── pattern: + │ │ @ HashPatternNode (location: (2,3)-(2,15)) + │ │ ├── constant: + │ │ │ @ ConstantReadNode (location: (2,3)-(2,9)) + │ │ │ └── name: :Object + │ │ ├── elements: (length: 1) + │ │ │ └── @ AssocNode (location: (2,10)-(2,14)) + │ │ │ ├── key: + │ │ │ │ @ SymbolNode (location: (2,10)-(2,12)) + │ │ │ │ ├── flags: forced_us_ascii_encoding + │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ ├── value_loc: (2,10)-(2,11) = "b" + │ │ │ │ ├── closing_loc: (2,11)-(2,12) = ":" + │ │ │ │ └── unescaped: "b" + │ │ │ ├── value: + │ │ │ │ @ IntegerNode (location: (2,13)-(2,14)) + │ │ │ │ ├── flags: decimal + │ │ │ │ └── value: 1 + │ │ │ └── operator_loc: ∅ + │ │ ├── rest: ∅ + │ │ ├── opening_loc: (2,9)-(2,10) = "[" + │ │ └── closing_loc: (2,14)-(2,15) = "]" + │ ├── statements: + │ │ @ StatementsNode (location: (3,2)-(3,3)) + │ │ └── body: (length: 1) + │ │ └── @ IntegerNode (location: (3,2)-(3,3)) + │ │ ├── flags: decimal + │ │ └── value: 1 + │ ├── 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" |