165 lines
4.0 KiB
JSON
165 lines
4.0 KiB
JSON
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "Foo",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"body": [
|
|
{
|
|
"type": "MethodDefinition",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "bar",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "promise",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 29
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "promise",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 46
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": true,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"kind": "method",
|
|
"static": false,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 48
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 50
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |