Skip to content
Snippets Groups Projects
Commit 57fea22f authored by jbhoosreddy's avatar jbhoosreddy
Browse files

add async function syntax

parent 057cd993
No related branches found
No related tags found
No related merge requests found
Showing
with 104 additions and 8 deletions
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/statements/class/async-private-method-
name: Async private method as a ClassDeclaration element
esid: prod-AsyncMethod
info: |
ClassElement :
PrivateMethodDefinition
MethodDefinition :
AsyncMethod
Async Function Definitions
AsyncMethod :
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
features: [async-functions, class-methods-private]
---*/
class C { async #method() {
/*{ body }*/
}}
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/statements/class/async-private-method-static-
name: Static async private method as a ClassDeclaration element
esid: prod-AsyncMethod
info: |
ClassElement :
static PrivateMethodDefinition
MethodDefinition :
AsyncMethod
Async Function Definitions
AsyncMethod :
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
features: [async-functions, class-methods-private]
---*/
class C { static async #method() {
/*{ body }*/
}}
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/expressions/class/async-private-method-
name: Async private method as a ClassExpression element
esid: prod-AsyncMethod
info: |
ClassElement :
PrivateMethodDefinition
MethodDefinition :
AsyncMethod
Async Function Definitions
AsyncMethod :
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
features: [async-functions, class-methods-private]
---*/
var C = class { async #method() {
/*{ body }*/
}};
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/expressions/class/async-private-method-static-
name: Static private async method as a ClassExpression element
esid: prod-AsyncMethod
info: |
ClassElement :
static PrivateMethodDefinition
MethodDefinition :
AsyncMethod
Async Function Definitions
AsyncMethod :
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
features: [async-functions, class-methods-private]
---*/
var C = class { static async #method() {
/*{ body }*/
}};
// Copyright (C) 2018 Jaideep Bhoosreddy. All rights reserved.
// Copyright (C) 2018 Bloomberb LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
......
// Copyright (C) 2018 Jaideep Bhoosreddy. All rights reserved.
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
......
// Copyright (C) 2018 Jaideep Bhoosreddy. All rights reserved.
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
......
// Copyright (C) 2018 Jaideep Bhoosreddy. All rights reserved.
// Copyright (C) 2018 Bloomberg L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
......
// Copyright (C) 2018 Jaideep Bhoosreddy. All rights reserved.
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/statements/class/gen-method-
......
// Copyright (C) 2018 Jaideep Bhoosreddy. All rights reserved.
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/statements/class/gen-private-method-static-
......
// Copyright (C) 2018 Jaideep Bhoosreddy. All rights reserved.
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/expressions/class/gen-private-method-
......
// Copyright (C) 2018 Jaideep Bhoosreddy. All rights reserved.
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/expressions/class/gen-private-method-static-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment