Files
babel/test/fixtures/experimental/uncategorised/18/expected.json
2015-07-25 05:19:32 +01:00

106 lines
2.1 KiB
JSON

{
"type": "Program",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "foo",
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 18
}
}
},
"params": [
{
"type": "Identifier",
"name": "promise",
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 26
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AwaitExpression",
"argument": {
"type": "Identifier",
"name": "promise",
"loc": {
"start": {
"line": 1,
"column": 36
},
"end": {
"line": 1,
"column": 43
}
}
},
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 43
}
}
},
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 44
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 28
},
"end": {
"line": 1,
"column": 46
}
}
},
"generator": false,
"expression": false,
"async": true,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 46
}
}
}
]
}