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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
@ ProgramNode (location: (1,0)-(14,10))
├── locals: []
└── statements:
@ StatementsNode (location: (1,0)-(14,10))
└── body: (length: 14)
├── @ RationalNode (location: (1,0)-(1,4))
│ ├── flags: decimal
│ ├── numerator: 1
│ └── denominator: 1
├── @ RationalNode (location: (2,0)-(2,3))
│ ├── flags: decimal
│ ├── numerator: 0
│ └── denominator: 1
├── @ IntegerNode (location: (3,0)-(3,3))
│ ├── flags: hexadecimal
│ └── value: 1
├── @ IntegerNode (location: (4,0)-(4,5))
│ ├── flags: decimal
│ └── value: 1000
├── @ FloatNode (location: (5,0)-(5,4))
│ └── value: 10000000000.0
├── @ FloatNode (location: (6,0)-(6,14))
│ └── value: Infinity
├── @ FloatNode (location: (7,0)-(7,15))
│ └── value: -Infinity
├── @ StringNode (location: (8,0)-(8,2))
│ ├── flags: ∅
│ ├── opening_loc: (8,0)-(8,1) = "?"
│ ├── content_loc: (8,1)-(8,2) = "c"
│ ├── closing_loc: ∅
│ └── unescaped: "c"
├── @ RegularExpressionNode (location: (9,0)-(9,5))
│ ├── flags: forced_us_ascii_encoding
│ ├── opening_loc: (9,0)-(9,3) = "%r("
│ ├── content_loc: (9,3)-(9,4) = "/"
│ ├── closing_loc: (9,4)-(9,5) = ")"
│ └── unescaped: "/"
├── @ RegularExpressionNode (location: (10,0)-(10,6))
│ ├── flags: forced_us_ascii_encoding
│ ├── opening_loc: (10,0)-(10,3) = "%r("
│ ├── content_loc: (10,3)-(10,5) = "\\)"
│ ├── closing_loc: (10,5)-(10,6) = ")"
│ └── unescaped: "\\)"
├── @ InterpolatedRegularExpressionNode (location: (11,0)-(11,14))
│ ├── flags: ∅
│ ├── opening_loc: (11,0)-(11,3) = "%r("
│ ├── parts: (length: 2)
│ │ ├── @ EmbeddedStatementsNode (location: (11,3)-(11,10))
│ │ │ ├── opening_loc: (11,3)-(11,5) = "\#{"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (11,5)-(11,9))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ InstanceVariableReadNode (location: (11,5)-(11,9))
│ │ │ │ └── name: :@bar
│ │ │ └── closing_loc: (11,9)-(11,10) = "}"
│ │ └── @ StringNode (location: (11,10)-(11,13))
│ │ ├── flags: frozen
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (11,10)-(11,13) = "baz"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "baz"
│ └── closing_loc: (11,13)-(11,14) = ")"
├── @ FloatNode (location: (12,0)-(12,16))
│ └── value: Infinity
├── @ FloatNode (location: (13,0)-(13,17))
│ └── value: -Infinity
└── @ CallNode (location: (14,0)-(14,10))
├── flags: ignore_visibility
├── receiver: ∅
├── call_operator_loc: ∅
├── name: :w
├── message_loc: (14,0)-(14,1) = "w"
├── opening_loc: (14,1)-(14,2) = "("
├── arguments:
│ @ ArgumentsNode (location: (14,2)-(14,9))
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ CallNode (location: (14,2)-(14,9))
│ ├── flags: ignore_visibility
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── name: :foo
│ ├── message_loc: (14,2)-(14,5) = "foo"
│ ├── opening_loc: ∅
│ ├── arguments:
│ │ @ ArgumentsNode (location: (14,6)-(14,9))
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ CallNode (location: (14,6)-(14,9))
│ │ ├── flags: variable_call, ignore_visibility
│ │ ├── receiver: ∅
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :bar
│ │ ├── message_loc: (14,6)-(14,9) = "bar"
│ │ ├── opening_loc: ∅
│ │ ├── arguments: ∅
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── closing_loc: ∅
│ └── block: ∅
├── closing_loc: (14,9)-(14,10) = ")"
└── block: ∅
|