| /arkcompiler/ets_runtime/test/jittest/bytecode_to_cir_with_insufficient_profile_004/ |
| D | bytecode_to_cir_with_insufficient_profile_004.ts | 26 function PrintWithTwo(one, two) 28 print("function with two args: " + one + ", " + two); 31 function PrintWithThree(one, two, three) 33 print("function with three args: " + one + ", " + two + ", " + three); 36 function PrintWithFour(one, two, three, four) 38 print("function with four args: " + one + ", " + two + ", " + three + "," + four); 52 PrintWithTwo(one, two) 54 print("class function with two args: " + one + ", " + two); 57 PrintWithThree(one, two, three) 59 print("class function with three args: " + one + ", " + two + ", " + three); [all …]
|
| D | expect_output.txt | 16 function with two args: 1, 2 21 class function with two args: 1, 2 27 function with two args: 1, 2 32 class function with two args: 1, 2
|
| /arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
| D | recipe69.md | 16 let [one, two] = [1, 2]; // semicolon is required here 17 [one, two] = [two, one] 31 let two = arr[1] 34 one = two 35 two = tmp
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | literals_as_prop_names.ets | 21 Two = "Two" 27 'Two': number; 32 2: 'two', 33 'Two': 2, 38 console.log(litAsPropName["Two"]); 43 Two: number; 48 _2: 'two', 49 Two: 2, 55 console.log(litAsPropName_fix.Two);
|
| D | literals_as_prop_names.ets.migrate.ets | 26 Two = "Two" 32 Two: number; 37 __2: 'two', 38 Two: 2.0, 43 console.log(litAsPropName.Two); 48 Two: number; 53 _2: 'two', 54 Two: 2.0, 60 console.log(litAsPropName_fix.Two);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/05.object_literal/02.object_literal_of_interface_type/ |
| D | interface_composite_initialization_order.ets | 22 two: String; 28 let a: Ordered = { four: "four", three: "three", two: "two", one: "one"} 31 assertEQ<String, String>(a.two, "two")
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/05.object_literal/01.object_literal_of_class_type/ |
| D | class_composite_initialization_order.ets | 22 two: String = ""; 28 let a: Ordered = { four: "four", three: "three", two: "two", one: "one"} 31 assertEQ<String, String>(a.two, "two")
|
| /arkcompiler/ets_runtime/test/moduletest/arraywith/ |
| D | expect_output.txt | 22 [1,"two","three","four"] 24 [null,"two",3,4] 25 [false,"two",3,"four"] 27 [1,"two",null,"four"] 28 [1,"two",3,null,5]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/rules/ |
| D | rule69.ets | 16 let [one, two] = [1, 2]; 17 [one, two] = [two, one] 27 one = two 28 two = tmp
|
| /arkcompiler/runtime_core/static_core/verification/util/tests/ |
| D | enum_tag_test.cpp | 24 enum class Numbers { ONE, TWO, THREE, FOUR, FIVE }; enumerator 32 …using EnumTag5 = TagForEnum<Numbers, Numbers::ONE, Numbers::TWO, Numbers::THREE, Numbers::FOUR, Nu… in TEST_F() 36 EXPECT_EQ(EnumTag5::GetIndexFor(Numbers::TWO), 1UL); in TEST_F() 39 using EnumTag3 = TagForEnum<Numbers, Numbers::ONE, Numbers::TWO, Numbers::THREE>; in TEST_F() 43 EXPECT_EQ(EnumTag3::GetIndexFor(Numbers::TWO), 1UL); in TEST_F()
|
| D | saturated_enum_test.cpp | 25 enum class Numbers { ONE, TWO, THREE, FOUR, FIVE }; enumerator 29 SaturatedEnum<Numbers, Numbers::FOUR, Numbers::THREE, Numbers::TWO, Numbers::ONE> sEnum; in TEST_F() 36 EXPECT_FALSE(sEnum[Numbers::TWO]); in TEST_F() 42 EXPECT_TRUE(sEnum[Numbers::TWO]); in TEST_F() 54 return en != Numbers::TWO; in TEST_F()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/02.access_to_common_union_members/ |
| D | accessto_common_union_members_19.ets | 20 enum NumberEnum { One, Two }; 21 enum StringEnum { One = "One", Two = "Two" }; 28 let strUnion: Union2 = StringEnum.Two;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/unions/ |
| D | unions.ts | 16 const TWO = 2; constant 33 assertEq(NumberOrStringEquality(TWO, TWO), true); 34 assertEq(NumberOrStringEquality(TWO, '2'), false);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/03.types/References_Types/Tuples_type/ |
| D | tuple_as_generic_6.ets | 24 two: Y; 28 this.two = p1; 32 return [this.two, this.one]; // Values swapped here !!!! 41 assertEQ(tp.two, result[0])
|
| /arkcompiler/runtime_core/taihe/test/ani_enum/idl/ |
| D | enum_test.taihe | 47 TWO = 0, 55 TWO = 0, 63 TWO = 0, 71 TWO = 0, 79 TWO = "i am boy",
|
| /arkcompiler/ets_runtime/test/moduletest/arrayReverseCase/ |
| D | expect_output.txt | 14 array1: one,two,three 15 reversed1: three,two,one 16 array1: three,two,one
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/sendable/ |
| D | sendable-field-type-5.ts | 20 TWO 33 TWO 68 TWO 80 TWO
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/namespace_tests/ |
| D | namespace_merged.ets | 24 return "Function Two"; 31 assertEQ(MergedNamespace.functionTwo(), "Function Two", "Function two failed")
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/01.overload-equivalent_signatures/ |
| D | neg.ets | 19 …A compile-time error occurs if a package declares two functions with overload-equivalent signature… 20 …two methods with overload-equivalent signatures or two constructors with overload-equivalent signa…
|
| D | pos.ets | 19 …A compile-time error occurs if a package declares two functions with overload-equivalent signature… 20 …two methods with overload-equivalent signatures or two constructors with overload-equivalent signa…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/04.overloading_and_overriding_in_classes/ |
| D | single_class_over_generic_1.ets | 18 …Two instance methods, two static methods with the same name or, two constructors are defined in th…
|
| D | single_class_over_generic_2.ets | 18 …Two instance methods, two static methods with the same name or, two constructors are defined in th…
|
| D | single_class_over_generic_3.ets | 18 …Two instance methods, two static methods with the same name or, two constructors are defined in th…
|
| /arkcompiler/ets_runtime/test/aottest/supercallforward/ |
| D | supercallforward.ts | 56 let c = new Child("two", 2); 57 assert_true(c.name === "two"); 82 let c = new GrandChild("two", 2); 83 assert_true(c.name === "two"); 116 let c = new ChildRestArgs("two", 2); 118 assert_true(c.args[0] === "two"); 144 let c = new GrandChildRestArgs("two", 2); 146 assert_true(c.args[0] === "two"); 181 let c = new ChildArguments("two", 2); 183 assert_true(c.args[0] === "two"); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/depend_export/ |
| D | depend_export.ts | 16 const TWO = 2; constant 34 const d = new Derived(TWO, THREE); 35 assertEq(d.a, TWO);
|