1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "FunctionDeclaration", 6 "function": { 7 "type": "ScriptFunction", 8 "id": { 9 "type": "Identifier", 10 "name": "foo", 11 "loc": { 12 "start": { 13 "line": 17, 14 "column": 10 15 }, 16 "end": { 17 "line": 17, 18 "column": 13 19 } 20 } 21 }, 22 "generator": false, 23 "async": false, 24 "expression": false, 25 "params": [], 26 "body": { 27 "type": "BlockStatement", 28 "statements": [], 29 "loc": { 30 "start": { 31 "line": 17, 32 "column": 16 33 }, 34 "end": { 35 "line": 17, 36 "column": 18 37 } 38 } 39 }, 40 "loc": { 41 "start": { 42 "line": 17, 43 "column": 1 44 }, 45 "end": { 46 "line": 17, 47 "column": 18 48 } 49 } 50 }, 51 "loc": { 52 "start": { 53 "line": 17, 54 "column": 1 55 }, 56 "end": { 57 "line": 17, 58 "column": 18 59 } 60 } 61 }, 62 { 63 "type": "FunctionDeclaration", 64 "function": { 65 "type": "ScriptFunction", 66 "id": { 67 "type": "Identifier", 68 "name": "as", 69 "loc": { 70 "start": { 71 "line": 18, 72 "column": 10 73 }, 74 "end": { 75 "line": 18, 76 "column": 12 77 } 78 } 79 }, 80 "generator": false, 81 "async": false, 82 "expression": false, 83 "params": [ 84 { 85 "type": "Identifier", 86 "name": "obj", 87 "loc": { 88 "start": { 89 "line": 18, 90 "column": 13 91 }, 92 "end": { 93 "line": 18, 94 "column": 16 95 } 96 } 97 } 98 ], 99 "body": { 100 "type": "BlockStatement", 101 "statements": [], 102 "loc": { 103 "start": { 104 "line": 18, 105 "column": 18 106 }, 107 "end": { 108 "line": 18, 109 "column": 20 110 } 111 } 112 }, 113 "loc": { 114 "start": { 115 "line": 18, 116 "column": 1 117 }, 118 "end": { 119 "line": 18, 120 "column": 20 121 } 122 } 123 }, 124 "loc": { 125 "start": { 126 "line": 18, 127 "column": 1 128 }, 129 "end": { 130 "line": 18, 131 "column": 20 132 } 133 } 134 }, 135 { 136 "type": "VariableDeclaration", 137 "declarations": [ 138 { 139 "type": "VariableDeclarator", 140 "id": { 141 "type": "Identifier", 142 "name": "B", 143 "loc": { 144 "start": { 145 "line": 20, 146 "column": 5 147 }, 148 "end": { 149 "line": 20, 150 "column": 6 151 } 152 } 153 }, 154 "init": { 155 "type": "Identifier", 156 "name": "foo", 157 "loc": { 158 "start": { 159 "line": 20, 160 "column": 9 161 }, 162 "end": { 163 "line": 20, 164 "column": 12 165 } 166 } 167 }, 168 "loc": { 169 "start": { 170 "line": 20, 171 "column": 5 172 }, 173 "end": { 174 "line": 20, 175 "column": 12 176 } 177 } 178 } 179 ], 180 "kind": "var", 181 "loc": { 182 "start": { 183 "line": 20, 184 "column": 1 185 }, 186 "end": { 187 "line": 20, 188 "column": 13 189 } 190 } 191 }, 192 { 193 "type": "VariableDeclaration", 194 "declarations": [ 195 { 196 "type": "VariableDeclarator", 197 "id": { 198 "type": "Identifier", 199 "name": "x", 200 "loc": { 201 "start": { 202 "line": 21, 203 "column": 5 204 }, 205 "end": { 206 "line": 21, 207 "column": 6 208 } 209 } 210 }, 211 "init": { 212 "type": "Identifier", 213 "name": "foo", 214 "loc": { 215 "start": { 216 "line": 21, 217 "column": 9 218 }, 219 "end": { 220 "line": 21, 221 "column": 12 222 } 223 } 224 }, 225 "loc": { 226 "start": { 227 "line": 21, 228 "column": 5 229 }, 230 "end": { 231 "line": 21, 232 "column": 12 233 } 234 } 235 } 236 ], 237 "kind": "var", 238 "loc": { 239 "start": { 240 "line": 21, 241 "column": 1 242 }, 243 "end": { 244 "line": 21, 245 "column": 12 246 } 247 } 248 }, 249 { 250 "type": "ExpressionStatement", 251 "expression": { 252 "type": "CallExpression", 253 "callee": { 254 "type": "Identifier", 255 "name": "as", 256 "loc": { 257 "start": { 258 "line": 22, 259 "column": 1 260 }, 261 "end": { 262 "line": 22, 263 "column": 3 264 } 265 } 266 }, 267 "arguments": [ 268 { 269 "type": "Identifier", 270 "name": "B", 271 "loc": { 272 "start": { 273 "line": 22, 274 "column": 4 275 }, 276 "end": { 277 "line": 22, 278 "column": 5 279 } 280 } 281 } 282 ], 283 "optional": false, 284 "loc": { 285 "start": { 286 "line": 22, 287 "column": 1 288 }, 289 "end": { 290 "line": 22, 291 "column": 6 292 } 293 } 294 }, 295 "loc": { 296 "start": { 297 "line": 22, 298 "column": 1 299 }, 300 "end": { 301 "line": 22, 302 "column": 6 303 } 304 } 305 } 306 ], 307 "loc": { 308 "start": { 309 "line": 1, 310 "column": 1 311 }, 312 "end": { 313 "line": 23, 314 "column": 1 315 } 316 } 317} 318