/third_party/typescript/tests/baselines/reference/ |
D | types.asyncGenerators.es2018.2.types | 5 yield* {}; 6 >yield* {} : any 12 yield* inferReturnType2(); 13 >yield* inferReturnType2() : any 20 yield* Promise.resolve([1, 2]); 21 >yield* Promise.resolve([1, 2]) : any 32 >async function * () { yield "a";} : () => AsyncGenerator<string, void, undefined> 34 yield "a"; 35 >yield "a" : undefined 41 >async function * () { yield* ["a", "b"];} : () => AsyncGenerator<string, void, undefined> [all …]
|
D | types.asyncGenerators.es2018.1.types | 8 yield; 9 >yield : any 14 yield 1; 15 >yield 1 : any 21 yield Promise.resolve(1); 22 >yield Promise.resolve(1) : any 32 yield 1; 33 >yield 1 : any 36 yield Promise.resolve(2); 37 >yield Promise.resolve(2) : any [all …]
|
D | generatorImplicitAny.types | 16 const value = yield; // error: implicit any 18 >yield : any 24 const value: string = yield; // ok, contextually typed by `value`. 26 >yield : any 32 yield; // ok, result is unused 33 >yield : any 35 yield, noop(); // ok, result is unused 36 >yield, noop() : void 37 >yield : any 41 noop(), yield, noop(); // ok, result is unused [all …]
|
D | generatorReturnTypeInferenceNonStrict.types | 15 // 'yield' iteration type inference 19 yield; 20 >yield : any 26 yield 1; 27 >yield 1 : any 36 yield* []; 37 >yield* [] : any 44 yield* iterableIterator; 45 >yield* iterableIterator : any 52 const x = yield* generator; [all …]
|
D | generatorReturnTypeInference.types | 15 // 'yield' iteration type inference 19 yield; 20 >yield : any 26 yield 1; 27 >yield 1 : any 34 yield* []; 35 >yield* [] : any 42 yield* iterableIterator; 43 >yield* iterableIterator : any 50 const x = yield* generator; [all …]
|
D | generatorReturnTypeInferenceNonStrict.errors.txt | 1 …,11): error TS7055: 'g001', which lacks return-type annotation, implicitly has an 'any' yield type. 2 …,11): error TS7055: 'g003', which lacks return-type annotation, implicitly has an 'any' yield type. 3 …enerators/generatorReturnTypeInferenceNonStrict.ts(74,15): error TS7057: 'yield' expression implic… 4 …,11): error TS7055: 'g301', which lacks return-type annotation, implicitly has an 'any' yield type. 5 …,11): error TS7055: 'g303', which lacks return-type annotation, implicitly has an 'any' yield type. 6 …,11): error TS7055: 'g310', which lacks return-type annotation, implicitly has an 'any' yield type. 7 …ict.ts(131,10): error TS7025: Generator implicitly has yield type 'any' because it does not yield … 18 // 'yield' iteration type inference 21 !!! error TS7055: 'g001', which lacks return-type annotation, implicitly has an 'any' yield type. 22 yield; [all …]
|
D | generatorReturnTypeInference.errors.txt | 1 tests/cases/conformance/generators/generatorReturnTypeInference.ts(72,15): error TS7057: 'yield' ex… 12 // 'yield' iteration type inference 14 yield; 18 yield 1; 22 yield* []; 26 yield* iterableIterator; 30 const x = yield* generator; 34 yield 1; 35 yield 2; 39 yield never; [all …]
|
D | es5-yieldFunctionObjectLiterals.types | 13 >{ a: 1, b: yield 2, c: 3, } : { a: number; b: any; c: number; } 19 b: yield 2, 21 >yield 2 : any 35 >{ a: 1, [g()]: yield 2, c: 3, } : { [x: string]: any; a: number; c: number… 41 [g()]: yield 2, 45 >yield 2 : any 59 >{ a: 1, b: yield 2, [g()]: 3, c: 4, } : { [x: string]: any; a: numb… 65 b: yield 2, 67 >yield 2 : any 87 >{ a: 1, [g()]: 2, b: yield 3, c: 4, } : { [x: string]: any; a: numb… [all …]
|
D | parser.asyncGenerators.functionExpressions.es2018.types | 16 const f3 = async function * yield() { 18 >async function * yield() {} : () => AsyncGenerator<never, void, unknown> 19 >yield : () => AsyncGenerator<never, void, unknown> 30 const f5 = async function * (yield) { 31 >f5 : (yield: any) => AsyncGenerator<never, void, unknown> 32 >async function * (yield) {} : (yield: any) => AsyncGenerator<never, void, unknown> 33 >yield : any 46 const f7 = async function * (a = yield) { 48 >async function * (a = yield) {} : (a?: any) => AsyncGenerator<never, void, unknown> 50 >yield : any [all …]
|
D | parser.asyncGenerators.functionDeclarations.es2018.types | 10 async function * yield() { 11 >yield : () => AsyncGenerator<never, void, unknown> 19 async function * f5(yield) { 20 >f5 : (yield: any) => AsyncGenerator<never, void, unknown> 21 >yield : any 31 async function * f7(a = yield) { 34 >yield : any 48 function yield() { 49 >yield : () => void 56 const x = function yield() { [all …]
|
D | generatorTypeCheck25.types | 17 >function* () { yield; yield new Bar; yield new Baz; yield *[new Bar]; yield *[new B… 19 yield; 20 >yield : undefined 22 yield new Bar; 23 >yield new Bar : undefined 27 yield new Baz; 28 >yield new Baz : undefined 32 yield *[new Bar]; 33 >yield *[new Bar] : any 38 yield *[new Baz]; [all …]
|
D | emitter.asyncGenerators.functionExpressions.es2015.types | 9 >async function * () { const x = yield;} : () => AsyncGenerator<any, void, unknown> 11 const x = yield; 13 >yield : any 18 >async function * () { const x = yield 1;} : () => AsyncGenerator<number, void, unknown> 20 const x = yield 1; 22 >yield 1 : any 28 >async function * () { const x = yield* [1];} : () => AsyncGenerator<number, void, undefined> 30 const x = yield* [1]; 32 >yield* [1] : any 39 >async function * () { const x = yield* (async function*() { yield 1; })();} : () => AsyncGenera… [all …]
|
D | emitter.asyncGenerators.functionExpressions.es5.types | 9 >async function * () { const x = yield;} : () => AsyncGenerator<any, void, unknown> 11 const x = yield; 13 >yield : any 18 >async function * () { const x = yield 1;} : () => AsyncGenerator<number, void, unknown> 20 const x = yield 1; 22 >yield 1 : any 28 >async function * () { const x = yield* [1];} : () => AsyncGenerator<number, void, undefined> 30 const x = yield* [1]; 32 >yield* [1] : any 39 >async function * () { const x = yield* (async function*() { yield 1; })();} : () => AsyncGenera… [all …]
|
D | emitter.asyncGenerators.functionExpressions.es2018.types | 9 >async function * () { const x = yield;} : () => AsyncGenerator<any, void, unknown> 11 const x = yield; 13 >yield : any 18 >async function * () { const x = yield 1;} : () => AsyncGenerator<number, void, unknown> 20 const x = yield 1; 22 >yield 1 : any 28 >async function * () { const x = yield* [1];} : () => AsyncGenerator<number, void, undefined> 30 const x = yield* [1]; 32 >yield* [1] : any 39 >async function * () { const x = yield* (async function*() { yield 1; })();} : () => AsyncGenera… [all …]
|
D | parser.asyncGenerators.functionDeclarations.es2018.symbols | 10 async function * yield() { 11 >yield : Symbol(yield, Decl(yieldNameIsOk.ts, 0, 0), Decl(yieldAsTypeIsOk.ts, 0, 0)) 19 async function * f5(yield) { 21 >yield : Symbol(yield, Decl(yieldParameterIsError.ts, 0, 20)) 29 async function * f7(a = yield) { 45 function yield() { 46 >yield : Symbol(yield, Decl(nestedFunctionDeclarationNamedYieldIsError.ts, 0, 23)) 53 const x = function yield() { 55 >yield : Symbol(yield, Decl(nestedFunctionExpressionNamedYieldIsError.ts, 1, 13)) 71 const x = function yield() { [all …]
|
D | parser.asyncGenerators.classMethods.es2018.types | 21 async * yield() { 22 >yield : () => AsyncGenerator<never, void, unknown> 38 async * f(yield) { 39 >f : (yield: any) => AsyncGenerator<never, void, unknown> 40 >yield : any 58 async * f(a = yield) { 61 >yield : any 83 function yield() { 84 >yield : () => void 95 const x = function yield() { [all …]
|
D | parser.asyncGenerators.objectLiteralMethods.es2018.types | 21 >o3 : { yield(): AsyncGenerator<never, void, unknown>; } 22 >{ async * yield() { }} : { yield(): AsyncGenerator<never, void, unknown>; } 24 async * yield() { 25 >yield : () => AsyncGenerator<never, void, unknown> 40 >o5 : { f(yield: any): AsyncGenerator<never, void, unknown>; } 41 >{ async * f(yield) { }} : { f(yield: any): AsyncGenerator<never, void, unknown>; } 43 async * f(yield) { 44 >f : (yield: any) => AsyncGenerator<never, void, unknown> 45 >yield : any 63 >{ async * f(a = yield) { }} : { f(a?: any): AsyncGenerator<never, void, unknown>; } [all …]
|
D | generatorImplicitAny.errors.txt | 1 tests/cases/conformance/generators/generatorImplicitAny.ts(8,19): error TS7057: 'yield' expression … 2 tests/cases/conformance/generators/generatorImplicitAny.ts(26,7): error TS7057: 'yield' expression … 13 const value = yield; // error: implicit any 15 !!! error TS7057: 'yield' expression implicitly results in an 'any' type because its containing gen… 19 const value: string = yield; // ok, contextually typed by `value`. 23 yield; // ok, result is unused 24 yield, noop(); // ok, result is unused 25 noop(), yield, noop(); // ok, result is unused 26 (yield); // ok, result is unused 27 (yield, noop()), noop(); // ok, result is unused [all …]
|
D | emitter.asyncGenerators.objectLiteralMethods.es2018.types | 13 >{ async * f() { const x = yield; }} : { f(): AsyncGenerator<any, void, unknown>; } 18 const x = yield; 20 >yield : any 26 >{ async * f() { const x = yield 1; }} : { f(): AsyncGenerator<number, void, unknown>;… 31 const x = yield 1; 33 >yield 1 : any 40 >{ async * f() { const x = yield* [1]; }} : { f(): AsyncGenerator<number, void, undefi… 45 const x = yield* [1]; 47 >yield* [1] : any 55 >{ async * f() { const x = yield* (async function*() { yield 1; })(); }} : { f(): Asyn… [all …]
|
D | emitter.asyncGenerators.objectLiteralMethods.es2015.types | 13 >{ async * f() { const x = yield; }} : { f(): AsyncGenerator<any, void, unknown>; } 18 const x = yield; 20 >yield : any 26 >{ async * f() { const x = yield 1; }} : { f(): AsyncGenerator<number, void, unknown>;… 31 const x = yield 1; 33 >yield 1 : any 40 >{ async * f() { const x = yield* [1]; }} : { f(): AsyncGenerator<number, void, undefi… 45 const x = yield* [1]; 47 >yield* [1] : any 55 >{ async * f() { const x = yield* (async function*() { yield 1; })(); }} : { f(): Asyn… [all …]
|
D | emitter.asyncGenerators.objectLiteralMethods.es5.types | 13 >{ async * f() { const x = yield; }} : { f(): AsyncGenerator<any, void, unknown>; } 18 const x = yield; 20 >yield : any 26 >{ async * f() { const x = yield 1; }} : { f(): AsyncGenerator<number, void, unknown>;… 31 const x = yield 1; 33 >yield 1 : any 40 >{ async * f() { const x = yield* [1]; }} : { f(): AsyncGenerator<number, void, undefi… 45 const x = yield* [1]; 47 >yield* [1] : any 55 >{ async * f() { const x = yield* (async function*() { yield 1; })(); }} : { f(): Asyn… [all …]
|
D | yieldExpressionInnerCommentEmit.types | 5 /*comment1*/ yield 1; 6 >yield 1 : any 9 yield /*comment2*/ 2; 10 >yield /*comment2*/ 2 : any 13 yield 3 /*comment3*/ 14 >yield 3 : any 17 yield */*comment4*/ [4]; 18 >yield */*comment4*/ [4] : any 22 yield /*comment5*/* [5]; 23 >yield /*comment5*/* [5] : any
|
D | types.asyncGenerators.es2018.2.symbols | 5 yield* {}; 10 yield* inferReturnType2(); 16 yield* Promise.resolve([1, 2]); 25 yield "a"; 31 yield* ["a", "b"]; 37 yield* (async function * () { yield "a"; })(); 43 yield "a"; 49 yield* ["a", "b"]; 55 yield* (async function * () { yield "a"; })(); 61 yield "a"; [all …]
|
/third_party/boost/libs/coroutine/test/ |
D | test_symmetric_coroutine.cpp | 64 void trampoline( coro::symmetric_coroutine< void* >::yield_type & yield) in trampoline() argument 66 void * vp = yield.get(); in trampoline() 68 I i( yield); in trampoline() 86 coro::symmetric_coroutine< void* >::yield_type * yield; member in D 92 yield( & yield_) in D() 101 { ( *yield)(); } in suspend() 105 while ( yield && * yield) in run() 135 void operator()( coro::symmetric_coroutine< bool >::yield_type & yield) in operator ()() argument 137 if ( yield) in operator ()() 138 value1 = yield.get(); in operator ()() [all …]
|
/third_party/boost/libs/asio/example/cpp03/http/server4/ |
D | request_parser.cpp | 41 yield return boost::indeterminate; in consume() 48 yield return boost::indeterminate; in consume() 54 yield return boost::indeterminate; in consume() 60 yield return boost::indeterminate; in consume() 64 yield return boost::indeterminate; in consume() 66 yield return boost::indeterminate; in consume() 68 yield return boost::indeterminate; in consume() 70 yield return boost::indeterminate; in consume() 74 yield return boost::indeterminate; in consume() 81 yield return boost::indeterminate; in consume() [all …]
|