2015-07-25 05:19:32 +01:00

227 lines
6.2 KiB
JSON

{
"type": "Program",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "o",
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 5
}
}
},
"init": {
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
}
}
},
"value": {
"type": "Literal",
"value": 1,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 14
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 14
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "foo",
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 25
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "promise",
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 33
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AwaitExpression",
"argument": {
"type": "Identifier",
"name": "promise",
"loc": {
"start": {
"line": 1,
"column": 43
},
"end": {
"line": 1,
"column": 50
}
}
},
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 50
}
}
},
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 50
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 35
},
"end": {
"line": 1,
"column": 52
}
}
},
"generator": false,
"expression": false,
"async": true,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 52
}
}
},
"kind": "init",
"method": true,
"shorthand": false,
"computed": false,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 52
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 54
}
}
},
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 54
}
}
}
],
"kind": "var",
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 54
}
}
}
]
}