| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}}, |
| 4 | "program": { |
| 5 | "type": "Program", |
| 6 | "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}}, |
| 7 | "sourceType": "script", |
| 8 | "interpreter": null, |
| 9 | "body": [ |
| 10 | { |
| 11 | "type": "VariableDeclaration", |
| 12 | "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}}, |
| 13 | "declarations": [ |
| 14 | { |
| 15 | "type": "VariableDeclarator", |
| 16 | "start":4,"end":54,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":54,"index":54}}, |
| 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":"o"}, |
| 20 | "name": "o" |
| 21 | }, |
| 22 | "init": { |
| 23 | "type": "ObjectExpression", |
| 24 | "start":8,"end":54,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":54,"index":54}}, |
| 25 | "properties": [ |
| 26 | { |
| 27 | "type": "ObjectProperty", |
| 28 | "start":10,"end":14,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":14,"index":14}}, |
| 29 | "method": false, |
| 30 | "key": { |
| 31 | "type": "Identifier", |
| 32 | "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"a"}, |
| 33 | "name": "a" |
| 34 | }, |
| 35 | "computed": false, |
| 36 | "shorthand": false, |
| 37 | "value": { |
| 38 | "type": "NumericLiteral", |
| 39 | "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14}}, |
| 40 | "extra": { |
| 41 | "rawValue": 1, |
| 42 | "raw": "1" |
| 43 | }, |
| 44 | "value": 1 |
| 45 | } |
| 46 | }, |
| 47 | { |
| 48 | "type": "ObjectMethod", |
| 49 | "start":16,"end":52,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":52,"index":52}}, |
| 50 | "method": true, |
| 51 | "key": { |
| 52 | "type": "Identifier", |
| 53 | "start":22,"end":25,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":25,"index":25},"identifierName":"foo"}, |
| 54 | "name": "foo" |
| 55 | }, |
| 56 | "computed": false, |
| 57 | "kind": "method", |
| 58 | "id": null, |
| 59 | "generator": false, |
| 60 | "async": true, |
| 61 | "params": [ |
| 62 | { |
| 63 | "type": "Identifier", |
| 64 | "start":26,"end":33,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":33,"index":33},"identifierName":"promise"}, |
| 65 | "name": "promise" |
| 66 | } |
| 67 | ], |
| 68 | "body": { |
| 69 | "type": "BlockStatement", |
| 70 | "start":35,"end":52,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":52,"index":52}}, |
| 71 | "body": [ |
| 72 | { |
| 73 | "type": "ExpressionStatement", |
| 74 | "start":37,"end":50,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":50,"index":50}}, |
| 75 | "expression": { |
| 76 | "type": "AwaitExpression", |
| 77 | "start":37,"end":50,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":50,"index":50}}, |
| 78 | "argument": { |
| 79 | "type": "Identifier", |
| 80 | "start":43,"end":50,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":50,"index":50},"identifierName":"promise"}, |
| 81 | "name": "promise" |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | ], |
| 86 | "directives": [] |
| 87 | } |
| 88 | } |
| 89 | ] |
| 90 | } |
| 91 | } |
| 92 | ], |
| 93 | "kind": "var" |
| 94 | } |
| 95 | ], |
| 96 | "directives": [] |
| 97 | } |
| 98 | } |