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