summaryrefslogtreecommitdiff
path: root/src/async-functions/syntax/async-class-decl-method.template
blob: 812e90199a43e305f0b14cb113edce76e54cbd46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
path: language/statements/class/async-method-
name: Async method as a ClassDeclaration element
esid: prod-AsyncMethod
info: |
  ClassElement :
    MethodDefinition

  MethodDefinition :
    AsyncMethod

  Async Function Definitions

  AsyncMethod :
    async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
features: [async-functions]
---*/

class C { async method() {
    /*{ body }*/
}}