/arkcompiler/ets_runtime/test/typeinfer/automatedcases/privacyAccessorDeclFile/ |
D | privacyAccessorDeclFile_externalModule.ts | 28 static get myPublicStaticMethod(): privateClass { // Error 32 private static get myPrivateStaticMethod(): privateClass { 36 get myPublicMethod(): privateClass { // Error 40 private get myPrivateMethod(): privateClass { 44 static get myPublicStaticMethod1() { // Error 49 private static get myPrivateStaticMethod1() { 54 get myPublicMethod1() { // Error 59 private get myPrivateMethod1() { 67 static get myPublicStaticMethod(): publicClass { 71 private static get myPrivateStaticMethod(): publicClass { [all …]
|
D | privacyAccessorDeclFile_GlobalFile.ts | 25 static get myPublicStaticMethod(): publicClassInGlobal { 29 private static get myPrivateStaticMethod(): publicClassInGlobal { 33 get myPublicMethod(): publicClassInGlobal { 37 private get myPrivateMethod(): publicClassInGlobal { 41 static get myPublicStaticMethod1() { 46 private static get myPrivateStaticMethod1() { 51 get myPublicMethod1() { 56 private get myPrivateMethod1() { 88 static get myPublicStaticMethod(): privateClass { 92 private static get myPrivateStaticMethod(): privateClass { [all …]
|
/arkcompiler/runtime_core/compiler/tests/aarch32/ |
D | callconv32_test.cpp | 106 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F() 107 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT8_TYPE)); in TEST_F() 112 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F() 113 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT8_TYPE)); in TEST_F() 122 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F() 123 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT32_TYPE)); in TEST_F() 128 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F() 129 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT32_TYPE)); in TEST_F() 138 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F() 139 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT64_TYPE)); in TEST_F() [all …]
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | unique_fd_test.cpp | 40 EXPECT_EQ(fd_a.Get(), DEFAULT_VALUE); 41 EXPECT_EQ(fd_b.Get(), dupDF.stdinValue); 42 EXPECT_EQ(fd_c.Get(), dupDF.stdoutValue); 43 EXPECT_EQ(fd_d.Get(), dupDF.stferrValue); 50 EXPECT_EQ(fd_a.Get(), DEFAULT_VALUE); 51 EXPECT_EQ(fd_b.Get(), DEFAULT_VALUE); 52 EXPECT_EQ(fd_c.Get(), DEFAULT_VALUE); 53 EXPECT_EQ(fd_d.Get(), DEFAULT_VALUE); 54 EXPECT_EQ(fd_e.Get(), DEFAULT_VALUE); 55 EXPECT_EQ(fd_f.Get(), dupDF.stdinValue); [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | destructureOfVariableSameAsShorthand.ts | 26 declare function get<T = never, R = AxiosResponse<T>>(): Promise<R>; function 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>)… 33 AssertType(get(), "Promise<AxiosResponse<never>>"); 34 AssertType(get, "<T = never, R = AxiosResponse<T>>() => Promise<R>"); 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>)… 47 AssertType(get(), "Promise<AxiosResponse<never>>"); [all …]
|
D | privacyGetter.ts | 31 private get p1_private() { 40 private get p2_private() { 49 private get p3_private() { 58 public get p4_public(): C2_private { // error 69 private get p1_private() { 78 private get p2_private() { 87 private get p3_private() { 96 public get p4_public(): C2_private { 117 private get p1_private() { 126 private get p2_private() { [all …]
|
D | readonlyInDeclarationFile.ts | 31 private get b1() { 36 protected get b2() { 41 public get b3() { 46 private get c1() { 52 protected get c2() { 58 public get c3() { 67 private static get t1() { 72 protected static get t2() { 77 public static get t3() { 82 private static get u1() { [all …]
|
D | optionalAccessorsInInterface1.ts | 22 get? (): any; 27 defineMyProperty({}, "name", { get: function () { 28 AssertType(defineMyProperty({}, "name", { get: function () { return 5; } }), "any"); 32 AssertType({ get: function () { return 5; } }, "{ get: () => number; }"); 33 AssertType(get, "() => number"); 39 get?: () => any; property 44 defineMyProperty2({}, "name", { get: function () { 45 AssertType(defineMyProperty2({}, "name", { get: function () { return 5; } }), "any"); 49 AssertType({ get: function () { return 5; } }, "{ get: () => number; }"); 50 AssertType(get, "() => number");
|
D | declFileTypeAnnotationVisibilityErrorAccessors.ts | 35 get foo1(): private1 { 40 get foo2() { 51 get foo4() { 60 get foo5(): private1 { 67 get foo11(): public1 { 72 get foo12() { 83 get foo14() { 92 get foo15(): public1 { 99 get foo111(): m2.public2 { 104 get foo112() { [all …]
|
D | jsDeclarationsGetterSetter.ts | 22 get x() { 37 get x() { 50 AssertType({ get() { return 12; }}, "{ get(): number; }"); 51 AssertType(Object.defineProperty(D.prototype, "x", { get() { return 12; }}), "D"); 53 get() { 54 AssertType(get, "() => number"); 85 AssertType({ get() { return 12; }, /** * @param {number} _arg */ set(_ar… 86 AssertType(Object.defineProperty(F.prototype, "x", { get() { return 12; }, /** … 88 get() { 89 AssertType(get, "() => number");
|
D | privacyGloGetter.ts | 31 private get p1_private() { 40 private get p2_private() { 49 private get p3_private() { 58 public get p4_public(): C2_private { // error 69 private get p1_private() { 78 private get p2_private() { 87 private get p3_private() { 96 public get p4_public(): C2_private { 111 private get p1_private() { 120 private get p2_private() {
|
D | computedPropertyNames11_ES6.ts | 32 …get [s]() { return 0; }, set [n](v) { }, get [s + s]() { return 0; }, set [s + n](v) { },… 34 get [s]() { 45 get [s + s]() { 60 get [+s]() { 72 get [0]() { 83 get [<any>true]() { 95 get [`hello ${a} bye`]() {
|
D | computedPropertyNames11_ES5.ts | 32 …get [s]() { return 0; }, set [n](v) { }, get [s + s]() { return 0; }, set [s + n](v) { },… 34 get [s]() { 45 get [s + s]() { 60 get [+s]() { 72 get [0]() { 83 get [<any>true]() { 95 get [`hello ${a} bye`]() {
|
D | typeFromPrototypeAssignment4.ts | 31 AssertType(Multimap4["prototype"], "{ get(string): number; }"); 34 …ing} key * @returns {number} the value ok */ get(key) { return this._map[key + '']; }}, "… 35 …ing} key * @returns {number} the value ok */ get(key) { return this._map[key + '']; }}, "… 42 get(key) { 43 AssertType(get, "(string) => number"); 59 AssertType(Multimap4["prototype"], "{ get(string): number; }"); 68 AssertType(Multimap4["prototype"], "{ get(string): number; }"); 77 AssertType(Multimap4["prototype"], "{ get(string): number; }"); 88 map4.get(""); 89 AssertType(map4.get(""), "number"); [all …]
|
D | genericReversingTypeParameters.ts | 23 public get(key: K): V { 39 let r1 = b.get(''); 41 AssertType(b.get(''), "number"); 42 AssertType(b.get, "(string) => number"); 45 let i = b.inverse(); // used to get the type wrong here. 50 let r2b = i.get(1); 52 AssertType(i.get(1), "string"); 53 AssertType(i.get, "(number) => string");
|
D | getterSetterNonAccessor.ts | 29 AssertType(Object.defineProperty({}, "0", <PropertyDescriptor>({ get: getFunc, se… 33 AssertType(<PropertyDescriptor>({ get: getFunc, set: setFunc, configurab… 34 AssertType(({ get: getFunc, set: setFunc, configurable: true }), "{… 35 AssertType({ get: getFunc, set: setFunc, configurable: true }, "{ g… 37 get: getFunc, 38 AssertType(get, "() => any");
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/privacyCannotNameAccessorDeclFile/ |
D | privacyCannotNameAccessorDeclFile_consumer.ts | 23 static get myPublicStaticMethod() { // Error 28 private static get myPrivateStaticMethod() { 33 get myPublicMethod() { // Error 38 private get myPrivateMethod() { 43 static get myPublicStaticMethod1() { // Error 48 private static get myPrivateStaticMethod1() { 53 get myPublicMethod1() { // Error 58 private get myPrivateMethod1() { 66 static get myPublicStaticMethod() { 71 private static get myPrivateStaticMethod() { [all …]
|
/arkcompiler/runtime_core/compiler/tests/aarch64/ |
D | callconv64_test.cpp | 98 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F() 99 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT8_TYPE)); in TEST_F() 104 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F() 105 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT8_TYPE)); in TEST_F() 114 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F() 115 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT32_TYPE)); in TEST_F() 120 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F() 121 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT32_TYPE)); in TEST_F() 130 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F() 131 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT64_TYPE)); in TEST_F() [all …]
|
/arkcompiler/runtime_core/compiler/tests/amd64/ |
D | callconv64_test.cpp | 99 EXPECT_EQ(std::get<Reg>(ret).GetId(), target.GetParamRegId(0)); in TEST_F() 100 EXPECT_EQ(std::get<Reg>(ret), Reg(target.GetParamRegId(0), INT8_TYPE)); in TEST_F() 105 EXPECT_EQ(std::get<Reg>(ret).GetId(), target.GetParamRegId(i)); in TEST_F() 106 EXPECT_EQ(std::get<Reg>(ret), Reg(target.GetParamRegId(i), INT8_TYPE)); in TEST_F() 115 EXPECT_EQ(std::get<Reg>(ret).GetId(), target.GetParamRegId(0)); in TEST_F() 116 EXPECT_EQ(std::get<Reg>(ret), Reg(target.GetParamRegId(0), INT32_TYPE)); in TEST_F() 121 EXPECT_EQ(std::get<Reg>(ret).GetId(), target.GetParamRegId(i)); in TEST_F() 122 EXPECT_EQ(std::get<Reg>(ret), Reg(target.GetParamRegId(i), INT32_TYPE)); in TEST_F() 131 EXPECT_EQ(std::get<Reg>(ret).GetId(), target.GetParamRegId(0)); in TEST_F() 132 EXPECT_EQ(std::get<Reg>(ret), Reg(target.GetParamRegId(0), INT64_TYPE)); in TEST_F() [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_locale.h | 34 // 10.3.6 get Intl.Locale.prototype.baseName 36 // 10.3.7 get Intl.Locale.prototype.calendar 38 // 10.3.8 get Intl.Locale.prototype.caseFirst 40 // 10.3.9 get Intl.Locale.prototype.collation 42 // 10.3.10 get Intl.Locale.prototype.hourCycle 44 // 10.3.11 get Intl.Locale.prototype.numeric 46 // 10.3.12 get Intl.Locale.prototype.numberingSystem 48 // 10.3.13 get Intl.Locale.prototype.language 50 // 10.3.14 get Intl.Locale.prototype.script 52 // 10.3.15 get Intl.Locale.prototype.region
|
/arkcompiler/toolchain/build/prebuilts_download/ |
D | prebuilts_download.py | 75 unzip_dir = config.get('unzip_dir') 76 huaweicloud_url = ''.join([tool_repo, config.get('file_path')]) 77 unzip_filename = config.get('unzip_filename') 149 …progress.console.log('{}, download and decompress completed'.format(tasks.get(task)), style='green… 153 src_dir = ''.join([code_dir, config_info.get('src')]) 154 dest_dir = ''.join([code_dir, config_info.get('dest')]) 155 tmp_dir = config_info.get('tmp') 156 symlink_src = config_info.get('symlink_src') 157 symlink_dest = config_info.get('symlink_dest') 192 file_handle_config = config_info.get('file_handle_config') [all …]
|
/arkcompiler/ets_frontend/arkguard/test/ut/utils/ |
D | FileUtils.spec.ts | 52 it('Tester: <get file name with undefined input.> case for FileUtils#getFileName', function () { 60 it('Tester: <get relative file fullname.> case for FileUtils#getFileName', function () { 65 it('Tester: <get windows file fullname.> case for FileUtils#getFileName', function () { 70 it('Tester: <get single file fullname.> case for FileUtils#getFileName', function () { 76 …it('Tester: <get file extension with undefined input.> case for FileUtils#getFileExtension', funct… 84 …it('Tester: <get file extension with input not contain point.> case for FileUtils#getFileExtension… 89 …it('Tester: <get file extension with dir contain point.> case for FileUtils#getFileExtension', fun… 94 it('Tester: <get file extension.> case for FileUtils#getFileExtension', function () { 99 …it('Tester: <get file extension with point end.> case for FileUtils#getFileExtension', function ()… 115 it('Tester: <get prefix test.> case for FileUtils#getPrefix', function () { [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
D | tsEnumDeclaration.cpp | 114 return std::get<double>(value); in EvaluateUnaryExpression() 117 return -std::get<double>(value); in EvaluateUnaryExpression() 120 return static_cast<double>(~ToInt(std::get<double>(value))); in EvaluateUnaryExpression() 161 … return static_cast<double>(ToUInt(std::get<double>(left)) | ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 164 … return static_cast<double>(ToUInt(std::get<double>(left)) & ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 167 … return static_cast<double>(ToUInt(std::get<double>(left)) ^ ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 170 … return static_cast<double>(ToInt(std::get<double>(left)) << ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 173 … return static_cast<double>(ToInt(std::get<double>(left)) >> ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 176 … return static_cast<double>(ToUInt(std::get<double>(left)) >> ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 179 return std::get<double>(left) + std::get<double>(right); in EvaluateBinaryExpression() [all …]
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | literal_data_extractor.cpp | 56 jt = JSTaggedValue(std::get<uint32_t>(value)); in ExtractObjectDatas() 60 jt = JSTaggedValue(std::get<double>(value)); in ExtractObjectDatas() 64 jt = JSTaggedValue(std::get<bool>(value)); in ExtractObjectDatas() 68 StringData sd = jsPandaFile->GetStringData(EntityId(std::get<uint32_t>(value))); in ExtractObjectDatas() 78 methodId = std::get<uint32_t>(value); in ExtractObjectDatas() 83 methodId = std::get<uint32_t>(value); in ExtractObjectDatas() 88 uint16_t length = std::get<uint16_t>(value); in ExtractObjectDatas() 154 jt = JSTaggedValue(std::get<uint32_t>(value)); in EnumerateLiteralVals() 158 jt = JSTaggedValue(std::get<double>(value)); in EnumerateLiteralVals() 162 jt = JSTaggedValue(std::get<bool>(value)); in EnumerateLiteralVals() [all …]
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | weak_ref_old_gc_test.cpp | 84 EXPECT_EQ(newObj1.GetTaggedValue(), array->Get(0)); in HWTEST_F_L0() 85 EXPECT_EQ(value, array->Get(1)); in HWTEST_F_L0() 87 EXPECT_EQ(newObj1.GetTaggedValue(), array->Get(0)); in HWTEST_F_L0() 88 EXPECT_EQ(JSTaggedValue::Undefined(), array->Get(1)); in HWTEST_F_L0() 103 EXPECT_EQ(newObj1.GetTaggedValue(), array->Get(0)); in HWTEST_F_L0() 104 EXPECT_EQ(value, array->Get(1)); in HWTEST_F_L0() 106 EXPECT_EQ(newObj1.GetTaggedValue(), array->Get(0)); in HWTEST_F_L0() 107 EXPECT_EQ(JSTaggedValue::Undefined(), array->Get(1)); in HWTEST_F_L0() 122 EXPECT_EQ(newObj1.GetTaggedValue(), array->Get(0)); in HWTEST_F_L0() 123 EXPECT_EQ(value, array->Get(1)); in HWTEST_F_L0() [all …]
|