Home
last modified time | relevance | path

Searched full:async (Results 1 – 25 of 4970) sorted by relevance

12345678910>>...199

/third_party/typescript/tests/baselines/reference/user/
Dasync.log3 node_modules/async/all.js(32,12): error TS2304: Cannot find name 'AsyncFunction'.
4 node_modules/async/all.js(49,20): error TS2695: Left side of comma operator is unused and has no si…
5 node_modules/async/all.js(49,46): error TS2695: Left side of comma operator is unused and has no si…
6 node_modules/async/allLimit.js(28,9): error TS1003: Identifier expected.
7 node_modules/async/allLimit.js(33,12): error TS2304: Cannot find name 'AsyncFunction'.
8 node_modules/async/allLimit.js(41,20): error TS2695: Left side of comma operator is unused and has …
9 node_modules/async/allLimit.js(41,51): error TS2695: Left side of comma operator is unused and has …
10 node_modules/async/allSeries.js(24,9): error TS1003: Identifier expected.
11 node_modules/async/allSeries.js(28,12): error TS2304: Cannot find name 'AsyncFunction'.
12 node_modules/async/allSeries.js(36,20): error TS2695: Left side of comma operator is unused and has…
[all …]
/third_party/typescript_eslint/packages/eslint-plugin/tests/rules/
Drequire-await.test.ts17 // Non-async function declaration
23 // Non-async function expression
29 // Non-async arrow function expression (concise-body)
33 // Non-async arrow function expression (block-body)
39 // Non-async function that returns a promise
52 // Async function declaration with await
54 async function numberOne(): Promise<number> {
58 // Async function expression with await
60 const numberOne = async function (): Promise<number> {
64 // Async arrow function expression with await (concise-body)
[all …]
Dreturn-await.test.ts29 async function test() {
34 async function test() {
39 'const test = async () => 1;',
41 async function test() {
46 async function test() {
57 async function test() {
80 async function test() {
91 code: 'const test = async () => 1;',
96 async function test() {
104 async function test() {
[all …]
/third_party/typescript/tests/baselines/reference/
DasyncAwait_es2017.js7 async function f0() { }
8 async function f1(): Promise<void> { }
9 async function f3(): MyPromise<void> { }
11 let f4 = async function() { }
12 let f5 = async function(): Promise<void> { }
13 let f6 = async function(): MyPromise<void> { }
15 let f7 = async () => { };
16 let f8 = async (): Promise<void> => { };
17 let f9 = async (): MyPromise<void> => { };
18 let f10 = async () => p;
[all …]
DasyncAwaitIsolatedModules_es2017.js7 async function f0() { }
8 async function f1(): Promise<void> { }
9 async function f3(): MyPromise<void> { }
11 let f4 = async function() { }
12 let f5 = async function(): Promise<void> { }
13 let f6 = async function(): MyPromise<void> { }
15 let f7 = async () => { };
16 let f8 = async (): Promise<void> => { };
17 let f9 = async (): MyPromise<void> => { };
18 let f10 = async () => p;
[all …]
Dtypes.asyncGenerators.es2018.2.types2 async function * inferReturnType1() {
9 async function * inferReturnType2() {
17 async function * inferReturnType3() {
30 const assignability1: () => AsyncIterableIterator<number> = async function * () {
32 >async function * () { yield "a";} : () => AsyncGenerator<string, void, undefined>
39 const assignability2: () => AsyncIterableIterator<number> = async function * () {
41 >async function * () { yield* ["a", "b"];} : () => AsyncGenerator<string, void, undefined>
50 const assignability3: () => AsyncIterableIterator<number> = async function * () {
52 >async function * () { yield* (async function * () { yield "a"; })();} : () => AsyncGenerator<st…
54 yield* (async function * () { yield "a"; })();
[all …]
DasyncAwaitIsolatedModules_es5.types1 === tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts ===
11 async function f0() { }
14 async function f1(): Promise<void> { }
17 async function f3(): MyPromise<void> { }
20 let f4 = async function() { }
22 >async function() { } : () => Promise<void>
24 let f5 = async function(): Promise<void> { }
26 >async function(): Promise<void> { } : () => Promise<void>
28 let f6 = async function(): MyPromise<void> { }
30 >async function(): MyPromise<void> { } : () => any
[all …]
DasyncAwaitIsolatedModules_es2017.types1 === tests/cases/conformance/async/es2017/asyncAwaitIsolatedModules_es2017.ts ===
11 async function f0() { }
14 async function f1(): Promise<void> { }
17 async function f3(): MyPromise<void> { }
20 let f4 = async function() { }
22 >async function() { } : () => Promise<void>
24 let f5 = async function(): Promise<void> { }
26 >async function(): Promise<void> { } : () => Promise<void>
28 let f6 = async function(): MyPromise<void> { }
30 >async function(): MyPromise<void> { } : () => any
[all …]
DasyncAwaitIsolatedModules_es6.types1 === tests/cases/conformance/async/es6/asyncAwaitIsolatedModules_es6.ts ===
11 async function f0() { }
14 async function f1(): Promise<void> { }
17 async function f3(): MyPromise<void> { }
20 let f4 = async function() { }
22 >async function() { } : () => Promise<void>
24 let f5 = async function(): Promise<void> { }
26 >async function(): Promise<void> { } : () => Promise<void>
28 let f6 = async function(): MyPromise<void> { }
30 >async function(): MyPromise<void> { } : () => any
[all …]
DasyncFunctionDeclaration15_es6.errors.txt1 …s/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts(6,23): error …
2 tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts(6,23): err…
3 …s/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts(7,23): error …
4 …s/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts(8,23): error …
5 tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts(8,23): err…
6 …s/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts(9,23): error …
7 …/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts(10,23): error …
8 …/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts(17,16): error …
9 tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts(23,25): er…
12 ==== tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts (9 er…
[all …]
DasyncAwait_es5.types1 === tests/cases/conformance/async/es5/asyncAwait_es5.ts ===
15 async function f0() { }
18 async function f1(): Promise<void> { }
21 async function f3(): MyPromise<void> { }
24 let f4 = async function() { }
26 >async function() { } : () => Promise<void>
28 let f5 = async function(): Promise<void> { }
30 >async function(): Promise<void> { } : () => Promise<void>
32 let f6 = async function(): MyPromise<void> { }
34 >async function(): MyPromise<void> { } : () => MyPromise<void>
[all …]
DasyncAwait_es2017.types1 === tests/cases/conformance/async/es2017/asyncAwait_es2017.ts ===
15 async function f0() { }
18 async function f1(): Promise<void> { }
21 async function f3(): MyPromise<void> { }
24 let f4 = async function() { }
26 >async function() { } : () => Promise<void>
28 let f5 = async function(): Promise<void> { }
30 >async function(): Promise<void> { } : () => Promise<void>
32 let f6 = async function(): MyPromise<void> { }
34 >async function(): MyPromise<void> { } : () => MyPromise<void>
[all …]
DasyncAwait_es6.types1 === tests/cases/conformance/async/es6/asyncAwait_es6.ts ===
15 async function f0() { }
18 async function f1(): Promise<void> { }
21 async function f3(): MyPromise<void> { }
24 let f4 = async function() { }
26 >async function() { } : () => Promise<void>
28 let f5 = async function(): Promise<void> { }
30 >async function(): Promise<void> { } : () => Promise<void>
32 let f6 = async function(): MyPromise<void> { }
34 >async function(): MyPromise<void> { } : () => MyPromise<void>
[all …]
/third_party/jerryscript/tests/jerry/es2015/
Dfunction-async1.js15 /* This test checks async modifiers (nothing else). */
26 /* Async functions */
28 async function f(a) {
34 f = async function (a) { return a }
37 f = (async function (a) { return a })
40 f = [async function (a) { return a }]
44 async => {}
45 async async => {}
46 (async => {})
47 (async async => {})
[all …]
Dfunction-await1.js27 check_syntax_error("(async function await() {})")
28 check_syntax_error("(async function *await() {})")
29 check_syntax_error("async function f(await) {}")
30 check_syntax_error("(async function f(await) {})")
31 check_syntax_error("async function f(a = await new Promise) {}")
32 check_syntax_error("async function f() { function await() {} }")
33 check_syntax_error("async await => 0");
34 check_syntax_error("async (await) => 0");
35 check_syntax_error("async function f() { await () => 0 }");
36 check_syntax_error("async (a) => a\\u0077ait a");
[all …]
/third_party/typescript/tests/cases/conformance/types/asyncGenerators/
Dtypes.asyncGenerators.es2018.1.ts4 async function * inferReturnType1() {
6 async function * inferReturnType2() {
9 async function * inferReturnType3() {
12 async function * inferReturnType4() {
15 async function * inferReturnType5() {
19 async function * inferReturnType6() {
22 async function * inferReturnType7() {
25 async function * inferReturnType8() {
26 yield* (async function * () { yield 1; })();
28 const assignability1: () => AsyncIterableIterator<number> = async function * () {
[all …]
Dtypes.asyncGenerators.es2018.2.ts4 async function * inferReturnType1() {
7 async function * inferReturnType2() {
10 async function * inferReturnType3() {
13 const assignability1: () => AsyncIterableIterator<number> = async function * () {
16 const assignability2: () => AsyncIterableIterator<number> = async function * () {
19 const assignability3: () => AsyncIterableIterator<number> = async function * () {
20 yield* (async function * () { yield "a"; })();
22 const assignability4: () => AsyncIterable<number> = async function * () {
25 const assignability5: () => AsyncIterable<number> = async function * () {
28 const assignability6: () => AsyncIterable<number> = async function * () {
[all …]
/third_party/python/Lib/test/
Dtest_coroutines.py82 """async def foo():
86 """async def foo():
90 """async def foo(a=await something()):
94 """async def foo(a:await something()):
98 """async def foo():
100 [i async for i in els]
103 """async def foo():
108 """async def foo():
111 async for b in els]
114 """async def foo():
[all …]
Dtest_contextlib_async.py13 """Decorator to turn an async function into a test case."""
30 async def test_enter(self):
32 async def __aexit__(self, *args):
38 async with manager as context:
42 async def test_async_gen_propagates_generator_exit(self):
46 async def ctx():
49 async def gen():
50 async with ctx():
56 async with ctx():
57 async for val in gen():
[all …]
/third_party/typescript/tests/cases/conformance/async/es6/
DasyncWithVarShadowing_es6.ts6 async function fn1(x) {
10 async function fn2(x) {
14 async function fn3(x) {
18 async function fn4(x) {
22 async function fn5(x) {
26 async function fn6(x) {
30 async function fn7(x) {
34 async function fn8(x) {
38 async function fn9(x) {
42 async function fn10(x) {
[all …]
DasyncAwait_es6.ts7 async function f0() { }
8 async function f1(): Promise<void> { }
9 async function f3(): MyPromise<void> { }
11 let f4 = async function() { }
12 let f5 = async function(): Promise<void> { }
13 let f6 = async function(): MyPromise<void> { }
15 let f7 = async () => { };
16 let f8 = async (): Promise<void> => { };
17 let f9 = async (): MyPromise<void> => { };
18 let f10 = async () => p;
[all …]
/third_party/typescript/tests/cases/compiler/
Des5-asyncFunctionBinaryExpressions.ts7 async function binaryPlus0() {
11 async function binaryPlus1() {
15 async function binaryLogicalAnd0() {
19 async function binaryLogicalAnd1() {
23 async function binaryAssignment0() {
27 async function binaryAssignment1() {
31 async function binaryAssignment2() {
35 async function binaryAssignment3() {
39 async function binaryAssignment4() {
43 async function binaryAssignment5() {
[all …]
/third_party/typescript/tests/cases/fourslash/
DcodeFixReturnTypeInAsyncFunction_fixAll.ts8 ////async function f1(): number {}
9 ////async function f2(): boolean {}
10 ////async function f3(): string {}
11 ////async function f4(): void {}
12 ////async function f5(): null {}
13 ////async function f6(): undefined {}
14 ////async function f7(): any {}
15 ////async function f8(): symbol {}
17 ////async function f9(): Foo<number> {}
18 ////async function f10(): Bar {}
[all …]
/third_party/typescript/tests/cases/conformance/async/es2017/
DasyncAwait_es2017.ts7 async function f0() { }
8 async function f1(): Promise<void> { }
9 async function f3(): MyPromise<void> { }
11 let f4 = async function() { }
12 let f5 = async function(): Promise<void> { }
13 let f6 = async function(): MyPromise<void> { }
15 let f7 = async () => { };
16 let f8 = async (): Promise<void> => { };
17 let f9 = async (): MyPromise<void> => { };
18 let f10 = async () => p;
[all …]
/third_party/typescript/tests/cases/conformance/async/es5/
DasyncAwait_es5.ts8 async function f0() { }
9 async function f1(): Promise<void> { }
10 async function f3(): MyPromise<void> { }
12 let f4 = async function() { }
13 let f5 = async function(): Promise<void> { }
14 let f6 = async function(): MyPromise<void> { }
16 let f7 = async () => { };
17 let f8 = async (): Promise<void> => { };
18 let f9 = async (): MyPromise<void> => { };
19 let f10 = async () => p;
[all …]

12345678910>>...199