|
| 1 | +@ ProgramNode (location: (1,0)-(15,5)) |
| 2 | +├── flags: ∅ |
| 3 | +├── locals: [] |
| 4 | +└── statements: |
| 5 | + @ StatementsNode (location: (1,0)-(15,5)) |
| 6 | + ├── flags: ∅ |
| 7 | + └── body: (length: 6) |
| 8 | + ├── @ DefNode (location: (1,0)-(1,19)) |
| 9 | + │ ├── flags: newline |
| 10 | + │ ├── name: :foo |
| 11 | + │ ├── name_loc: (1,4)-(1,7) = "foo" |
| 12 | + │ ├── receiver: ∅ |
| 13 | + │ ├── parameters: |
| 14 | + │ │ @ ParametersNode (location: (1,8)-(1,13)) |
| 15 | + │ │ ├── flags: ∅ |
| 16 | + │ │ ├── requireds: (length: 3) |
| 17 | + │ │ │ ├── @ RequiredParameterNode (location: (1,8)-(1,9)) |
| 18 | + │ │ │ │ ├── flags: ∅ |
| 19 | + │ │ │ │ └── name: :a |
| 20 | + │ │ │ ├── @ RequiredParameterNode (location: (1,10)-(1,11)) |
| 21 | + │ │ │ │ ├── flags: ∅ |
| 22 | + │ │ │ │ └── name: :b |
| 23 | + │ │ │ └── @ RequiredParameterNode (location: (1,12)-(1,13)) |
| 24 | + │ │ │ ├── flags: ∅ |
| 25 | + │ │ │ └── name: :c |
| 26 | + │ │ ├── optionals: (length: 0) |
| 27 | + │ │ ├── rest: ∅ |
| 28 | + │ │ ├── posts: (length: 0) |
| 29 | + │ │ ├── keywords: (length: 0) |
| 30 | + │ │ ├── keyword_rest: ∅ |
| 31 | + │ │ └── block: ∅ |
| 32 | + │ ├── body: ∅ |
| 33 | + │ ├── locals: [:a, :b, :c] |
| 34 | + │ ├── def_keyword_loc: (1,0)-(1,3) = "def" |
| 35 | + │ ├── operator_loc: ∅ |
| 36 | + │ ├── lparen_loc: (1,7)-(1,8) = "(" |
| 37 | + │ ├── rparen_loc: (1,14)-(1,15) = ")" |
| 38 | + │ ├── equal_loc: ∅ |
| 39 | + │ └── end_keyword_loc: (1,16)-(1,19) = "end" |
| 40 | + ├── @ DefNode (location: (3,0)-(3,20)) |
| 41 | + │ ├── flags: newline |
| 42 | + │ ├── name: :foo |
| 43 | + │ ├── name_loc: (3,4)-(3,7) = "foo" |
| 44 | + │ ├── receiver: ∅ |
| 45 | + │ ├── parameters: |
| 46 | + │ │ @ ParametersNode (location: (3,8)-(3,14)) |
| 47 | + │ │ ├── flags: ∅ |
| 48 | + │ │ ├── requireds: (length: 2) |
| 49 | + │ │ │ ├── @ RequiredParameterNode (location: (3,8)-(3,9)) |
| 50 | + │ │ │ │ ├── flags: ∅ |
| 51 | + │ │ │ │ └── name: :a |
| 52 | + │ │ │ └── @ RequiredParameterNode (location: (3,10)-(3,11)) |
| 53 | + │ │ │ ├── flags: ∅ |
| 54 | + │ │ │ └── name: :b |
| 55 | + │ │ ├── optionals: (length: 0) |
| 56 | + │ │ ├── rest: |
| 57 | + │ │ │ @ RestParameterNode (location: (3,12)-(3,14)) |
| 58 | + │ │ │ ├── flags: ∅ |
| 59 | + │ │ │ ├── name: :c |
| 60 | + │ │ │ ├── name_loc: (3,13)-(3,14) = "c" |
| 61 | + │ │ │ └── operator_loc: (3,12)-(3,13) = "*" |
| 62 | + │ │ ├── posts: (length: 0) |
| 63 | + │ │ ├── keywords: (length: 0) |
| 64 | + │ │ ├── keyword_rest: ∅ |
| 65 | + │ │ └── block: ∅ |
| 66 | + │ ├── body: ∅ |
| 67 | + │ ├── locals: [:a, :b, :c] |
| 68 | + │ ├── def_keyword_loc: (3,0)-(3,3) = "def" |
| 69 | + │ ├── operator_loc: ∅ |
| 70 | + │ ├── lparen_loc: (3,7)-(3,8) = "(" |
| 71 | + │ ├── rparen_loc: (3,15)-(3,16) = ")" |
| 72 | + │ ├── equal_loc: ∅ |
| 73 | + │ └── end_keyword_loc: (3,17)-(3,20) = "end" |
| 74 | + ├── @ DefNode (location: (5,0)-(5,19)) |
| 75 | + │ ├── flags: newline |
| 76 | + │ ├── name: :foo |
| 77 | + │ ├── name_loc: (5,4)-(5,7) = "foo" |
| 78 | + │ ├── receiver: ∅ |
| 79 | + │ ├── parameters: |
| 80 | + │ │ @ ParametersNode (location: (5,8)-(5,13)) |
| 81 | + │ │ ├── flags: ∅ |
| 82 | + │ │ ├── requireds: (length: 2) |
| 83 | + │ │ │ ├── @ RequiredParameterNode (location: (5,8)-(5,9)) |
| 84 | + │ │ │ │ ├── flags: ∅ |
| 85 | + │ │ │ │ └── name: :a |
| 86 | + │ │ │ └── @ RequiredParameterNode (location: (5,10)-(5,11)) |
| 87 | + │ │ │ ├── flags: ∅ |
| 88 | + │ │ │ └── name: :b |
| 89 | + │ │ ├── optionals: (length: 0) |
| 90 | + │ │ ├── rest: |
| 91 | + │ │ │ @ RestParameterNode (location: (5,12)-(5,13)) |
| 92 | + │ │ │ ├── flags: ∅ |
| 93 | + │ │ │ ├── name: ∅ |
| 94 | + │ │ │ ├── name_loc: ∅ |
| 95 | + │ │ │ └── operator_loc: (5,12)-(5,13) = "*" |
| 96 | + │ │ ├── posts: (length: 0) |
| 97 | + │ │ ├── keywords: (length: 0) |
| 98 | + │ │ ├── keyword_rest: ∅ |
| 99 | + │ │ └── block: ∅ |
| 100 | + │ ├── body: ∅ |
| 101 | + │ ├── locals: [:a, :b] |
| 102 | + │ ├── def_keyword_loc: (5,0)-(5,3) = "def" |
| 103 | + │ ├── operator_loc: ∅ |
| 104 | + │ ├── lparen_loc: (5,7)-(5,8) = "(" |
| 105 | + │ ├── rparen_loc: (5,14)-(5,15) = ")" |
| 106 | + │ ├── equal_loc: ∅ |
| 107 | + │ └── end_keyword_loc: (5,16)-(5,19) = "end" |
| 108 | + ├── @ DefNode (location: (7,0)-(7,21)) |
| 109 | + │ ├── flags: newline |
| 110 | + │ ├── name: :foo |
| 111 | + │ ├── name_loc: (7,4)-(7,7) = "foo" |
| 112 | + │ ├── receiver: ∅ |
| 113 | + │ ├── parameters: |
| 114 | + │ │ @ ParametersNode (location: (7,8)-(7,15)) |
| 115 | + │ │ ├── flags: ∅ |
| 116 | + │ │ ├── requireds: (length: 2) |
| 117 | + │ │ │ ├── @ RequiredParameterNode (location: (7,8)-(7,9)) |
| 118 | + │ │ │ │ ├── flags: ∅ |
| 119 | + │ │ │ │ └── name: :a |
| 120 | + │ │ │ └── @ RequiredParameterNode (location: (7,10)-(7,11)) |
| 121 | + │ │ │ ├── flags: ∅ |
| 122 | + │ │ │ └── name: :b |
| 123 | + │ │ ├── optionals: (length: 0) |
| 124 | + │ │ ├── rest: ∅ |
| 125 | + │ │ ├── posts: (length: 0) |
| 126 | + │ │ ├── keywords: (length: 0) |
| 127 | + │ │ ├── keyword_rest: |
| 128 | + │ │ │ @ KeywordRestParameterNode (location: (7,12)-(7,15)) |
| 129 | + │ │ │ ├── flags: ∅ |
| 130 | + │ │ │ ├── name: :c |
| 131 | + │ │ │ ├── name_loc: (7,14)-(7,15) = "c" |
| 132 | + │ │ │ └── operator_loc: (7,12)-(7,14) = "**" |
| 133 | + │ │ └── block: ∅ |
| 134 | + │ ├── body: ∅ |
| 135 | + │ ├── locals: [:a, :b, :c] |
| 136 | + │ ├── def_keyword_loc: (7,0)-(7,3) = "def" |
| 137 | + │ ├── operator_loc: ∅ |
| 138 | + │ ├── lparen_loc: (7,7)-(7,8) = "(" |
| 139 | + │ ├── rparen_loc: (7,16)-(7,17) = ")" |
| 140 | + │ ├── equal_loc: ∅ |
| 141 | + │ └── end_keyword_loc: (7,18)-(7,21) = "end" |
| 142 | + ├── @ DefNode (location: (9,0)-(9,20)) |
| 143 | + │ ├── flags: newline |
| 144 | + │ ├── name: :foo |
| 145 | + │ ├── name_loc: (9,4)-(9,7) = "foo" |
| 146 | + │ ├── receiver: ∅ |
| 147 | + │ ├── parameters: |
| 148 | + │ │ @ ParametersNode (location: (9,8)-(9,14)) |
| 149 | + │ │ ├── flags: ∅ |
| 150 | + │ │ ├── requireds: (length: 2) |
| 151 | + │ │ │ ├── @ RequiredParameterNode (location: (9,8)-(9,9)) |
| 152 | + │ │ │ │ ├── flags: ∅ |
| 153 | + │ │ │ │ └── name: :a |
| 154 | + │ │ │ └── @ RequiredParameterNode (location: (9,10)-(9,11)) |
| 155 | + │ │ │ ├── flags: ∅ |
| 156 | + │ │ │ └── name: :b |
| 157 | + │ │ ├── optionals: (length: 0) |
| 158 | + │ │ ├── rest: ∅ |
| 159 | + │ │ ├── posts: (length: 0) |
| 160 | + │ │ ├── keywords: (length: 0) |
| 161 | + │ │ ├── keyword_rest: |
| 162 | + │ │ │ @ KeywordRestParameterNode (location: (9,12)-(9,14)) |
| 163 | + │ │ │ ├── flags: ∅ |
| 164 | + │ │ │ ├── name: ∅ |
| 165 | + │ │ │ ├── name_loc: ∅ |
| 166 | + │ │ │ └── operator_loc: (9,12)-(9,14) = "**" |
| 167 | + │ │ └── block: ∅ |
| 168 | + │ ├── body: ∅ |
| 169 | + │ ├── locals: [:a, :b] |
| 170 | + │ ├── def_keyword_loc: (9,0)-(9,3) = "def" |
| 171 | + │ ├── operator_loc: ∅ |
| 172 | + │ ├── lparen_loc: (9,7)-(9,8) = "(" |
| 173 | + │ ├── rparen_loc: (9,15)-(9,16) = ")" |
| 174 | + │ ├── equal_loc: ∅ |
| 175 | + │ └── end_keyword_loc: (9,17)-(9,20) = "end" |
| 176 | + └── @ DefNode (location: (11,0)-(15,5)) |
| 177 | + ├── flags: newline |
| 178 | + ├── name: :foo |
| 179 | + ├── name_loc: (11,4)-(11,7) = "foo" |
| 180 | + ├── receiver: ∅ |
| 181 | + ├── parameters: |
| 182 | + │ @ ParametersNode (location: (12,2)-(14,3)) |
| 183 | + │ ├── flags: ∅ |
| 184 | + │ ├── requireds: (length: 3) |
| 185 | + │ │ ├── @ RequiredParameterNode (location: (12,2)-(12,3)) |
| 186 | + │ │ │ ├── flags: ∅ |
| 187 | + │ │ │ └── name: :a |
| 188 | + │ │ ├── @ RequiredParameterNode (location: (13,2)-(13,3)) |
| 189 | + │ │ │ ├── flags: ∅ |
| 190 | + │ │ │ └── name: :b |
| 191 | + │ │ └── @ RequiredParameterNode (location: (14,2)-(14,3)) |
| 192 | + │ │ ├── flags: ∅ |
| 193 | + │ │ └── name: :c |
| 194 | + │ ├── optionals: (length: 0) |
| 195 | + │ ├── rest: ∅ |
| 196 | + │ ├── posts: (length: 0) |
| 197 | + │ ├── keywords: (length: 0) |
| 198 | + │ ├── keyword_rest: ∅ |
| 199 | + │ └── block: ∅ |
| 200 | + ├── body: ∅ |
| 201 | + ├── locals: [:a, :b, :c] |
| 202 | + ├── def_keyword_loc: (11,0)-(11,3) = "def" |
| 203 | + ├── operator_loc: ∅ |
| 204 | + ├── lparen_loc: (11,7)-(11,8) = "(" |
| 205 | + ├── rparen_loc: (15,0)-(15,1) = ")" |
| 206 | + ├── equal_loc: ∅ |
| 207 | + └── end_keyword_loc: (15,2)-(15,5) = "end" |
0 commit comments