blob: 2546dafa72226d03d87f6445b1de3bfcf6e25d33 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
@ ProgramNode (location: (0...49))
├── locals: [:a]
└── statements:
@ StatementsNode (location: (0...49))
└── body: (length: 3)
├── @ LocalVariableWriteNode (location: (0...5))
│ ├── name: :a
│ ├── depth: 0
│ ├── name_loc: (0...1) = "a"
│ ├── value:
│ │ @ IntegerNode (location: (4...5))
│ │ └── flags: decimal
│ └── operator_loc: (2...3) = "="
├── @ CallNode (location: (7...13))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (7...8) = "a"
│ ├── opening_loc: ∅
│ ├── arguments:
│ │ @ ArgumentsNode (location: (9...13))
│ │ └── arguments: (length: 1)
│ │ └── @ KeywordHashNode (location: (9...13))
│ │ └── elements: (length: 1)
│ │ └── @ AssocNode (location: (9...13))
│ │ ├── key:
│ │ │ @ SymbolNode (location: (9...11))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── value_loc: (9...10) = "b"
│ │ │ ├── closing_loc: (10...11) = ":"
│ │ │ └── unescaped: "b"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (12...13))
│ │ │ └── flags: decimal
│ │ └── operator_loc: ∅
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags:
│ └── name: "a"
└── @ DefNode (location: (15...49))
├── name: :foo
├── name_loc: (19...22) = "foo"
├── receiver: ∅
├── parameters:
│ @ ParametersNode (location: (23...28))
│ ├── requireds: (length: 1)
│ │ └── @ RequiredParameterNode (location: (23...28))
│ │ └── name: :raise
│ ├── optionals: (length: 0)
│ ├── posts: (length: 0)
│ ├── rest: ∅
│ ├── keywords: (length: 0)
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body:
│ @ StatementsNode (location: (30...44))
│ └── body: (length: 1)
│ └── @ CallNode (location: (30...44))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (30...35) = "raise"
│ ├── opening_loc: ∅
│ ├── arguments:
│ │ @ ArgumentsNode (location: (36...44))
│ │ └── arguments: (length: 2)
│ │ ├── @ ConstantPathNode (location: (36...40))
│ │ │ ├── parent:
│ │ │ │ @ ConstantReadNode (location: (36...37))
│ │ │ │ └── name: :A
│ │ │ ├── child:
│ │ │ │ @ ConstantReadNode (location: (39...40))
│ │ │ │ └── name: :B
│ │ │ └── delimiter_loc: (37...39) = "::"
│ │ └── @ StringNode (location: (42...44))
│ │ ├── opening_loc: (42...43) = "'"
│ │ ├── content_loc: (43...43) = ""
│ │ ├── closing_loc: (43...44) = "'"
│ │ └── unescaped: ""
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags:
│ └── name: "raise"
├── locals: [:raise]
├── def_keyword_loc: (15...18) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
├── rparen_loc: ∅
├── equal_loc: ∅
└── end_keyword_loc: (46...49) = "end"
|