summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt
blob: a527c8c993d692778ce2cdb63d62b9fc467cb6cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@ ProgramNode (location: (1,0)-(1,33))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(1,33))
    └── body: (length: 1)
        └── @ CallNode (location: (1,0)-(1,33))
            ├── flags: ignore_visibility
            ├── receiver: ∅
            ├── call_operator_loc: ∅
            ├── name: :bl
            ├── message_loc: (1,0)-(1,2) = "bl"
            ├── opening_loc: ∅
            ├── arguments: ∅
            ├── closing_loc: ∅
            └── block:
                @ BlockNode (location: (1,3)-(1,33))
                ├── locals: [:kw, :kw2]
                ├── parameters:
                │   @ BlockParametersNode (location: (1,5)-(1,28))
                │   ├── parameters:
                │   │   @ ParametersNode (location: (1,6)-(1,26))
                │   │   ├── requireds: (length: 0)
                │   │   ├── optionals: (length: 0)
                │   │   ├── rest: ∅
                │   │   ├── posts: (length: 0)
                │   │   ├── keywords: (length: 2)
                │   │   │   ├── @ OptionalKeywordParameterNode (location: (1,6)-(1,14))
                │   │   │   │   ├── flags: ∅
                │   │   │   │   ├── name: :kw
                │   │   │   │   ├── name_loc: (1,6)-(1,9) = "kw:"
                │   │   │   │   └── value:
                │   │   │   │       @ SymbolNode (location: (1,10)-(1,14))
                │   │   │   │       ├── flags: forced_us_ascii_encoding
                │   │   │   │       ├── opening_loc: (1,10)-(1,11) = ":"
                │   │   │   │       ├── value_loc: (1,11)-(1,14) = "val"
                │   │   │   │       ├── closing_loc: ∅
                │   │   │   │       └── unescaped: "val"
                │   │   │   └── @ OptionalKeywordParameterNode (location: (1,16)-(1,26))
                │   │   │       ├── flags: ∅
                │   │   │       ├── name: :kw2
                │   │   │       ├── name_loc: (1,16)-(1,20) = "kw2:"
                │   │   │       └── value:
                │   │   │           @ SymbolNode (location: (1,21)-(1,26))
                │   │   │           ├── flags: forced_us_ascii_encoding
                │   │   │           ├── opening_loc: (1,21)-(1,22) = ":"
                │   │   │           ├── value_loc: (1,22)-(1,26) = "val2"
                │   │   │           ├── closing_loc: ∅
                │   │   │           └── unescaped: "val2"
                │   │   ├── keyword_rest: ∅
                │   │   └── block: ∅
                │   ├── locals: (length: 0)
                │   ├── opening_loc: (1,5)-(1,6) = "|"
                │   └── closing_loc: (1,27)-(1,28) = "|"
                ├── body:
                │   @ StatementsNode (location: (1,29)-(1,31))
                │   └── body: (length: 1)
                │       └── @ LocalVariableReadNode (location: (1,29)-(1,31))
                │           ├── name: :kw
                │           └── depth: 0
                ├── opening_loc: (1,3)-(1,4) = "{"
                └── closing_loc: (1,32)-(1,33) = "}"