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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
|
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/functionExpressionIsOk.ts ===
const f1 = async function * f() {
>f1 : () => AsyncIterableIterator<any>
>async function * f() {} : () => AsyncIterableIterator<any>
>f : () => AsyncIterableIterator<any>
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/awaitNameIsError.ts ===
const f2 = async function * await() {
>f2 : () => any
>async function * : () => any
>await : any
>() {} : () => void
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/yieldNameIsError.ts ===
const f3 = async function * yield() {
>f3 : () => any
>async function * : () => any
>yield : any
>() {} : () => void
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/awaitParameterIsError.ts ===
const f4 = async function * (await) {
>f4 : () => any
>async function * ( : () => any
>await : any
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/yieldParameterIsError.ts ===
const f5 = async function * (yield) {
>f5 : () => any
>async function * ( : () => any
>yield : any
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/awaitInParameterInitializerIsError.ts ===
const f6 = async function * (a = await 1) {
>f6 : (a?: number) => AsyncIterableIterator<any>
>async function * (a = await 1) {} : (a?: number) => AsyncIterableIterator<any>
>a : number
>await 1 : 1
>1 : 1
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/yieldInParameterInitializerIsError.ts ===
const f7 = async function * (a = yield) {
>f7 : (a?: any) => AsyncIterableIterator<any>
>async function * (a = yield) {} : (a?: any) => AsyncIterableIterator<any>
>a : any
>yield : any
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/nestedAsyncGeneratorIsOk.ts ===
const f8 = async function * () {
>f8 : () => AsyncIterableIterator<any>
>async function * () { async function * g() { }} : () => AsyncIterableIterator<any>
async function * g() {
>g : () => AsyncIterableIterator<any>
}
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/nestedFunctionDeclarationNamedYieldIsError.ts ===
const f9 = async function * () {
>f9 : () => AsyncIterableIterator<() => void>
>async function * () { function yield() { }} : () => AsyncIterableIterator<() => void>
function yield() {
> : () => any
>yield() { } : any
>() { } : () => void
}
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/nestedFunctionExpressionNamedYieldIsError.ts ===
const f10 = async function * () {
>f10 : () => AsyncIterableIterator<() => void>
>async function * () { const x = function yield() { };} : () => AsyncIterableIterator<() => void>
const x = function yield() {
>x : () => any
>function : () => any
>yield() { } : any
>() { } : () => void
};
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/nestedFunctionDeclarationNamedAwaitIsError.ts ===
const f11 = async function * () {
>f11 : () => AsyncIterableIterator<any>
>async function * () { function await() { }} : () => AsyncIterableIterator<any>
function await() {
> : () => any
>await() : any
>() : any
> : any
}
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/nestedFunctionExpressionNamedAwaitIsError.ts ===
const f12 = async function * () {
>f12 : () => AsyncIterableIterator<any>
>async function * () { const x = function await() { };} : () => AsyncIterableIterator<any>
const x = function await() {
>x : () => any
>function : () => any
>await() : any
>() : any
> : any
};
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/yieldIsOk.ts ===
const f13 = async function * () {
>f13 : () => AsyncIterableIterator<any>
>async function * () { yield;} : () => AsyncIterableIterator<any>
yield;
>yield : any
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/yieldWithValueIsOk.ts ===
const f14 = async function * () {
>f14 : () => AsyncIterableIterator<number>
>async function * () { yield 1;} : () => AsyncIterableIterator<number>
yield 1;
>yield 1 : any
>1 : 1
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/yieldStarMissingValueIsError.ts ===
const f15 = async function * () {
>f15 : () => AsyncIterableIterator<any>
>async function * () { yield *;} : () => AsyncIterableIterator<any>
yield *;
>yield * : any
> : any
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/yieldStarWithValueIsOk.ts ===
const f16 = async function * () {
>f16 : () => AsyncIterableIterator<any>
>async function * () { yield * [];} : () => AsyncIterableIterator<any>
yield * [];
>yield * [] : any
>[] : undefined[]
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/awaitWithValueIsOk.ts ===
const f17 = async function * () {
>f17 : () => AsyncIterableIterator<any>
>async function * () { await 1;} : () => AsyncIterableIterator<any>
await 1;
>await 1 : 1
>1 : 1
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/awaitMissingValueIsError.ts ===
const f18 = async function * () {
>f18 : () => AsyncIterableIterator<any>
>async function * () { await;} : () => AsyncIterableIterator<any>
await;
>await : any
> : any
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/awaitAsTypeIsOk.ts ===
interface await {}
const f19 = async function * () {
>f19 : () => AsyncIterableIterator<any>
>async function * () { let x: await;} : () => AsyncIterableIterator<any>
let x: await;
>x : await
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/yieldAsTypeIsOk.ts ===
interface yield {}
const f20 = async function * () {
>f20 : () => AsyncIterableIterator<any>
>async function * () { let x: yield;} : () => AsyncIterableIterator<any>
let x: yield;
>x : yield
};
=== tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/yieldInNestedComputedPropertyIsOk.ts ===
const f21 = async function *() {
>f21 : () => AsyncIterableIterator<any>
>async function *() { const x = { [yield]: 1 };} : () => AsyncIterableIterator<any>
const x = { [yield]: 1 };
>x : { [x: number]: number; }
>{ [yield]: 1 } : { [x: number]: number; }
>[yield] : number
>yield : any
>1 : 1
};
|