| /arkcompiler/runtime_core/gn/ark-third-party/securec/ |
| D | BUILD.gn | 18 include_dirs = [ "$ark_third_party_root/utils_native/base/include" ] 22 "$ark_third_party_root/utils_native/base/src/securec/fscanf_s.c", 23 "$ark_third_party_root/utils_native/base/src/securec/fwscanf_s.c", 24 "$ark_third_party_root/utils_native/base/src/securec/gets_s.c", 25 "$ark_third_party_root/utils_native/base/src/securec/memcpy_s.c", 26 "$ark_third_party_root/utils_native/base/src/securec/memmove_s.c", 27 "$ark_third_party_root/utils_native/base/src/securec/memset_s.c", 28 "$ark_third_party_root/utils_native/base/src/securec/scanf_s.c", 29 "$ark_third_party_root/utils_native/base/src/securec/securecutil.c", 30 "$ark_third_party_root/utils_native/base/src/securec/secureinput_a.c", [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/02.override-compatible_signatures/ |
| D | interface_override_with_object_example.params.yaml | 17 - { base: "Object", derived: "Derived" } 18 - { base: "Object", derived: "(q: Base)=>Derived" } 19 - { base: "Object", derived: "Number" } 20 - { base: "Object", derived: "T | U" } 21 - { base: "Object", derived: "E1" } 22 - { base: "Object", derived: "Base[]" } 23 - { base: "Object", derived: "[ Base, Base ]" } 25 - { base: "number", derived: "Object" } 26 - { base: "Object", derived: "number" } 27 - { base: "Object", derived: "Derived" } [all …]
|
| D | override_compatibility_function.params.yaml | 17 - base: |- 18 foo( i: (j: Base) => Derived ): void { 22 override foo(i: (j: Base) => Derived): void { 26 new Derived().foo( ( i:Base ): Derived => { return new Derived() } ) 30 - base: |- 31 foo( i: (j: Base) => Derived ): void { 39 new Derived().foo( ( i:Base ): Derived => { return new Derived() } ) 45 - base: |- 46 foo( i: (j: Base) => Derived ): void { 50 override foo(i: (j: Derived) => Base): void { [all …]
|
| D | override_with_object.params.yaml | 18 - base: |- 19 foo(i: Base): void { 26 call: new Derived().foo(new Base()); 30 - base: |- 31 foo(i: Base): void { 43 base: |- 48 override foo(i: Base): void { 51 call: new Derived().foo(new Base()); 55 - base: |- 61 override foo(): Base { [all …]
|
| D | override_compatibility_parameter.params.yaml | 17 - base: |- 18 class Base<T> { 24 class Derived<T> extends Base<T> { 35 base: |- 36 class Base<T> { 42 class Derived<T> extends Base<T> { 49 - base: |- 50 class Base { 56 class Derived extends Base { 66 - base: |- [all …]
|
| D | override_compatibility_array.params.yaml | 17 - base: |- 18 foo(i: Base[]) { 22 override foo(i: Base[]) { 26 new Derived().foo([new Base()]) 33 base: |- 34 foo(i: Base[]) { 46 base: |- 51 foo(i: Base[]) { 59 base: |- 64 override foo(i: Base[]) { [all …]
|
| D | override_compatibility_tuple.ets | 32 type TPL_OB = [Object, Base] 33 type TPL_BO = [Base, Object] 36 type TPL_BD = [Base, Derived] 37 type TPL_DB = [Derived, Base] 38 type TPL_BB = [Base, Base] 39 type TPL_BBB = [Base, [Base, Base]] 40 type TPL_BBD = [Base, [Base, Derived]] 45 class Base { 46 {{c.base}} 49 class Derived extends Base { [all …]
|
| D | interface_override_with_object_example_return_neg.params.yaml | 16 - { base: "Object", derived: "number" } 17 - { base: "number", derived: "Object" } 18 - { base: "Derived", derived: "Object" } 19 - { base: "(q: Base)=>Derived", derived: "Object" } 20 - { base: "T | U", derived: "Object" } 21 - { base: "E1", derived: "Object" } 22 - { base: "Base[]", derived: "Object" } 23 - { base: "[ Base, Base ]", derived: "Object" }
|
| D | override_with_object_n.params.yaml | 18 - base: |- 23 override foo(i: [Object, Base]): void { 27 let i: [Base, Base] = [ new Base(), new Base()]; 32 - base: |- 37 override foo(i: [Object, Base]): void { 41 let i: [Base, Object] = [ new Base(), new Object()]; 46 base: |- 47 foo(): [Base, Object] { 49 return [ new Base(), new Object()]; 60 base: |- [all …]
|
| D | override_compatibility_enum.params.yaml | 17 - base: |- 18 class Base { 24 class Derived extends Base { 37 base: |- 38 class Base { 43 class Derived extends Base { 50 - base: |- 51 class Base { 57 class Derived extends Base { 64 assertEQ( new Base().foo(), SHIPYARD.Flippers ) [all …]
|
| /arkcompiler/runtime_core/static_core/gn/third_party/securec/ |
| D | BUILD.gn | 18 include_dirs = [ "$ark_third_party_root/utils_native/base/include" ] 22 "$ark_third_party_root/utils_native/base/src/securec/fscanf_s.c", 23 "$ark_third_party_root/utils_native/base/src/securec/fwscanf_s.c", 24 "$ark_third_party_root/utils_native/base/src/securec/gets_s.c", 25 "$ark_third_party_root/utils_native/base/src/securec/memcpy_s.c", 26 "$ark_third_party_root/utils_native/base/src/securec/memmove_s.c", 27 "$ark_third_party_root/utils_native/base/src/securec/memset_s.c", 28 "$ark_third_party_root/utils_native/base/src/securec/scanf_s.c", 29 "$ark_third_party_root/utils_native/base/src/securec/securecutil.c", 30 "$ark_third_party_root/utils_native/base/src/securec/secureinput_a.c", [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/04.overloading_and_overriding_in_classes/ |
| D | static_method_over_n2.params.yaml | 16 # overload-equivalent -> hide Base method 17 …- { base: "i: Number|undefined|null", derived: "i: undefined|Number|null", call: "undefined", res:… 18 - { base: "i: Number|undefined|null", derived: "i: undefined|null|Number", call: "null", res: 2 } 19 # not overload-equivalent -> overload base method 20 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "new Number(), 1", res: 1… 21 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "1, new Number()", res: 2… 25 - { base: "i: Number", derived: "i: Double", call: "new Number()", res: 2 } 26 - { base: "i: Number", derived: "i: Double", call: "new Double()", res: 2 } 27 - { base: "i: Double", derived: "i: Number", call: "new Number()", res: 2 } 28 - { base: "i: Double", derived: "i: Number", call: "new Double()", res: 2 } [all …]
|
| D | instance_method_over_n2.params.yaml | 16 # override base method as arguments are the same 17 …- { base: "i: Number|undefined|null", derived: "i: undefined|Number|null", call: "undefined", res:… 18 - { base: "i: Number|undefined|null", derived: "i: undefined|null|Number", call: "null", res: 2 } 19 # overload base method as arguments are different 20 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "new Number(), 1", res: 1… 21 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "1, new Number()", res: 2… 25 - { base: "i: Number", derived: "i: Double", call: "new Number()", res: 2 } 26 - { base: "i: Number", derived: "i: Double", call: "new Double()", res: 2 } 27 - { base: "i: Double", derived: "i: Number", call: "new Number()", res: 2 } 28 - { base: "i: Double", derived: "i: Number", call: "new Double()", res: 2 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/01.type_parameters/02.type_parameter_default/generic_classes/ |
| D | class_type_parameter_default.params.yaml | 17 class Base<T = SomeType> {} 18 class Derived extends Base {} 22 class Base<T = SomeType> {} 23 class Derived extends Base<OtherType> {} 27 class Base<T = SomeType> {} 28 class Derived<T = OtherType> extends Base<T> {} 32 class Base<T = SomeType, U = OtherType> {} 33 class Derived extends Base {} 37 class Base<T, U = OtherType> {} 38 class Derived extends Base<SomeType> {} [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/01.type_parameters/02.type_parameter_default/generic_interfaces/ |
| D | interface_type_parameter_default.params.yaml | 17 interface Base<T = SomeType> {} 18 class Derived implements Base {} 22 interface Base<T = SomeType> {} 23 class Derived implements Base<OtherType> {} 27 interface Base<T = SomeType> {} 28 class Derived<T = OtherType> implements Base<T> {} 32 interface Base<T = SomeType, U = OtherType> {} 33 class Derived implements Base {} 37 interface Base<T, U = OtherType> {} 38 class Derived implements Base<SomeType> {} [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/ |
| D | ExtensionFunctypeUncompatible.ets | 16 class Base {} 17 class Derived extends Base {} 18 type FuncTypeBaseBase = (this: Base) => Base 19 type FuncTypeBaseDerived = (this: Base) => Derived 20 type FuncTypeDerivedBase = (this: Derived) => Base 23 function BB(this: Base) : Base { return new Base() } 24 function BD(this: Base) : Derived { return new Derived() } 25 function DB(this: Derived) : Base { return new Base() } 37 …@@ label1 Error TypeError: Type '(p1: Derived) => Base' cannot be assigned to type '(p1: Base) => … 38 …rror TypeError: Type '(p1: Derived) => Derived' cannot be assigned to type '(p1: Base) => Base' */ [all …]
|
| /arkcompiler/runtime_core/static_core/verification/util/ |
| D | shifted_vector.h | 25 using Base = VECTOR<T>; variable 29 explicit ShiftedVector(typename Base::size_type size) : Base(size) {} in ShiftedVector() 30 typename Base::reference operator[](int idx) 33 return Base::operator[](static_cast<typename Base::size_type>(idx + SHIFT)); 35 typename Base::const_reference &operator[](int idx) const 38 return Base::operator[](static_cast<typename Base::size_type>(idx + SHIFT)); 40 typename Base::reference At(int idx) in At() 43 return Base::at(static_cast<typename Base::size_type>(idx + SHIFT)); in At() 45 typename Base::const_reference &At(int idx) const in At() 48 return Base::at(static_cast<typename Base::size_type>(idx + SHIFT)); in At() [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | regmask_test.cpp | 24 void CompareWithBitset(RegMask mask, BitsetType base) in CompareWithBitset() argument 26 ASSERT_EQ(mask.Count(), base.count()); in CompareWithBitset() 27 if (base.any()) { in CompareWithBitset() 28 ASSERT_EQ(mask.GetMinRegister(), static_cast<uint32_t>(Ctz(base.to_ulong()))); in CompareWithBitset() 29 …ASSERT_EQ(mask.GetMaxRegister(), base.size() - Clz(static_cast<RegMask::ValueType>(base.to_ulong()… in CompareWithBitset() 31 ASSERT_EQ(mask.Size(), base.size()); in CompareWithBitset() 32 ASSERT_EQ(mask.Any(), base.any()); in CompareWithBitset() 33 ASSERT_EQ(mask.None(), base.none()); in CompareWithBitset() 34 for (size_t i = 0; i < base.size(); i++) { in CompareWithBitset() 35 ASSERT_EQ(mask.Test(i), base.test(i)); in CompareWithBitset() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/05.field_declarations/04.overriding_fields/ |
| D | overriding_fields.params.yaml | 17 - base: "field: int" 22 - base: "field: int" 27 - base: "static field: int" 32 - base: "static field: int = 5" 36 let a: Base = new A(); 38 assertEQ(Base.field, 5); 40 - base: "static field: int = 5" 44 let a: Base = new A(); 48 - base: "static field: int = 5" 56 - base: "field: int = 7" [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/tests/ |
| D | regmask_test.cpp | 24 void CompareWithBitset(RegMask mask, BitsetType base) in CompareWithBitset() argument 26 ASSERT_EQ(mask.Count(), base.count()); in CompareWithBitset() 27 if (base.any()) { in CompareWithBitset() 28 ASSERT_EQ(mask.GetMinRegister(), Ctz(base.to_ulong())); in CompareWithBitset() 29 …ASSERT_EQ(mask.GetMaxRegister(), base.size() - Clz(static_cast<RegMask::ValueType>(base.to_ulong()… in CompareWithBitset() 31 ASSERT_EQ(mask.Size(), base.size()); in CompareWithBitset() 32 ASSERT_EQ(mask.Any(), base.any()); in CompareWithBitset() 33 ASSERT_EQ(mask.None(), base.none()); in CompareWithBitset() 34 for (size_t i = 0; i < base.size(); i++) { in CompareWithBitset() 35 ASSERT_EQ(mask.Test(i), base.test(i)); in CompareWithBitset() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/function_type_with_receiver/ |
| D | extensionFunctionTypeCompatible2.ets | 16 class Base {} 17 class Derived extends Base {} 18 type FuncTypeBaseBase = (this: Base) => Base 19 type FuncTypeBaseDerived = (this: Base) => Derived 20 type FuncTypeDerivedBase = (this: Derived) => Base 23 function BB(this: Base) : Base { return new Base() } 24 function BD(this: Base) : Derived { return new Derived() } 25 function DB(this: Derived) : Base { return new Base() }
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/utils/ |
| D | ref_vector.h | 24 // nullptr. As time goes by, the others, even the owner may forget it. Or with more coding base on … 75 explicit ref_vector(const allocator_type &alloc) noexcept : base(alloc) {} 82 // The pointer is stored in the base, and the Iter owns objects instead of their pointers. 86 ref_vector(const ref_vector &other) : base(other.base) {} 88 ref_vector(const ref_vector &other, const allocator_type &alloc) : base(other.base, alloc) {} 90 ref_vector(ref_vector &&other) noexcept : base(std::move(other)) {} 92 …ref_vector(ref_vector &&other, const allocator_type &alloc) noexcept : base(std::move(other), allo… 100 base = other.base; 106 base = std::move(other); 113 // The pointer is stored in the base, and the Iter owns objects instead of their pointers. [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/clean_scenarios/c_api/dynamic/scan_subclasses/ |
| D | README.md | 9 `modules/base.js:` 11 export class Base {} 15 import { Base } from './modules/base'; 17 class Child1 extends Base {} 18 class Child2 extends Base {} 23 Base class info: 26 {"modules/base", "Base"}
|
| /arkcompiler/runtime_core/libabckit/tests/clean_scenarios/cpp_api/dynamic/scan_subclasses/ |
| D | README.md | 9 `modules/base.js:` 11 export class Base {} 15 import { Base } from './modules/base'; 17 class Child1 extends Base {} 18 class Child2 extends Base {} 23 Base class info: 26 {"modules/base", "Base"}
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/class_ops/ |
| D | class_find_iterator_test.ets | 31 base: Singleton 32 constructor (base: Singleton) { 33 this.base = base 37 done: this.index >= this.base.data.length, 38 value: this.index >= this.base.data.length ? undefined : this.base.data[this.index++] 59 base: Singleton 60 constructor (base: Singleton) { 61 this.base = base 66 done: this.index >= this.base.data.length, 67 value: this.index >= this.base.data.length ? undefined : this.base.data[this.index++]
|