| /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> { 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>");
|
| 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | functionOverloadsOnGenericArity2.ts | 23 then(p: string): string; 24 then<U>(p: string): string; 25 then<U, T>(p: string): Date;
|
| /arkcompiler/runtime_core/scripts/ |
| D | install-deps-ubuntu | 24 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 …]
|
| D | run-check-concurrency-format.sh | 23 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
|
| D | install-third-party | 72 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 …]
|
| D | install-deps-qemu | 68 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/ |
| 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/tests/cts-assembly/ |
| 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
|
| 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
|
| /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();
|
| /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/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)
|
| D | gc-mark.puactivity | 23 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/ |
| D | aot_resolve_string.md | 5 …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 … 35 …then 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/ |
| D | prebuilts_download.sh | 74 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/ |
| D | dynamicimport.js | 28 import(objA).then(animalA => { 31 }).then().catch(); 39 f().then().catch();
|