diff options
Diffstat (limited to 'test/prism/snapshots/whitequark/parser_bug_507.txt')
-rw-r--r-- | test/prism/snapshots/whitequark/parser_bug_507.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/prism/snapshots/whitequark/parser_bug_507.txt b/test/prism/snapshots/whitequark/parser_bug_507.txt new file mode 100644 index 0000000000..7e5fc9ee35 --- /dev/null +++ b/test/prism/snapshots/whitequark/parser_bug_507.txt @@ -0,0 +1,36 @@ +@ ProgramNode (location: (1,0)-(1,19)) +├── locals: [:m] +└── statements: + @ StatementsNode (location: (1,0)-(1,19)) + └── body: (length: 1) + └── @ LocalVariableWriteNode (location: (1,0)-(1,19)) + ├── name: :m + ├── depth: 0 + ├── name_loc: (1,0)-(1,1) = "m" + ├── value: + │ @ LambdaNode (location: (1,4)-(1,19)) + │ ├── locals: [:args] + │ ├── operator_loc: (1,4)-(1,6) = "->" + │ ├── opening_loc: (1,13)-(1,15) = "do" + │ ├── closing_loc: (1,16)-(1,19) = "end" + │ ├── parameters: + │ │ @ BlockParametersNode (location: (1,7)-(1,12)) + │ │ ├── parameters: + │ │ │ @ ParametersNode (location: (1,7)-(1,12)) + │ │ │ ├── requireds: (length: 0) + │ │ │ ├── optionals: (length: 0) + │ │ │ ├── rest: + │ │ │ │ @ RestParameterNode (location: (1,7)-(1,12)) + │ │ │ │ ├── flags: ∅ + │ │ │ │ ├── name: :args + │ │ │ │ ├── name_loc: (1,8)-(1,12) = "args" + │ │ │ │ └── operator_loc: (1,7)-(1,8) = "*" + │ │ │ ├── posts: (length: 0) + │ │ │ ├── keywords: (length: 0) + │ │ │ ├── keyword_rest: ∅ + │ │ │ └── block: ∅ + │ │ ├── locals: (length: 0) + │ │ ├── opening_loc: ∅ + │ │ └── closing_loc: ∅ + │ └── body: ∅ + └── operator_loc: (1,2)-(1,3) = "=" |