| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":304,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":47,"index":304}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":304,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":47,"index":304}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "VariableDeclaration", |
| 12 |
"start":0,"end":6,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":6,"index":6}}, |
| 13 |
"declarations": [ |
| 14 |
{ |
| 15 |
"type": "VariableDeclarator", |
| 16 |
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5}}, |
| 17 |
"id": { |
| 18 |
"type": "Identifier", |
| 19 |
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"C"}, |
| 20 |
"name": "C" |
| 21 |
}, |
| 22 |
"init": null |
| 23 |
} |
| 24 |
], |
| 25 |
"kind": "var" |
| 26 |
}, |
| 27 |
{ |
| 28 |
"type": "ExpressionStatement", |
| 29 |
"start":8,"end":56,"loc":{"start":{"line":3,"column":0,"index":8},"end":{"line":3,"column":48,"index":56}}, |
| 30 |
"expression": { |
| 31 |
"type": "AssignmentExpression", |
| 32 |
"start":8,"end":55,"loc":{"start":{"line":3,"column":0,"index":8},"end":{"line":3,"column":47,"index":55}}, |
| 33 |
"operator": "=", |
| 34 |
"left": { |
| 35 |
"type": "Identifier", |
| 36 |
"start":8,"end":9,"loc":{"start":{"line":3,"column":0,"index":8},"end":{"line":3,"column":1,"index":9},"identifierName":"C"}, |
| 37 |
"name": "C" |
| 38 |
}, |
| 39 |
"right": { |
| 40 |
"type": "ClassExpression", |
| 41 |
"start":12,"end":55,"loc":{"start":{"line":3,"column":4,"index":12},"end":{"line":3,"column":47,"index":55}}, |
| 42 |
"id": null, |
| 43 |
"superClass": null, |
| 44 |
"body": { |
| 45 |
"type": "ClassBody", |
| 46 |
"start":18,"end":55,"loc":{"start":{"line":3,"column":10,"index":18},"end":{"line":3,"column":47,"index":55}}, |
| 47 |
"body": [ |
| 48 |
{ |
| 49 |
"type": "StaticBlock", |
| 50 |
"start":20,"end":53,"loc":{"start":{"line":3,"column":12,"index":20},"end":{"line":3,"column":45,"index":53}}, |
| 51 |
"body": [ |
| 52 |
{ |
| 53 |
"type": "FunctionDeclaration", |
| 54 |
"start":29,"end":51,"loc":{"start":{"line":3,"column":21,"index":29},"end":{"line":3,"column":43,"index":51}}, |
| 55 |
"id": { |
| 56 |
"type": "Identifier", |
| 57 |
"start":38,"end":39,"loc":{"start":{"line":3,"column":30,"index":38},"end":{"line":3,"column":31,"index":39},"identifierName":"f"}, |
| 58 |
"name": "f" |
| 59 |
}, |
| 60 |
"generator": false, |
| 61 |
"async": false, |
| 62 |
"params": [], |
| 63 |
"body": { |
| 64 |
"type": "BlockStatement", |
| 65 |
"start":42,"end":51,"loc":{"start":{"line":3,"column":34,"index":42},"end":{"line":3,"column":43,"index":51}}, |
| 66 |
"body": [ |
| 67 |
{ |
| 68 |
"type": "ExpressionStatement", |
| 69 |
"start":44,"end":49,"loc":{"start":{"line":3,"column":36,"index":44},"end":{"line":3,"column":41,"index":49}}, |
| 70 |
"expression": { |
| 71 |
"type": "Identifier", |
| 72 |
"start":44,"end":49,"loc":{"start":{"line":3,"column":36,"index":44},"end":{"line":3,"column":41,"index":49},"identifierName":"await"}, |
| 73 |
"name": "await" |
| 74 |
} |
| 75 |
} |
| 76 |
], |
| 77 |
"directives": [] |
| 78 |
} |
| 79 |
} |
| 80 |
] |
| 81 |
} |
| 82 |
] |
| 83 |
} |
| 84 |
} |
| 85 |
} |
| 86 |
}, |
| 87 |
{ |
| 88 |
"type": "ExpressionStatement", |
| 89 |
"start":58,"end":104,"loc":{"start":{"line":5,"column":0,"index":58},"end":{"line":5,"column":46,"index":104}}, |
| 90 |
"expression": { |
| 91 |
"type": "AssignmentExpression", |
| 92 |
"start":58,"end":103,"loc":{"start":{"line":5,"column":0,"index":58},"end":{"line":5,"column":45,"index":103}}, |
| 93 |
"operator": "=", |
| 94 |
"left": { |
| 95 |
"type": "Identifier", |
| 96 |
"start":58,"end":59,"loc":{"start":{"line":5,"column":0,"index":58},"end":{"line":5,"column":1,"index":59},"identifierName":"C"}, |
| 97 |
"name": "C" |
| 98 |
}, |
| 99 |
"right": { |
| 100 |
"type": "ClassExpression", |
| 101 |
"start":62,"end":103,"loc":{"start":{"line":5,"column":4,"index":62},"end":{"line":5,"column":45,"index":103}}, |
| 102 |
"id": null, |
| 103 |
"superClass": null, |
| 104 |
"body": { |
| 105 |
"type": "ClassBody", |
| 106 |
"start":68,"end":103,"loc":{"start":{"line":5,"column":10,"index":68},"end":{"line":5,"column":45,"index":103}}, |
| 107 |
"body": [ |
| 108 |
{ |
| 109 |
"type": "StaticBlock", |
| 110 |
"start":70,"end":101,"loc":{"start":{"line":5,"column":12,"index":70},"end":{"line":5,"column":43,"index":101}}, |
| 111 |
"body": [ |
| 112 |
{ |
| 113 |
"type": "FunctionDeclaration", |
| 114 |
"start":79,"end":99,"loc":{"start":{"line":5,"column":21,"index":79},"end":{"line":5,"column":41,"index":99}}, |
| 115 |
"id": { |
| 116 |
"type": "Identifier", |
| 117 |
"start":88,"end":89,"loc":{"start":{"line":5,"column":30,"index":88},"end":{"line":5,"column":31,"index":89},"identifierName":"f"}, |
| 118 |
"name": "f" |
| 119 |
}, |
| 120 |
"generator": false, |
| 121 |
"async": false, |
| 122 |
"params": [ |
| 123 |
{ |
| 124 |
"type": "Identifier", |
| 125 |
"start":90,"end":95,"loc":{"start":{"line":5,"column":32,"index":90},"end":{"line":5,"column":37,"index":95},"identifierName":"await"}, |
| 126 |
"name": "await" |
| 127 |
} |
| 128 |
], |
| 129 |
"body": { |
| 130 |
"type": "BlockStatement", |
| 131 |
"start":97,"end":99,"loc":{"start":{"line":5,"column":39,"index":97},"end":{"line":5,"column":41,"index":99}}, |
| 132 |
"body": [], |
| 133 |
"directives": [] |
| 134 |
} |
| 135 |
} |
| 136 |
] |
| 137 |
} |
| 138 |
] |
| 139 |
} |
| 140 |
} |
| 141 |
} |
| 142 |
}, |
| 143 |
{ |
| 144 |
"type": "ExpressionStatement", |
| 145 |
"start":106,"end":156,"loc":{"start":{"line":7,"column":0,"index":106},"end":{"line":7,"column":50,"index":156}}, |
| 146 |
"expression": { |
| 147 |
"type": "AssignmentExpression", |
| 148 |
"start":106,"end":155,"loc":{"start":{"line":7,"column":0,"index":106},"end":{"line":7,"column":49,"index":155}}, |
| 149 |
"operator": "=", |
| 150 |
"left": { |
| 151 |
"type": "Identifier", |
| 152 |
"start":106,"end":107,"loc":{"start":{"line":7,"column":0,"index":106},"end":{"line":7,"column":1,"index":107},"identifierName":"C"}, |
| 153 |
"name": "C" |
| 154 |
}, |
| 155 |
"right": { |
| 156 |
"type": "ClassExpression", |
| 157 |
"start":110,"end":155,"loc":{"start":{"line":7,"column":4,"index":110},"end":{"line":7,"column":49,"index":155}}, |
| 158 |
"id": null, |
| 159 |
"superClass": null, |
| 160 |
"body": { |
| 161 |
"type": "ClassBody", |
| 162 |
"start":116,"end":155,"loc":{"start":{"line":7,"column":10,"index":116},"end":{"line":7,"column":49,"index":155}}, |
| 163 |
"body": [ |
| 164 |
{ |
| 165 |
"type": "StaticBlock", |
| 166 |
"start":118,"end":153,"loc":{"start":{"line":7,"column":12,"index":118},"end":{"line":7,"column":47,"index":153}}, |
| 167 |
"body": [ |
| 168 |
{ |
| 169 |
"type": "FunctionDeclaration", |
| 170 |
"start":127,"end":151,"loc":{"start":{"line":7,"column":21,"index":127},"end":{"line":7,"column":45,"index":151}}, |
| 171 |
"id": { |
| 172 |
"type": "Identifier", |
| 173 |
"start":136,"end":137,"loc":{"start":{"line":7,"column":30,"index":136},"end":{"line":7,"column":31,"index":137},"identifierName":"f"}, |
| 174 |
"name": "f" |
| 175 |
}, |
| 176 |
"generator": false, |
| 177 |
"async": false, |
| 178 |
"params": [ |
| 179 |
{ |
| 180 |
"type": "AssignmentPattern", |
| 181 |
"start":138,"end":147,"loc":{"start":{"line":7,"column":32,"index":138},"end":{"line":7,"column":41,"index":147}}, |
| 182 |
"left": { |
| 183 |
"type": "Identifier", |
| 184 |
"start":138,"end":139,"loc":{"start":{"line":7,"column":32,"index":138},"end":{"line":7,"column":33,"index":139},"identifierName":"x"}, |
| 185 |
"name": "x" |
| 186 |
}, |
| 187 |
"right": { |
| 188 |
"type": "Identifier", |
| 189 |
"start":142,"end":147,"loc":{"start":{"line":7,"column":36,"index":142},"end":{"line":7,"column":41,"index":147},"identifierName":"await"}, |
| 190 |
"name": "await" |
| 191 |
} |
| 192 |
} |
| 193 |
], |
| 194 |
"body": { |
| 195 |
"type": "BlockStatement", |
| 196 |
"start":149,"end":151,"loc":{"start":{"line":7,"column":43,"index":149},"end":{"line":7,"column":45,"index":151}}, |
| 197 |
"body": [], |
| 198 |
"directives": [] |
| 199 |
} |
| 200 |
} |
| 201 |
] |
| 202 |
} |
| 203 |
] |
| 204 |
} |
| 205 |
} |
| 206 |
} |
| 207 |
}, |
| 208 |
{ |
| 209 |
"type": "ExpressionStatement", |
| 210 |
"start":158,"end":213,"loc":{"start":{"line":9,"column":0,"index":158},"end":{"line":9,"column":55,"index":213}}, |
| 211 |
"expression": { |
| 212 |
"type": "AssignmentExpression", |
| 213 |
"start":158,"end":212,"loc":{"start":{"line":9,"column":0,"index":158},"end":{"line":9,"column":54,"index":212}}, |
| 214 |
"operator": "=", |
| 215 |
"left": { |
| 216 |
"type": "Identifier", |
| 217 |
"start":158,"end":159,"loc":{"start":{"line":9,"column":0,"index":158},"end":{"line":9,"column":1,"index":159},"identifierName":"C"}, |
| 218 |
"name": "C" |
| 219 |
}, |
| 220 |
"right": { |
| 221 |
"type": "ClassExpression", |
| 222 |
"start":162,"end":212,"loc":{"start":{"line":9,"column":4,"index":162},"end":{"line":9,"column":54,"index":212}}, |
| 223 |
"id": null, |
| 224 |
"superClass": null, |
| 225 |
"body": { |
| 226 |
"type": "ClassBody", |
| 227 |
"start":168,"end":212,"loc":{"start":{"line":9,"column":10,"index":168},"end":{"line":9,"column":54,"index":212}}, |
| 228 |
"body": [ |
| 229 |
{ |
| 230 |
"type": "StaticBlock", |
| 231 |
"start":170,"end":210,"loc":{"start":{"line":9,"column":12,"index":170},"end":{"line":9,"column":52,"index":210}}, |
| 232 |
"body": [ |
| 233 |
{ |
| 234 |
"type": "FunctionDeclaration", |
| 235 |
"start":179,"end":208,"loc":{"start":{"line":9,"column":21,"index":179},"end":{"line":9,"column":50,"index":208}}, |
| 236 |
"id": { |
| 237 |
"type": "Identifier", |
| 238 |
"start":188,"end":189,"loc":{"start":{"line":9,"column":30,"index":188},"end":{"line":9,"column":31,"index":189},"identifierName":"f"}, |
| 239 |
"name": "f" |
| 240 |
}, |
| 241 |
"generator": false, |
| 242 |
"async": false, |
| 243 |
"params": [ |
| 244 |
{ |
| 245 |
"type": "ObjectPattern", |
| 246 |
"start":190,"end":204,"loc":{"start":{"line":9,"column":32,"index":190},"end":{"line":9,"column":46,"index":204}}, |
| 247 |
"properties": [ |
| 248 |
{ |
| 249 |
"type": "ObjectProperty", |
| 250 |
"start":192,"end":202,"loc":{"start":{"line":9,"column":34,"index":192},"end":{"line":9,"column":44,"index":202}}, |
| 251 |
"computed": true, |
| 252 |
"key": { |
| 253 |
"type": "Identifier", |
| 254 |
"start":193,"end":198,"loc":{"start":{"line":9,"column":35,"index":193},"end":{"line":9,"column":40,"index":198},"identifierName":"await"}, |
| 255 |
"name": "await" |
| 256 |
}, |
| 257 |
"method": false, |
| 258 |
"shorthand": false, |
| 259 |
"value": { |
| 260 |
"type": "Identifier", |
| 261 |
"start":201,"end":202,"loc":{"start":{"line":9,"column":43,"index":201},"end":{"line":9,"column":44,"index":202},"identifierName":"x"}, |
| 262 |
"name": "x" |
| 263 |
} |
| 264 |
} |
| 265 |
] |
| 266 |
} |
| 267 |
], |
| 268 |
"body": { |
| 269 |
"type": "BlockStatement", |
| 270 |
"start":206,"end":208,"loc":{"start":{"line":9,"column":48,"index":206},"end":{"line":9,"column":50,"index":208}}, |
| 271 |
"body": [], |
| 272 |
"directives": [] |
| 273 |
} |
| 274 |
} |
| 275 |
] |
| 276 |
} |
| 277 |
] |
| 278 |
} |
| 279 |
} |
| 280 |
}, |
| 281 |
"trailingComments": [ |
| 282 |
{ |
| 283 |
"type": "CommentLine", |
| 284 |
"value": " await in function expression is allowed", |
| 285 |
"start":214,"end":256,"loc":{"start":{"line":10,"column":0,"index":214},"end":{"line":10,"column":42,"index":256}} |
| 286 |
} |
| 287 |
] |
| 288 |
}, |
| 289 |
{ |
| 290 |
"type": "ExpressionStatement", |
| 291 |
"start":257,"end":304,"loc":{"start":{"line":11,"column":0,"index":257},"end":{"line":11,"column":47,"index":304}}, |
| 292 |
"expression": { |
| 293 |
"type": "AssignmentExpression", |
| 294 |
"start":257,"end":303,"loc":{"start":{"line":11,"column":0,"index":257},"end":{"line":11,"column":46,"index":303}}, |
| 295 |
"operator": "=", |
| 296 |
"left": { |
| 297 |
"type": "Identifier", |
| 298 |
"start":257,"end":258,"loc":{"start":{"line":11,"column":0,"index":257},"end":{"line":11,"column":1,"index":258},"identifierName":"C"}, |
| 299 |
"name": "C" |
| 300 |
}, |
| 301 |
"right": { |
| 302 |
"type": "ClassExpression", |
| 303 |
"start":261,"end":303,"loc":{"start":{"line":11,"column":4,"index":261},"end":{"line":11,"column":46,"index":303}}, |
| 304 |
"id": null, |
| 305 |
"superClass": null, |
| 306 |
"body": { |
| 307 |
"type": "ClassBody", |
| 308 |
"start":267,"end":303,"loc":{"start":{"line":11,"column":10,"index":267},"end":{"line":11,"column":46,"index":303}}, |
| 309 |
"body": [ |
| 310 |
{ |
| 311 |
"type": "StaticBlock", |
| 312 |
"start":269,"end":301,"loc":{"start":{"line":11,"column":12,"index":269},"end":{"line":11,"column":44,"index":301}}, |
| 313 |
"body": [ |
| 314 |
{ |
| 315 |
"type": "ExpressionStatement", |
| 316 |
"start":278,"end":299,"loc":{"start":{"line":11,"column":21,"index":278},"end":{"line":11,"column":42,"index":299}}, |
| 317 |
"expression": { |
| 318 |
"type": "FunctionExpression", |
| 319 |
"start":279,"end":298,"loc":{"start":{"line":11,"column":22,"index":279},"end":{"line":11,"column":41,"index":298}}, |
| 320 |
"id": { |
| 321 |
"type": "Identifier", |
| 322 |
"start":288,"end":293,"loc":{"start":{"line":11,"column":31,"index":288},"end":{"line":11,"column":36,"index":293},"identifierName":"await"}, |
| 323 |
"name": "await" |
| 324 |
}, |
| 325 |
"generator": false, |
| 326 |
"async": false, |
| 327 |
"params": [], |
| 328 |
"body": { |
| 329 |
"type": "BlockStatement", |
| 330 |
"start":296,"end":298,"loc":{"start":{"line":11,"column":39,"index":296},"end":{"line":11,"column":41,"index":298}}, |
| 331 |
"body": [], |
| 332 |
"directives": [] |
| 333 |
}, |
| 334 |
"extra": { |
| 335 |
"parenthesized": true, |
| 336 |
"parenStart": 278 |
| 337 |
} |
| 338 |
} |
| 339 |
} |
| 340 |
] |
| 341 |
} |
| 342 |
] |
| 343 |
} |
| 344 |
} |
| 345 |
}, |
| 346 |
"leadingComments": [ |
| 347 |
{ |
| 348 |
"type": "CommentLine", |
| 349 |
"value": " await in function expression is allowed", |
| 350 |
"start":214,"end":256,"loc":{"start":{"line":10,"column":0,"index":214},"end":{"line":10,"column":42,"index":256}} |
| 351 |
} |
| 352 |
] |
| 353 |
} |
| 354 |
], |
| 355 |
"directives": [] |
| 356 |
}, |
| 357 |
"comments": [ |
| 358 |
{ |
| 359 |
"type": "CommentLine", |
| 360 |
"value": " await in function expression is allowed", |
| 361 |
"start":214,"end":256,"loc":{"start":{"line":10,"column":0,"index":214},"end":{"line":10,"column":42,"index":256}} |
| 362 |
} |
| 363 |
] |
| 364 |
} |