| 1 |
// Copyright (C) 2017 André Bargull. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
path: language/statements/class/async-method- |
| 6 |
name: Async method as a ClassDeclaration element |
| 7 |
esid: prod-AsyncMethod |
| 8 |
info: | |
| 9 |
ClassElement : |
| 10 |
MethodDefinition |
| 11 |
|
| 12 |
MethodDefinition : |
| 13 |
AsyncMethod |
| 14 |
|
| 15 |
Async Function Definitions |
| 16 |
|
| 17 |
AsyncMethod : |
| 18 |
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } |
| 19 |
features: [async-functions] |
| 20 |
---*/ |
| 21 |
|
| 22 |
class C { async method() { |
| 23 |
/*{ body }*/ |
| 24 |
}} |