blob: f7a743c5e944adc7c48b66b541960c44321b453e (
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
62
63
64
65
66
67
68
69
70
71
72
|
@ ProgramNode (location: (0...42))
├── locals: []
└── statements:
@ StatementsNode (location: (0...42))
└── body: (length: 1)
└── @ CallNode (location: (0...42))
├── receiver: ∅
├── call_operator_loc: ∅
├── message_loc: (0...1) = "f"
├── opening_loc: ∅
├── arguments: ∅
├── closing_loc: ∅
├── block:
│ @ BlockNode (location: (2...42))
│ ├── locals: [:a, :b, :c, :d]
│ ├── parameters:
│ │ @ BlockParametersNode (location: (4...27))
│ │ ├── parameters:
│ │ │ @ ParametersNode (location: (5...26))
│ │ │ ├── requireds: (length: 1)
│ │ │ │ └── @ RequiredParameterNode (location: (5...6))
│ │ │ │ └── name: :a
│ │ │ ├── optionals: (length: 2)
│ │ │ │ ├── @ OptionalParameterNode (location: (8...14))
│ │ │ │ │ ├── name: :b
│ │ │ │ │ ├── name_loc: (8...9) = "b"
│ │ │ │ │ ├── operator_loc: (10...11) = "="
│ │ │ │ │ └── value:
│ │ │ │ │ @ IntegerNode (location: (12...14))
│ │ │ │ │ └── flags: decimal
│ │ │ │ └── @ OptionalParameterNode (location: (16...22))
│ │ │ │ ├── name: :c
│ │ │ │ ├── name_loc: (16...17) = "c"
│ │ │ │ ├── operator_loc: (18...19) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (20...22))
│ │ │ │ └── flags: decimal
│ │ │ ├── posts: (length: 0)
│ │ │ ├── rest: ∅
│ │ │ ├── keywords: (length: 0)
│ │ │ ├── keyword_rest: ∅
│ │ │ └── block:
│ │ │ @ BlockParameterNode (location: (24...26))
│ │ │ ├── name: :d
│ │ │ ├── name_loc: (25...26) = "d"
│ │ │ └── operator_loc: (24...25) = "&"
│ │ ├── locals: (length: 0)
│ │ ├── opening_loc: (4...5) = "|"
│ │ └── closing_loc: (26...27) = "|"
│ ├── body:
│ │ @ StatementsNode (location: (28...40))
│ │ └── body: (length: 1)
│ │ └── @ ArrayNode (location: (28...40))
│ │ ├── elements: (length: 4)
│ │ │ ├── @ LocalVariableReadNode (location: (29...30))
│ │ │ │ ├── name: :a
│ │ │ │ └── depth: 0
│ │ │ ├── @ LocalVariableReadNode (location: (32...33))
│ │ │ │ ├── name: :b
│ │ │ │ └── depth: 0
│ │ │ ├── @ LocalVariableReadNode (location: (35...36))
│ │ │ │ ├── name: :c
│ │ │ │ └── depth: 0
│ │ │ └── @ LocalVariableReadNode (location: (38...39))
│ │ │ ├── name: :d
│ │ │ └── depth: 0
│ │ ├── opening_loc: (28...29) = "["
│ │ └── closing_loc: (39...40) = "]"
│ ├── opening_loc: (2...3) = "{"
│ └── closing_loc: (41...42) = "}"
├── flags:
└── name: "f"
|