Home
last modified time | relevance | path

Searched refs:param2 (Results 1 – 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DinferenceOptionalPropertiesToIndexSignatures.ts69 const param2 = Math.random() < 0.5 ? 'value2' : null; constant
70 AssertType(param2, "union");
81 AssertType({ param1: 'value1', ...(param2 ? {param2} : {})}, "{ param2?: union; param1: strin…
87 ...(param2 ? {param2} : {})
88 AssertType((param2 ? {param2} : {}), "union");
89 AssertType(param2 ? {param2} : {}, "union");
90 AssertType(param2, "union");
91 AssertType({param2}, "{ param2: string; }");
92 AssertType(param2, "string");
/arkcompiler/ets_frontend/es2panda/test/type_extractor/testcases_with_assert/
Dtest-arrow-function-4-declare-then-assign-different-type.ts19 let f: (param1: string, param2: number) => string;
21 f = (param1: string, param2: number) : any => {
23 AssertType(param2, "number");
24 return param1.length + param2;
Dtest-arrow-function-3-declare-then-assign-without-type.ts19 let f: (param1: string, param2: number) => string;
21 f = (param1, param2) => {
23 AssertType(param2, "any");
24 return param1[param2];
Dtest-arrow-function-2-define-with-type-annotation.ts19 let f: (param1: string, param2: number) => string = (param1, param2) => {
21 AssertType(param2, "any");
22 return param1[param2];
Dtest-arrow-function-1-define-without-type-annotation.ts19 const f = (param1: string, param2: number): string => {
21 AssertType(param2, "number");
22 return param1[param2];
/arkcompiler/runtime_core/compiler/tests/
Dasm_caller.cpp35 DEF(add, [](auto param1, auto param2) { return param1 + param2; }) \
36 DEF(sub, [](auto param1, auto param2) { return param1 - param2; }) \
37 DEF(mul, [](auto param1, auto param2) { return param1 * param2; }) \
38 DEF(and, [](auto param1, auto param2) { return param1 & param2; }) \
39 DEF(or, [](auto param1, auto param2) { return param1 | param2; }) \
40 DEF(xor, [](auto param1, auto param2) { \
41 return param1 ^ param2; \
Dasm_printer_test.cpp295 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); \
296 test->GetEncoder()->encode_func(param1, param1, param2); \
Dsplit_resolver_test.cpp472 auto param2 = la->GetInstLifeIntervals(&INS(2)); in TEST_F() local
477 param2->SetLocation(Location::MakeStackSlot(4)); in TEST_F()
486 INS(4).CastToSpillFill()->AddFill(param2->GetLocation().GetValue(), 11, DataType::Type::INT64); in TEST_F()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/privacyFunctionCannotNameParameterTypeDeclFile/
DprivacyFunctionCannotNameParameterTypeDeclFile_consumer.ts32 …rtedWidget1(), private param1 = exporter.createExportedWidget1(), public param2 = exporter.createE…
44 …rtedWidget3(), private param1 = exporter.createExportedWidget3(), public param2 = exporter.createE…
57 …rtedWidget1(), private param1 = exporter.createExportedWidget1(), public param2 = exporter.createE…
69 …rtedWidget3(), private param1 = exporter.createExportedWidget3(), public param2 = exporter.createE…
88 …ortedWidget2(), private param1= exporter.createExportedWidget2(), public param2= exporter.createEx…
96 …ortedWidget4(), private param1= exporter.createExportedWidget4(), public param2= exporter.createEx…
110 …ortedWidget2(), private param1= exporter.createExportedWidget2(), public param2= exporter.createEx…
118 …ortedWidget4(), private param1= exporter.createExportedWidget4(), public param2= exporter.createEx…
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/privacyFunctionParameterDeclFile/
DprivacyFunctionParameterDeclFile_externalModule.ts61 …constructor(param: privateClass, private param1: privateClass, public param2: privateClass) { // E… property in publicClassWithWithPrivateParmeterTypes
74 constructor(param: publicClass, private param1: publicClass, public param2: publicClass) { property in publicClassWithWithPublicParmeterTypes
87 constructor(param: privateClass, private param1: privateClass, public param2: privateClass) { property in privateClassWithWithPrivateParmeterTypes
100 constructor(param: publicClass, private param1: publicClass, public param2: publicClass) { property in privateClassWithWithPublicParmeterTypes
128 …ateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.pub…
145 …ateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.pub…
193 …constructor(param: privateClass, private param1: privateClass, public param2: privateClass) { // E…
206 constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
219 … constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
232 constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
[all …]
DprivacyFunctionParameterDeclFile_GlobalFile.ts38 …constructor(param: publicClassInGlobal, private param1: publicClassInGlobal, public param2: public… property in publicClassWithWithPublicParmeterTypesInGlobal
92 … constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
105 … constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
118 … constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
131 … constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
159 …ateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.pub…
176 …ateModule.publicClass, private param1: privateModule.publicClass, public param2: privateModule.pub…
217 …constructor(param: privateClass, private param1: privateClass, public param2: privateClass) { // E…
230 constructor(param: publicClass, private param1: publicClass, public param2: publicClass) {
243 … constructor(param: privateClass, private param1: privateClass, public param2: privateClass) {
[all …]
/arkcompiler/runtime_core/compiler/tests/amd64/
Dencoder64_test.cpp277 bool CallCode(const T &param1, const T &param2, const U &result) in CallCode() argument
281 using funct_ptr = U_exp (*)(T_exp param1, T_exp param2); in CallCode()
286 const U_exp curr_result = func(static_cast<T_exp>(param1), static_cast<T_exp>(param2)); in CallCode()
296 …std::cerr << "Failed CallCode for param1=" << param1 << " param2=" << param2 << " and result=" << … in CallCode()
301 … std::cerr << " param1=" << bit_cast<uint64_t>(param1) << " param2=" << bit_cast<uint64_t>(param2); in CallCode()
303 … std::cerr << " param1=" << bit_cast<uint32_t>(param1) << " param2=" << bit_cast<uint32_t>(param2); in CallCode()
358 bool CallCode(const T &param1, const T &param2, const T &result) in CallCode() argument
361 using funct_ptr = T_exp (*)(T_exp param1, T_exp param2); in CallCode()
366 const T_exp curr_result = func(static_cast<T_exp>(param1), static_cast<T_exp>(param2)); in CallCode()
376 …std::cerr << "Failed CallCode for param1=" << param1 << " param2=" << param2 << " and result=" << … in CallCode()
[all …]
/arkcompiler/runtime_core/compiler/tests/aarch32/
Dencoder32_test.cpp223 auto param2 = GetParameter(TypeInfo(T(0)), 1); in PreWork() local
227 ->Vmov(aarch32::VixlVReg(param2).S(), s1_register); in PreWork()
232 auto param2 = GetParameter(TypeInfo(T(0)), 1); in PreWork() local
238 GetEncoder()->EncodeMov(param2, stored_value_2); in PreWork()
242 auto param2 = GetParameter(TypeInfo(T(0)), 1); in PreWork() local
247 GetEncoder()->EncodeMov(param2, stored_value_2); in PreWork()
292 bool CallCode(const T &param1, const T &param2, const U &result) in CallCode() argument
294 return CallCodeVariadic<U, T, T>(result, param1, param2); in CallCode()
380 bool CallCode(const T &param1, const T &param2, const T &result) in CallCode() argument
382 return CallCodeVariadic<T, T, T>(result, param1, param2); in CallCode()
[all …]
/arkcompiler/runtime_core/compiler/tests/aarch64/
Dencoder64_test.cpp279 bool CallCode(const T &param1, const T &param2, const U &result) in CallCode() argument
283 using funct_ptr = U_exp (*)(T_exp param1, T_exp param2); in CallCode()
288 const U_exp curr_result = func(static_cast<T_exp>(param1), static_cast<T_exp>(param2)); in CallCode()
298 …std::cerr << "Failed CallCode for param1=" << param1 << " param2=" << param2 << " and result=" << … in CallCode()
303 … std::cerr << " param1=" << bit_cast<uint64_t>(param1) << " param2=" << bit_cast<uint64_t>(param2); in CallCode()
305 … std::cerr << " param1=" << bit_cast<uint32_t>(param1) << " param2=" << bit_cast<uint32_t>(param2); in CallCode()
361 bool CallCode(const T &param1, const T &param2, const T &result) in CallCode() argument
364 using funct_ptr = T_exp (*)(T_exp param1, T_exp param2); in CallCode()
369 const T_exp curr_result = func(static_cast<T_exp>(param1), static_cast<T_exp>(param2)); in CallCode()
379 …std::cerr << "Failed CallCode for param1=" << param1 << " param2=" << param2 << " and result=" << … in CallCode()
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-func-param2-expected.txt1 SyntaxError: A 'this' parameter must be the first parameter [test-func-param2.ts:17:21]
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_serializer_test.cpp1077 static void* detach(void *param1, void *param2, void *hint) in detach() argument
1080 if (param1 == nullptr && param2 == nullptr) { in detach()