| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/ |
| D | array_with_type_parameter.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 86 /* @@? 18:5 Error TypeError: Cannot use array creation expression with type parameter. */ 87 /* @@? 22:5 Error TypeError: Cannot use array creation expression with type parameter. */ 88 /* @@? 23:5 Error TypeError: Cannot use array creation expression with type parameter. */ 89 /* @@? 31:5 Error TypeError: Cannot use array creation expression with type parameter. */ 90 /* @@? 35:5 Error TypeError: Cannot use array creation expression with type parameter. */ 91 /* @@? 41:5 Error TypeError: Cannot use array creation expression with type parameter. */ 92 /* @@? 42:5 Error TypeError: Cannot use array creation expression with type parameter. */ 93 /* @@? 64:9 Error TypeError: Cannot use array creation expression with type parameter. */ 94 /* @@? 70:5 Error TypeError: Cannot use array creation expression with type parameter. */ [all …]
|
| /arkcompiler/ets_runtime/test/sharedtest/sharedcollectionsexception/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 61 Init with small first element: -1 success. 64 Create with non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable val… 66 Create from non-sendable iterator fail. err: BusinessError: Parameter error.Only accept sendable va… 67 Create from non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable val… 68 Create from mapper: non-sendable element fail. err: BusinessError: Parameter error.Only accept send… 72 concat with non-sendable array fail.err: BusinessError: Parameter error.Only accept sendable value.… 73 concat with non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable val… 75 fill array with non-sendable object and position fail. err: BusinessError: Parameter error.Only acc… 76 fill array with non-sendable object and start position fail. err: BusinessError: Parameter error.On… [all …]
|
| D | sharedcollectionsexception.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 23 // @ts-nocheck 416 const arr = new SendableArray<string>(-1); 417 print("Init with small first element: -1 success."); 419 print("Init with small first element: -1, err: " + err + ", errCode: " + err.code); 438 print("Create with non-sendable element success."); 440 print("Create with non-sendable element fail. err: " + err + ", errCode: " + err.code); 447 SendableArray.from<NormalClass>(Array.from([new NormalClass(1), new NormalClass(2)])); 448 print("Create from non-sendable iterator success."); 450 print("Create from non-sendable iterator fail. err: " + err + ", errCode: " + err.code); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ts_import_ets/ts/ |
| D | test7.ts.json | 3 "Copyright (c) 2023-2024 Huawei Device Co., Ltd.", 8 "http://www.apache.org/licenses/LICENSE-2.0", 24 … \"Sendable\" interfaces are allowed for importing from ets into ts file (arkts-no-ts-import-ets)", 34 … \"Sendable\" interfaces are allowed for importing from ets into ts file (arkts-no-ts-import-ets)", 44 …"rule": "Casting \"Non-sendable\" data to \"Sendable\" type is not allowed (arkts-sendable-as-expr… 54 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)… 64 …"rule": "Casting \"Non-sendable\" data to \"Sendable\" type is not allowed (arkts-sendable-as-expr… 74 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)… 84 …"rule": "Casting \"Non-sendable\" data to \"Sendable\" type is not allowed (arkts-sendable-as-expr… 94 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | numeric_semantics2.ets.migrate.json | 8 "http://www.apache.org/licenses/LICENSE-2.0", 24 …e": "Non-declaration statements in namespaces are not supported (single semicolons are considered … 34 …e": "Non-declaration statements in namespaces are not supported (single semicolons are considered … 44 …e": "Non-declaration statements in namespaces are not supported (single semicolons are considered … 54 …e": "Non-declaration statements in namespaces are not supported (single semicolons are considered … 64 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 74 … with property names that are not identifiers are not supported (arkts-identifiers-as-prop-names)", 84 "rule": "Sparse array is not supported in ArkTS1.2 (arkts-no-sparse-array)", 94 "rule": "Array bound not checked. (arkts-runtime-array-check)", 104 …e": "Non-declaration statements in namespaces are not supported (single semicolons are considered … [all …]
|
| D | sendable_generic_types.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 28 …bleClass6<T=NonSendableClass3> { // ERROR, sendable class generic type cannot be non-sendable-class 38 …ass5<number, NonSendableClass3>; // ERROR, sendable class generic type cannot be non-sendable-class 46 …ew b<number, NonSendableClass3>; // ERROR, sendable class generic type cannot be non-sendable-class 78 export class Array<T> { 88 let arr1: collections.Array<NoneSendableClassA> = new collections.Array<NoneSendableClassA>(); // e… 89 let arr2: collections.Array<NoneSendableClassA> = new collections.Array(); // error 90 let arr3: collections.Array<NoneSendableClassA> = new collections.Array<SendableClassB>(); //error 91 let arr4: collections.Array<SendableClassB> = new collections.Array<SendableClassB>(); 92 let arr5: collections.Array<SendableClassB> = new collections.Array();
|
| D | sendable_class_interface_property.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 65 prop1: string[]; // ERROR, sendable class property cannot be array 66 prop2: NonSendableClass2; // ERROR, sendable class property cannot be non-sendable-class 67 …prop3: NonSendableClass2 | null; // ERROR, sendable class property cannot be non-sendable-class un… 68 …prop4: NonSendableInterface | number; // ERROR, sendable class property cannot be non-sendable-cla… 69 …lass2 | null | undefined; // ERROR, sendable class property cannot be non-sendable-class union type 70 prop6: alias2; // ERROR, sendable class property cannot be non-sendable-type 71 prop7: alias3; // ERROR, sendable class property cannot be non-sendable-type 72 prop8: RegularEnum; // ERROR, sendable class property cannot be non-sendable-type 73 prop9: RegularEnum1; // ERROR, sendable class property cannot be non-sendable-type [all …]
|
| D | numeric_semantics2.ets.arkts2.json | 8 "http://www.apache.org/licenses/LICENSE-2.0", 24 …e": "Non-declaration statements in namespaces are not supported (single semicolons are considered … 34 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 44 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 54 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 64 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 74 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 84 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 94 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 104 …e": "Non-declaration statements in namespaces are not supported (single semicolons are considered … [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | readonly_union_negative.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 16 // Negative test cases for readonly union types - these should fail compilation 18 // Error: readonly on a non-applicable primitive type in a union 22 // Error: readonly on a non-applicable object type in a union 27 // Error: readonly on a non-applicable type, even if another member is applicable 49 /* @@? 19:49 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and t… 50 /* @@? 24:51 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and t… 51 /* @@? 28:50 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and t… 53 /* @@? 32:47 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and t… 54 /* @@? 36:55 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and t… [all …]
|
| D | array_union_type_not_contains_nullish_type.ets | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 24 … @@@ label Error TypeError: Cannot use array creation expression with non-constructable element ty…
|
| /arkcompiler/runtime_core/static_core/verification/config/context/ |
| D | context.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 28 #include <array> 39 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 51 std::array<PandaVector<PandaString>, static_cast<size_t>(WhitelistKind::LAST)> whitelistNames; 53 // NOLINTEND(misc-non-private-member-variables-in-classes) 59 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 68 std::array<PandaVector<PandaString>, static_cast<size_t>(WhitelistKind::LAST)> names; 69 …std::array<Synchronized<PandaUnorderedSet<Method::UniqId>>, static_cast<size_t>(WhitelistKind::LAS… 73 // NOLINTEND(misc-non-private-member-variables-in-classes)
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/ |
| D | test_core_typedarray_ctors.j2 | 7 * http://www.apache.org/licenses/LICENSE-2.0 26 …failures += check(createNonEmptyWithLength(),"Create default non empty {{.item.objectType}} from l… 27 …failures += check(createTypedArrayWithNegativeLength(),"Create default non empty {{.item.objectTyp… 28 …failures += check(createTypedArrayWithNegativeInfinityLength(),"Create default non empty {{.item.o… 29 …failures += check(createTypedArrayWithPositiveInfinityLength(),"Create default non empty {{.item.o… 32 …failures += check(createNonEmptyWithFloatingLength(),"Create default non empty {{.item.objectType}… 34 …failures += check(createNonEmptyWithIterable(),"Create default non empty {{.item.objectType}} from… 45 …eateTAFromNonEmptyArrayBuffer(),"Create default empty {{.item.objectType}} from non empty source"); 46 …ayBufferOneParamNoOffset(),"Create default empty {{.item.objectType}} from non empty source one pa… 47 …OneOffsetWithWrongNumber(),"Create default empty {{.item.objectType}} from non empty source one pa… [all …]
|
| D | test_core_typeduarray_ctors.j2 | 7 * http://www.apache.org/licenses/LICENSE-2.0 27 …failures += check(createNonEmptyWithLength(),"Create default non empty {{.item.objectType}} from l… 28 …failures += check(createNonEmptyWithFloatingLength(),"Create default non empty {{.item.objectType}… 29 …failures += check(createtypedUArrayWithNegativeLength(),"Create default non empty {{.item.objectTy… 30 …failures += check(createtypedUArrayWithNegativeInfinityLength(),"Create default non empty {{.item.… 31 …failures += check(createtypedUArrayWithPositiveInfinityLength(),"Create default non empty {{.item.… 35 …failures += check(createNonEmptyWithIterable(),"Create default non empty {{.item.objectType}} from… 45 …eateTAFromNonEmptyArrayBuffer(),"Create default empty {{.item.objectType}} from non empty source"); 46 …ayBufferOneParamNoOffset(),"Create default empty {{.item.objectType}} from non empty source one pa… 47 …OneOffsetWithWrongNumber(),"Create default empty {{.item.objectType}} from non empty source one pa… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
| D | ets_arraybuffer.h | 2 * Copyright (c) 2023-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 57 * Creates a byte array in non-movable space. 58 * @param length of created array. 59 * NOTE: non-movable creation ensures that native code can obtain raw pointer to buffer. 63 … return EtsByteArray::Create(length, SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT)->GetCoreType(); in AllocateNonMovableArray() 66 ALWAYS_INLINE static EtsLong GetAddress(const EtsByteArray *array) in GetAddress() argument 68 return reinterpret_cast<EtsLong>(array->GetData<void>()); in GetAddress() 75 ASSERT(!coro->HasPendingException()); in Create() 78 auto *cls = PlatformTypes(coro)->escompatArrayBuffer; in Create() [all …]
|
| /arkcompiler/ets_frontend/test262/ |
| D | test-list-test262-other-fastverify-qemu-aot-pgo-built-ins-RegExp-part1.txt | 1 test262/data/other_tests/built-ins/RegExp/character-class-escape-non-whitespace-u180e.js 2 test262/data/other_tests/built-ins/RegExp/duplicate-flags.js 3 test262/data/other_tests/built-ins/RegExp/is-a-constructor.js 4 test262/data/other_tests/built-ins/RegExp/prop-desc.js 5 test262/data/other_tests/built-ins/RegExp/lastIndex.js 6 test262/data/other_tests/built-ins/RegExp/u180e.js 7 test262/data/other_tests/built-ins/RegExp/quantifier-integer-limit.js 8 test262/data/other_tests/built-ins/RegExp/regexp-class-chars.js 9 test262/data/other_tests/built-ins/RegExp/character-class-escape-non-whitespace.js 10 test262/data/other_tests/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-… [all …]
|
| D | sendable_tests.txt | 1 sendable/builtins/ASON/15.12-0-1.js 2 sendable/builtins/ASON/15.12-0-2.js 3 sendable/builtins/ASON/15.12-0-4.js 4 sendable/builtins/ASON/15.12-0-3.js 6 sendable/builtins/ASON/parse/15.12.1.1-0-1.js 7 sendable/builtins/ASON/parse/15.12.1.1-0-2.js 8 sendable/builtins/ASON/parse/15.12.1.1-0-3.js 9 sendable/builtins/ASON/parse/15.12.1.1-0-4.js 10 sendable/builtins/ASON/parse/15.12.1.1-0-5.js 11 sendable/builtins/ASON/parse/15.12.1.1-0-6.js [all …]
|
| D | es2015_tests.txt | 1 built-ins/Array/15.4.5.1-5-1.js 2 built-ins/Array/15.4.5.1-5-2.js 3 built-ins/Array/15.4.5-1.js 4 built-ins/Array/constructor.js 5 built-ins/Array/from/Array.from_arity.js 6 built-ins/Array/from/Array.from_forwards-length-for-array-likes.js 7 built-ins/Array/from/Array.from-descriptor.js 8 built-ins/Array/from/Array.from-name.js 9 built-ins/Array/from/calling-from-valid-1-noStrict.js 10 built-ins/Array/from/calling-from-valid-1-onlyStrict.js [all …]
|
| D | es2023_tests.txt | 1 built-ins/Array/prototype/findLast/predicate-call-parameters.js 2 built-ins/Array/prototype/findLast/return-abrupt-from-predicate-call.js 3 built-ins/Array/prototype/findLast/call-with-boolean.js 4 built-ins/Array/prototype/findLast/not-a-constructor.js 5 built-ins/Array/prototype/findLast/return-undefined-if-predicate-returns-false-value.js 6 built-ins/Array/prototype/findLast/length.js 7 built-ins/Array/prototype/findLast/return-abrupt-from-property.js 8 built-ins/Array/prototype/findLast/return-abrupt-from-this.js 9 built-ins/Array/prototype/findLast/return-abrupt-from-this-length-as-symbol.js 10 built-ins/Array/prototype/findLast/predicate-call-this-strict.js [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | simplify_string_builder.h | 2 * Copyright (c) 2023-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 72 Inst *instance {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 73 Inst *ctorCall {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 74 Inst *toStringCall {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 75 size_t appendCount {0}; // NOLINT(misc-non-private-member-variables-in-classes) 76 std::array<IntrinsicInst *, ARGS_NUM_4> 77 appendIntrinsics {}; // NOLINT(misc-non-private-member-variables-in-classes) 81 …IntrinsicInst *CreateConcatIntrinsic(const std::array<IntrinsicInst *, ARGS_NUM_4> &appendIntrinsi… 87 … const std::array<IntrinsicInst *, ARGS_NUM_4> &appendIntrinsics, [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/lib/ |
| D | spec.rb | 2 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 # http://www.apache.org/licenses/LICENSE-2.0 27 # Array of tests not matching the spec 37 warn "Non testable group \"#{ntg['title']}\" not found in ISA." 119 warn "Non testable description \"#{ntda}\" in group \"#{ntg['title']}\" not found in iSA." 130 … warn "Non testable instruction \"#{nti['sig']}\" in group \"#{ntg['title']}\" not found in ISA." 141 warn "Non testable exception \"#{nte}\" in group \"#{ntg['title']}\" not found in ISA." 152 warn "Non testable verification \"#{ntv}\" in group \"#{ntg['title']}\" not found in ISA." 159 # split long-text description into array of assertions 165 result[-1] += ".#{p}" [all …]
|
| /arkcompiler/runtime_core/tests/cts-coverage-tool/lib/ |
| D | spec.rb | 2 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 # http://www.apache.org/licenses/LICENSE-2.0 27 # Array of tests not matching the spec 37 warn "Non testable group \"#{ntg['title']}\" not found in ISA." 119 warn "Non testable description \"#{ntda}\" in group \"#{ntg['title']}\" not found in iSA." 130 … warn "Non testable instruction \"#{nti['sig']}\" in group \"#{ntg['title']}\" not found in ISA." 141 warn "Non testable exception \"#{nte}\" in group \"#{ntg['title']}\" not found in ISA." 152 warn "Non testable verification \"#{ntv}\" in group \"#{ntg['title']}\" not found in ISA." 159 # split long-text description into array of assertions 165 result[-1] += ".#{p}" [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/sampler/ |
| D | samples_record.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 27 const int MAX_NODE_COUNT = 20000; // 20000:the maximum size of the array 31 int lineNumber = -1; 32 int columnNumber = -1; 50 std::array<CpuProfileNode, MAX_NODE_COUNT> nodes; 67 // NOLINTBEGIN(misc-non-private-member-variables-in-classes,-warnings-as-errors) 69 int lineNumber = -1; 70 // NOLINTEND(misc-non-private-member-variables-in-classes,-warnings-as-errors) 78 // NOLINTBEGIN(misc-non-private-member-variables-in-classes,-warnings-as-errors) 81 // NOLINTEND(misc-non-private-member-variables-in-classes,-warnings-as-errors)
|
| /arkcompiler/runtime_core/static_core/verification/util/tests/ |
| D | struct_field_test.cpp | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 17 #include <array> 30 // NOLINTBEGIN(misc-non-private-member-variables-in-classes,readability-magic-numbers) 42 // NOLINTEND(misc-non-private-member-variables-in-classes,readability-magic-numbers) 48 return it->second.Of(num0); in Access() 61 std::array<int64_t, 3U> arr {}; in TEST_F() 64 // NOLINTNEXTLINE(readability-magic-numbers) in TEST_F() 71 // NOLINTNEXTLINE(readability-magic-numbers) in TEST_F()
|
| /arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
| D | recipe43.md | 1 # Array literals must contain elements of only inferrable types 3 Rule ``arkts-no-noninferrable-arr-literals`` 7 Basically, ArkTS infers the type of an array literal as a union type of its 8 contents. However, a compile-time error occurs if there is at least one 9 element with a non-inferrable type (e.g. untyped object literal). 38 - Recipe 038: Object literal must correspond to some explicitly declared class or interface (``ark… 39 - Recipe 040: Object literals cannot be used as type declarations (``arkts-no-obj-literals-as-type…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/testing/ |
| D | arktest.ets | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 75 * @param value1 first value for non-equality 76 * @param value2 second value for non-equality 77 * @param comment optional comment will be printed if non-equality failed 78 * @throws AssertionError if non-equality failed 81 …assertCommon(value1 !== value2, "expected non-equality failed: '" + value1 + "' !== '" + value2 + … 93 let difference = Math.abs(value1 - value2); 101 * @param value1 first value for non-equality 102 * @param value2 second value for non-equality [all …]
|