| /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
|
| D | recipe102.md | 7 In TypeScript, an interface that extends two other interfaces with the same method 9 ArkTS because ArkTS does not allow an interface to contain two methods with 10 signatures that are not distinguishable, e.g., two methods that have the same
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | literals_as_prop_names.sts | 21 'Two': number; 26 2: 'two', 27 'Two': 2, 32 console.log(litAsPropName["Two"]); 37 Two: number; 42 _2: 'two', 43 Two: 2, 49 console.log(litAsPropName_fix.Two);
|
| /arkcompiler/ets_frontend/ets2panda/linter/test_rules/ |
| D | rule69.sts | 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/interop_js/tests/declgen_ets2ts/unions/ |
| D | unions.ts | 16 const TWO = 2; constant 32 assertEq(NumberOrStringEquality(TWO, TWO), true); 33 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.sts | 24 two: Y; 28 this.two = p1; 32 return [this.two, this.one]; // Values swapped here !!!! 41 assert(tp.two == result[0])
|
| D | tuple_as_generic_5.sts | 24 two: Y; 28 this.two = p1; 32 return [this.one, this.two];
|
| /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
|
| D | arrayReverseCase.js | 16 const array1 = ['one', 'two', 'three']; 18 // Expected output: "array1:" Array ["one", "two", "three"] 22 // Expected output: "reversed1:" Array ["three", "two", "one"] 26 // Expected output: "array1:" Array ["three", "two", "one"]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/02.override-compatible_signatures/ |
| D | neg.sts | 19 …A compile-time error occurs if a package declares two functions with override-equivalent signature… 20 …two methods with override-equivalent signatures or two constructors with override-equivalent signa…
|
| D | pos.sts | 19 …A compile-time error occurs if a package declares two functions with override-equivalent signature… 20 …two methods with override-equivalent signatures or two constructors with override-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_3.sts | 18 …Two instance methods, two static methods with the same name or, two constructors are defined in th…
|
| D | single_class_over_generic_2.sts | 18 …Two instance methods, two static methods with the same name or, two constructors are defined in th…
|
| D | single_class_over_generic_1.sts | 18 …Two instance methods, two static methods with the same name or, two constructors are defined in th…
|
| D | single_class_overload_n.sts | 20 …Two instance methods, two static methods with the same name or, two constructors are defined in th…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/classes/ |
| D | classes.ts | 16 const TWO = 2; constant 33 const d = new Derived(TWO, THREE); 34 assertEq(d.a, TWO);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/08.method_overload_signatures/ |
| D | method_overload_2.sts | 17 desc: Overload two methods, two inherited. 18 assert: If two methods of a class (whether both declared in the same class, or both inherited by a …
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
| D | tuple_types_17.sts | 16 type Two = [Int|undefined, string] 18 let t: Two = [undefined, "Test"];
|
| D | tuple_types_18.sts | 18 type Two = [One|undefined, string] 21 let t: Two = [undefined, "Test"];
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
| D | standardize.h | 32 * maple provide a default implement from three address to two address 36 * maple provide a default implement from two address to one address for unary op 52 /* Operand number for two addressing mode is 2 */ in NeedAddressMapping()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/methods/ |
| D | methods.ts | 18 const TWO = 2; constant 48 assertEq(o.SumIntArray([ONE, TWO, THREE, FOUR, FIVE]), FIFTEEN); 54 …assertEq(o.SumIntVariadic(ONE, TWO, THREE, FOUR, FIVE).toFixed(PRECISION), FIFTEEN.toFixed(PRECISI…
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/sendable/ |
| D | sendable-field-type-4.ts | 18 TWO 23 TWO
|
| D | sendable-field-type-3.ts | 19 TWO 24 TWO
|