Home
last modified time | relevance | path

Searched refs:then (Results 1 – 25 of 92) sorted by relevance

1234

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DpromiseTypeStrictNull.ts184 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 …]
DpromiseChaining.ts23 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>");
Dipromise4.ts23then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (prog…
24then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any)…
25then<U>(success?: (value: T) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any)…
26then<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 …]
Dipromise3.ts22then<U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (pr…
23then<U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any…
24then<U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any…
25then<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>");
DpropagationOfPromiseInitialization.ts22then<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) => {
DdestructureOfVariableSameAsShorthand.ts30 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>)…
Dipromise2.ts23then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (prog…
24then<U>(success?: (value: T) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any)…
25then<U>(success?: (value: T) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any)…
26then<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>");
DpromiseTest.ts22 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>");
DpromiseTypeInference.ts22 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>");
DpromiseVoidErrorCallback.ts53 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) => {
DfunctionOverloadsOnGenericArity2.ts23 then(p: string): string;
24 then<U>(p: string): string;
25 then<U, T>(p: string): Date;
DasyncFunctionsAndStrictNullChecks.ts23then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?:…
24then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => U, progress?: (progress…
25then<U>(success?: (value: TResult) => U, error?: (error: any) => IPromise<U>, progress?: (progress…
26then<U>(success?: (value: TResult) => U, error?: (error: any) => U, progress?: (progress: any) => …
DoverloadOnGenericArity.ts23 then<U>(p: string): string;
24 then(p: string): Date; // Error: Overloads cannot differ only by return type
DinstantiateContextualTypes.ts236 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/
Ddynamicimport.js27 import(objA).then(animalA => {
30 }).then().catch();
37 f().then().catch();
40 import("./C.js").then(m => {
42 }).then();
47 }).then();
DB.js18 import('./A.js').then(animalA=> {
21 }).then().catch();
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/inferenceLimit/
Dfile1.ts31then((items) => { order.items = items; resolve(order); }); });…
34then((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/
Darrays-08.pa20 # 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
Darrays-07.pa20 # 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/
Ddynamicimport.js28 import(objA).then(animalA => {
31 }).then().catch();
39 f().then().catch();
DB.js18 import('./A.js').then(animalA=> {
21 }).then().catch();
/arkcompiler/ets_runtime/test/moduletest/asyncgenerator/
Dasyncgeneratoryieldstar.js33 then() {
55 iter.next().then(() => {
59 iter.next().then(({ done, value }) => {
Dasyncgeneratorreturn.js30 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/
DdynamicImport_tests.txt198 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/
Dgc-thread-activity.puactivity20 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)

1234