File: emitter.asyncGenerators.functionExpressions.es5.symbols

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (48 lines) | stat: -rw-r--r-- 1,100 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//// [tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.functionExpressions.es5.ts] ////

=== F1.ts ===
const f1 = async function * () {
>f1 : Symbol(f1, Decl(F1.ts, 0, 5))
}
=== F2.ts ===
const f2 = async function * () {
>f2 : Symbol(f2, Decl(F2.ts, 0, 5))

    const x = yield;
>x : Symbol(x, Decl(F2.ts, 1, 9))
}
=== F3.ts ===
const f3 = async function * () {
>f3 : Symbol(f3, Decl(F3.ts, 0, 5))

    const x = yield 1;
>x : Symbol(x, Decl(F3.ts, 1, 9))
}
=== F4.ts ===
const f4 = async function * () {
>f4 : Symbol(f4, Decl(F4.ts, 0, 5))

    const x = yield* [1];
>x : Symbol(x, Decl(F4.ts, 1, 9))
}
=== F5.ts ===
const f5 = async function * () {
>f5 : Symbol(f5, Decl(F5.ts, 0, 5))

    const x = yield* (async function*() { yield 1; })();
>x : Symbol(x, Decl(F5.ts, 1, 9))
}
=== F6.ts ===
const f6 = async function * () {
>f6 : Symbol(f6, Decl(F6.ts, 0, 5))

    const x = await 1;
>x : Symbol(x, Decl(F6.ts, 1, 9))
}
=== F7.ts ===
const f7 = async function * () {
>f7 : Symbol(f7, Decl(F7.ts, 0, 5))

    return 1;
}