/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | promiseTypeStrictNull.ts | 184 const p01 = p.then(); 186 AssertType(p.then(), "Promise<boolean>"); 187 AssertType(p.then, "<TResult1 = boolean, TResult2 = never>(?union, ?union) => Promise<union>"); 260 const p20 = p.then(undefined); 262 AssertType(p.then(undefined), "Promise<boolean>"); 263 AssertType(p.then, "<TResult1 = boolean, TResult2 = never>(?union, ?union) => Promise<union>"); 266 const p21 = p.then(null); 268 AssertType(p.then(null), "Promise<boolean>"); 269 AssertType(p.then, "<TResult1 = boolean, TResult2 = never>(?union, ?union) => Promise<union>"); 272 const p22 = p.then(() => 1); [all …]
|
D | promiseChaining.ts | 23 then<S>(cb: (x: T) => S): Chain<S> { 32 …let z = this.then(x => result)/*S*/.then(x => "abc")/*string*/.then(x => x.length)/*number*/; // N… 34 AssertType(this.then(x => result)/*S*/.then(x => "abc")/*string*/.then(x => x.length), "Chain<numbe… 35 AssertType(this.then(x => result)/*S*/.then(x => "abc")/*string*/.then, "<S>((string) => S) => Chai… 36 AssertType(this.then(x => result)/*S*/.then(x => "abc"), "Chain<string>"); 37 AssertType(this.then(x => result)/*S*/.then, "<S>((S) => S) => Chain<S>"); 38 AssertType(this.then(x => result), "Chain<S>"); 39 AssertType(this.then, "<S>((T) => S) => Chain<S>");
|
D | ipromise4.ts | 23 …then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (prog… 24 …then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any)… 25 …then<U>(success?: (value: T) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any)… 26 …then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void )… 37 p.then(function (x) { } ); // should not error 38 AssertType(p.then(function (x) { } ), "Windows.Foundation.IPromise<void>"); 39 AssertType(p.then, "{ <U>(?(number) => Windows.Foundation.IPromise<U>, ?(any) => Windows.Foundation… 43 p.then(function (x) { 44 AssertType(p.then(function (x) { return "hello"; } ).then(function (x) { return x } ), "Windows.Fou… 45 AssertType(p.then(function (x) { return "hello"; } ).then, "{ <U>(?(string) => Windows.Foundation.I… [all …]
|
D | ipromise3.ts | 22 …then<U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (pr… 23 …then<U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any… 24 …then<U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any… 25 …then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void )… 31 let p2: IPromise3<string> = p1.then(function (x) { 33 AssertType(p1.then, "{ <U>(?(string) => IPromise3<U>, ?(any) => IPromise3<U>, ?(any) => void): IPro… 36 AssertType(p1.then(function (x) { return x;}), "IPromise3<string>");
|
D | propagationOfPromiseInitialization.ts | 22 …then<TResult>(successCallback: (promiseValue: T) => TResult, errorCallback?: (reason: any) => TRes… 28 foo.then((x) => { 29 AssertType(foo.then((x) => { // x is inferred to be a number return "asdf";}).then, "<TResult… 30 AssertType(foo.then((x) => { // x is inferred to be a number return "asdf";}).then((x) => { … 36 }).then((x) => {
|
D | destructureOfVariableSameAsShorthand.ts | 30 get().then((response) => { 31 AssertType(get().then((response) => { // body is never const body = response.data; … 32 AssertType(get().then, "<TResult1 = AxiosResponse<never>, TResult2 = never>(?(AxiosResponse<never>)… 44 get().then(({ data }) => { 45 AssertType(get().then(({ data }) => { // data is never }), "Promise<void>"); 46 AssertType(get().then, "<TResult1 = AxiosResponse<never>, TResult2 = never>(?(AxiosResponse<never>)…
|
D | ipromise2.ts | 23 …then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (prog… 24 …then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any)… 25 …then<U>(success?: (value: T) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any)… 26 …then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void )… 37 let p2 = p.then(function (s) { 39 AssertType(p.then, "{ <U>(?(string) => Windows.Foundation.IPromise<U>, ?(any) => Windows.Foundation… 42 AssertType(p.then(function (s) { return 34;} ), "Windows.Foundation.IPromise<number>");
|
D | promiseTest.ts | 22 then<A>(success?: (value: T) => Promise<A>): Promise<A>; 23 then<B>(success?: (value: T) => B): Promise<B>; 31 let p2 = p.then(function (x) { 33 AssertType(p.then, "{ <TResult1 = number, TResult2 = never>(?(number) => union, ?(any) => union): P… 36 AssertType(p.then(function (x) { return p;} ), "Promise<number>");
|
D | promiseTypeInference.ts | 22 then<U>(success?: (value: T) => CPromise<U>): CPromise<U>; 25 then<U>(success?: (value: T) => IPromise<U>): IPromise<U>; method 30 let $$x = load("something").then(s => convert(s)); 32 AssertType(load("something").then(s => convert(s)), "CPromise<number>"); 33 AssertType(load("something").then, "<U>(?(string) => CPromise<U>) => CPromise<U>");
|
D | promiseVoidErrorCallback.ts | 53 AssertType(f1() .then(f2, (e: Error) => { throw e;}) .then, "<TResult1 = T2, TResult2 = ne… 54 AssertType(f1() .then(f2, (e: Error) => { throw e;}) .then((x: T2) => { return { __t3: … 56 .then(f2, (e: Error) => { 61 .then((x: T2) => {
|
D | functionOverloadsOnGenericArity2.ts | 23 then(p: string): string; 24 then<U>(p: string): string; 25 then<U, T>(p: string): Date;
|
D | asyncFunctionsAndStrictNullChecks.ts | 23 …then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?:… 24 …then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => U, progress?: (progress… 25 …then<U>(success?: (value: TResult) => U, error?: (error: any) => IPromise<U>, progress?: (progress… 26 …then<U>(success?: (value: TResult) => U, error?: (error: any) => U, progress?: (progress: any) => …
|
D | overloadOnGenericArity.ts | 23 then<U>(p: string): string; 24 then(p: string): Date; // Error: Overloads cannot differ only by return type
|
D | instantiateContextualTypes.ts | 236 AssertType(Promise.resolve().then(() => { if (1 < 2) { return 'SOMETHING'; } return 'ELSE'… 237 AssertType(Promise.resolve().then, "<TResult1 = void, TResult2 = never>(?union, ?union) => Promise<… 241 return Promise.resolve().then(() => { 257 AssertType(Promise.resolve().then(() => { return 'ELSE'; }), "Promise<union>"); 258 AssertType(Promise.resolve().then, "<TResult1 = void, TResult2 = never>(?union, ?union) => Promise<… 262 return Promise.resolve().then(() => { 270 AssertType(Promise.resolve().then(() => { if (1 < 2) { return 'SOMETHING'; } return 'SOMET… 271 AssertType(Promise.resolve().then, "<TResult1 = void, TResult2 = never>(?union, ?union) => Promise<… 275 return Promise.resolve().then(() => {
|
/arkcompiler/ets_runtime/test/moduletest/dynamicimport/ |
D | dynamicimport.js | 27 import(objA).then(animalA => { 30 }).then().catch(); 37 f().then().catch(); 40 import("./C.js").then(m => { 42 }).then(); 47 }).then();
|
D | B.js | 18 import('./A.js').then(animalA=> { 21 }).then().catch();
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/inferenceLimit/ |
D | file1.ts | 31 …then((items) => { order.items = items; resolve(order); }); });… 34 …then((items) => { order.items = items; resolve(order); }); });… 47 …ew Promise((resolve, reject) => { this.doStuff(order.id) .then((items) => { … 49 AssertType(new Promise((resolve, reject) => { this.doStuff(order.id) .then((items) … 51 AssertType((resolve, reject) => { this.doStuff(order.id) .then((items) => { … 57 AssertType(this.doStuff(order.id) .then((items) => { order.items = items; … 58 AssertType(this.doStuff(order.id) .then, "<TResult1 = void, TResult2 = never>(?(void) => u… 64 .then((items) => { 82 AssertType(Promise.all(result.map(populateItems)) .then((orders: Array<MyModule.MyModel>) => {… 83 AssertType(Promise.all(result.map(populateItems)) .then, "<TResult1 = unknown[], TResult2 = ne… [all …]
|
/arkcompiler/runtime_core/tests/cts-assembly/ |
D | arrays-08.pa | 20 # If element size is smaller then 32 bits, it will be zero or sign extended (depending on byt… 26 # if vs == null then 29 # if acc < 0 || acc >= len(vs) then 32 # if op == fldarr.32 then 34 # else if op == ldarr.8 then 36 # else if op == ldarru.8 then 38 # else if op == ldarr.16 then 40 # else if op == ldarru.16 then
|
D | arrays-07.pa | 20 # If element size is smaller then 32 bits, it will be zero or sign extended (depending on byt… 26 # if vs == null then 29 # if acc < 0 || acc >= len(vs) then 32 # if op == fldarr.32 then 34 # else if op == ldarr.8 then 36 # else if op == ldarru.8 then 38 # else if op == ldarr.16 then 40 # else if op == ldarru.16 then
|
/arkcompiler/ets_runtime/test/aottest/dynamicimport/ |
D | dynamicimport.js | 28 import(objA).then(animalA => { 31 }).then().catch(); 39 f().then().catch();
|
D | B.js | 18 import('./A.js').then(animalA=> { 21 }).then().catch();
|
/arkcompiler/ets_runtime/test/moduletest/asyncgenerator/ |
D | asyncgeneratoryieldstar.js | 33 then() { 55 iter.next().then(() => { 59 iter.next().then(({ done, value }) => {
|
D | asyncgeneratorreturn.js | 30 a.next().then((res) => print(res.value)); // { value: 1, done: false } 31 a.return('foo').then((res) => print(res.value)); // { value: "foo", done: true }
|
/arkcompiler/ets_frontend/test262/ |
D | dynamicImport_tests.txt | 198 nested-while-import-then-eval-gtbndng-indirect-update-dflt.js 202 nested-function-import-then-is-call-expression-square-brackets.js 203 nested-else-import-then-returns-thenable.js 205 nested-block-import-then-is-call-expression-square-brackets.js 212 nested-arrow-import-then-eval-gtbndng-indirect-update.js 217 nested-block-import-then-eval-gtbndng-indirect-update.js 218 nested-arrow-import-then-eval-gtbndng-indirect-update-dflt.js 219 top-level-import-then-returns-thenable.js 224 nested-while-import-then-is-call-expression-square-brackets.js 225 nested-if-import-then-is-call-expression-square-brackets.js [all …]
|
/arkcompiler/runtime_core/docs/diagrams/ |
D | gc-thread-activity.puactivity | 20 if (gc_stop_flag) then (yes) 23 if (GCTaskQueue not empty) then (yes) 25 if (task is Full GC) then (yes) 27 elseif (task is Major GC) then (yes) 30 if (GCTaskQueue contains minor GC) then(yes)
|