blob: 80d6c52bc1770aa63ba6faa7ee901b78e64982b5 (
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
|
@ ProgramNode (location: (0...22))
├── locals: []
└── statements:
@ StatementsNode (location: (0...22))
└── body: (length: 1)
└── @ CallNode (location: (0...22))
├── receiver: ∅
├── call_operator_loc: ∅
├── message_loc: (0...1) = "a"
├── opening_loc: ∅
├── arguments: ∅
├── closing_loc: ∅
├── block:
│ @ BlockNode (location: (2...22))
│ ├── locals: [:b, :c, :d, :e]
│ ├── parameters:
│ │ @ BlockParametersNode (location: (4...20))
│ │ ├── parameters:
│ │ │ @ ParametersNode (location: (5...19))
│ │ │ ├── requireds: (length: 0)
│ │ │ ├── optionals: (length: 1)
│ │ │ │ └── @ OptionalParameterNode (location: (5...8))
│ │ │ │ ├── name: :b
│ │ │ │ ├── name_loc: (5...6) = "b"
│ │ │ │ ├── operator_loc: (6...7) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (7...8))
│ │ │ │ └── flags: decimal
│ │ │ ├── rest:
│ │ │ │ @ RestParameterNode (location: (10...12))
│ │ │ │ ├── name: :c
│ │ │ │ ├── name_loc: (11...12) = "c"
│ │ │ │ └── operator_loc: (10...11) = "*"
│ │ │ ├── posts: (length: 1)
│ │ │ │ └── @ RequiredParameterNode (location: (14...15))
│ │ │ │ └── name: :d
│ │ │ ├── keywords: (length: 0)
│ │ │ ├── keyword_rest: ∅
│ │ │ └── block:
│ │ │ @ BlockParameterNode (location: (17...19))
│ │ │ ├── name: :e
│ │ │ ├── name_loc: (18...19) = "e"
│ │ │ └── operator_loc: (17...18) = "&"
│ │ ├── locals: (length: 0)
│ │ ├── opening_loc: (4...5) = "|"
│ │ └── closing_loc: (19...20) = "|"
│ ├── body: ∅
│ ├── opening_loc: (2...3) = "{"
│ └── closing_loc: (21...22) = "}"
├── flags:
└── name: "a"
|