Home
last modified time | relevance | path

Searched full:then (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/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> {
31 // should get a fresh type parameter which each then call
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 …]
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) => {
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>");
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>");
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>");
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) => {
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>");
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>)…
DfunctionOverloadsOnGenericArity2.ts23 then(p: string): string;
24 then<U>(p: string): string;
25 then<U, T>(p: string): Date;
/arkcompiler/runtime_core/scripts/
Dinstall-deps-ubuntu24 then
69 then
90 if [[ ! -f "$fname" ]] ; then
128 if [[ $FLAG_ARG == "dev" ]] ; then
129 if [[ $INSTALL_ARM_DEV == "yes" ]] ; then
136 if [[ $FLAG_ARG == "x86" ]] ; then
139 if [[ $FLAG_ARG == "arm-all" ]] ; then
142 if [[ $FLAG_ARG == "windows" ]] ; then
145 if [[ $FLAG_ARG == "arm-dev" ]] ; then
146 if [[ $INSTALL_DEV == "yes" ]] ; then
[all …]
Drun-check-concurrency-format.sh23 if [[ "$FILE" == *"libpandabase/os"* ]]; then
28 if [[ "$FILE" == *"libopenjdkpandavm/"* ]]; then
33 if [[ "$FILE" == *"runtime/tests"* ]]; then
38 if [[ "$FILE" == *"runtime/profilesaver"* ]]; then
43 if [[ "$FILE" == *"runtime/methodtrace/trace"* ]]; then
48 if [[ "$FILE" == *"java/runtime/java_signal_catcher.cpp"* ]]; then
53 if [[ "$FILE" == *"compiler/optimizer/code_generator/disassembly.cpp"* ]]; then
59 if grep ${pattern} ${FILE}; then
Dinstall-third-party72 if [[ ! -d "$patch_dir" ]] ; then
95 if [[ "$component" == "" || "$component" =~ ^# ]] ; then
109 if [[ "$commit_type" == "branch" || "$commit_type" == "tag" ]] ; then
111 elif [[ "$commit_type" == "commit" ]] ; then
121 if [[ "$patch_mode" == "with_patches" ]] ; then
123 elif [[ "$patch_mode" != "no_patches" ]] ; then
128 if [[ "$submodule_mode" =~ ^with_submodules: ]] ; then
138 elif [[ "$submodule_mode" != "no_submodules" ]] ; then
146 if [[ "$ARK_THIRD_PARTY_FORCE_CLONE" == "yes" ]] ; then
150 if [[ -d "$ARK_THIRD_PARTY_DIR" ]] ; then
[all …]
Dinstall-deps-qemu68 if [[ $(id -u) -ne 0 ]] ; then
76 if [ ! -f /etc/os-release ]; then
82 if [[ "$NAME" != "Ubuntu" ]]; then
117 if [[ ! -f "$lname" ]]; then
156 if [[ "$qemu_installed_version" == "" ]]; then
164 if [[ "$qemu_installed_version" == "$qemu_expected_version" ]]; then
169 if [[ "$qemu_installed_version" == "" ]]; then
/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/tests/cts-assembly/
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
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
/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();
/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/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)
Dgc-mark.puactivity23 if (object is in collected space) then(Yes)
24 if (The object is a Reference object in the same generation space with reference) then(Yes)
25 if (the referent object is marked) then(Yes)
/arkcompiler/runtime_core/compiler/docs/
Daot_resolve_string.md5 …rom a slot associated with a string and checks if that value is valid pointer. If it's not then the
19 If the condition is met then the compiler reserves a unique PLT-slot (with type `STRING_SLOT`) for …
35then each resolution attempt will increment value inside the slot until it either get replaced wit…
37 - if PLT-slot's value is already a pointer then the resolved string gets returned;
38 - if amount of already filled PLT-slots is above `--resolve-string-aot-threshold` then the resolved…
40 - if PLT-slot's value is below `--aot-string-gc-roots-limit` then slot's value is incremented and t…
42 - if PLT-slot's value is above `--aot-string-gc-roots-limit` then slot's value is replaced by strin…
/arkcompiler/toolchain/build/prebuilts_download/
Dprebuilts_download.sh74 if [ "X${SKIP_SSL}" == "XYES" ];then
80 if [ "X${HELP}" == "XYES" ];then
86 if [ ! -z "$TOOL_REPO" ];then
92 if [ ! -z "$TRUSTED_HOST" ];then
94 elif [ ! -z "$PYPI_URL" ];then
101 if [ ! -z "$PYPI_URL" ];then
/arkcompiler/ets_runtime/test/aottest/dynamicimport/
Ddynamicimport.js28 import(objA).then(animalA => {
31 }).then().catch();
39 f().then().catch();

12345678910>>...12