| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Exceptions.sts | 22 constructor() { 26 constructor(s: String) { 30 constructor(s: String, cause: Object) { 40 constructor() { 44 constructor(s: String) { 48 constructor(s: String, cause: Object) { 57 constructor() { 61 constructor(s: String) { 65 constructor(s: String, cause: Object) { 74 constructor() { [all …]
|
| D | Errors.sts | 26 constructor(message: String) { 30 constructor(message?: String, options?: ErrorOptions) { 40 constructor(message?: String, options?: ErrorOptions) { 49 constructor(message?: String, options?: ErrorOptions) { 58 constructor(message?: String, options?: ErrorOptions) { 67 constructor(message?: String, options?: ErrorOptions) { 84 constructor(message?: String, options?: ErrorOptions) { 93 constructor(message?: String, options?: ErrorOptions) { 110 constructor(message?: String, options?: ErrorOptions) { 119 constructor(message?: String, options?: ErrorOptions) { [all …]
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | ecma_container_common.h | 73 JSHandle<JSTaggedValue> constructor(thread, result); in CreateArrayList() 75 factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor)); in CreateArrayList() 85 JSHandle<JSTaggedValue> constructor(thread, result); in CreatePlainArray() 87 factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor)); in CreatePlainArray() 99 JSHandle<JSTaggedValue> constructor(thread, result); in CreateJSApiDeque() 100 …APIDeque> deque(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor)); in CreateJSApiDeque() 110 JSHandle<JSTaggedValue> constructor(thread, result); in CreateHashMap() 111 …APIHashMap> map(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor)); in CreateHashMap() 122 JSHandle<JSTaggedValue> constructor(thread, result); in CreateHashSet() 123 …APIHashSet> set(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor)); in CreateHashSet() [all …]
|
| /arkcompiler/ets_frontend/test262/ |
| D | intl_tests.txt | 24 intl402/Collator/constructor-options-throwing-getters.js 41 intl402/Collator/prototype/constructor/prop-desc.js 42 intl402/Collator/prototype/constructor/value.js 88 intl402/DateTimeFormat/constructor-options-fractionalSecondDigits-invalid.js 89 intl402/DateTimeFormat/constructor-options-order-dayPeriod.js 90 intl402/DateTimeFormat/constructor-default-value.js 94 intl402/DateTimeFormat/constructor-options-timeStyle-invalid.js 96 intl402/DateTimeFormat/constructor-calendar-numberingSystem-order.js 97 intl402/DateTimeFormat/constructor-options-dateStyle-invalid.js 99 intl402/DateTimeFormat/constructor-options-numberingSystem-invalid.js [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/regresssuper/ |
| D | regresssuper.js | 71 constructor() { method in TestA 72 print("TestA", this.constructor.name, new.target.name); 76 constructor() { method in TestB 78 print("TestB", this.constructor.name, new.target.name); 83 constructor() { method in TestC 84 print("TestC", this.constructor.name, new.target.name); 90 let c1 = Reflect.construct(TestB, [], TestC.prototype.constructor); 91 let c2 = Reflect.construct(TestB, [], c1.constructor);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/04.overloading_and_overriding_in_classes/ |
| D | constructor_overload.sts | 33 constructor() { res = 1;} 34 constructor(i: number) { res = 2;} 35 constructor(i: string) { res = 3;} 36 constructor(i: Number) { res = 4;} 37 constructor(i: byte[]) { res = 5;} 38 constructor(i: TPL) { res = 6;} 39 constructor(i: BoolFun) { res = 7;} 40 constructor(i: Number|undefined|null) { res = 8;} 41 constructor(i: Gen<T>) { res = 9;}
|
| /arkcompiler/ets_runtime/test/aottest/pgo_aot_newobj/ |
| D | expect_output.txt | 18 A:constructor! 20 B:constructor! 24 A:constructor! 28 D:constructor! 30 B:constructor! 36 C:constructor! 45 A:constructor! 47 B:constructor!
|
| D | pgo_expect_output.txt | 18 A:constructor! 20 B:constructor! 24 A:constructor! 28 D:constructor! 30 B:constructor! 36 C:constructor! 45 A:constructor! 47 B:constructor!
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/09.constructor_declaration/03.constructor_body/ |
| D | Implicitly_superclass_constructor_invocation.sts | 18 …constructor body does not begin with an explicit constructor call and the constructor being declar… 24 public constructor() { 30 public constructor() {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic/ts_to_ets/ |
| D | generic.js | 22 constructor(value) { method in exports.LiteralClass 33 constructor(value) { method in exports.UnionClass 44 constructor(value) { method in exports.InterfaceClass 55 constructor(value) { method in exports.GAbstract 66 constructor(value) { method in exports.AbstractClass 71 constructor(content) { method in exports.GClass
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | superInConstructor3.sts | 19 public constructor() { 23 public constructor(arg: boolean) { 28 public constructor() { 31 public constructor(arg : A) { 33 public constructor(arg : int) { 35 public constructor(arg : Int[]) { 43 /* @@? 29:53 Error TypeError: Using super is not allowed in constructor */
|
| /arkcompiler/ets_runtime/ecmascript/napi/test/ |
| D | jsnapi_sendable_tests.cpp | 158 Local<FunctionRef> constructor = FunctionRef::NewSendableClassFunction( in GetNewSendableClassFunction() local 161 return constructor; in GetNewSendableClassFunction() 167 Local<FunctionRef> constructor = GetNewSendableClassFunction(vm_, FunctionRef::Null(vm_)); in HWTEST_F_L0() local 169 ASSERT_EQ("name", constructor->GetName(vm_)->ToString(vm_)); in HWTEST_F_L0() 170 ASSERT_TRUE(constructor->IsFunction(vm_)); in HWTEST_F_L0() 171 JSHandle<JSTaggedValue> jsConstructor = JSNApiHelper::ToJSHandle(constructor); in HWTEST_F_L0() 174 Local<JSValueRef> functionPrototype = constructor->GetFunctionPrototype(vm_); in HWTEST_F_L0() 181 … thread_, JSNApiHelper::ToJSHandle(constructor), globalConst->GetHandledPrototypeString()) in HWTEST_F_L0() 190 Local<FunctionRef> constructor = GetNewSendableClassFunction(vm_, FunctionRef::Null(vm_)); in HWTEST_F_L0() local 191 Local<ObjectRef> prototype = constructor->GetFunctionPrototype(vm_); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_frontend/testTs/expect/types/specifyingTypes/typeLiterals/ |
| D | functionLiteralForOverloads2.txt | 1 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 24, 'v… 2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 3 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 4 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2… 6 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 24, 'v… 7 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 8 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 9 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2…
|
| /arkcompiler/ets_frontend/testTs/expect/types/objectTypeLiteral/constructSignatures/ |
| D | constructSignaturesWithOverloads.txt | 1 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 24, 'v… 2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 3 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 4 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2… 6 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 24, 'v… 7 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 8 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 9 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2…
|
| D | constructSignaturesWithIdenticalOverloads.txt | 1 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 24, 'v… 2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 3 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 4 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2… 6 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 24, 'v… 7 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 8 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t':… 9 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2…
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-class-modifier-keywords-2-expected.txt | 23 "constructor": { 27 "name": "constructor", 39 "kind": "constructor", 134 "constructor": { 138 "name": "constructor", 150 "kind": "constructor", 271 "constructor": { 275 "name": "constructor", 287 "kind": "constructor", 395 "constructor": { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/09.constructor_declaration/ |
| D | constructor_declaration.sts | 19 desc: Class constructor declaration 20 …constructor is used in the creation of an object that is an instance of a class. A constructor dec… 28 {{mod}} constructor() {
|
| D | constructor_declaration_with_type_arguments.sts | 17 desc: Class constructor declaration 18 …constructor is used in the creation of an object that is an instance of a class. A constructor dec… 25 public constructor<T>(a: int) {
|
| /arkcompiler/ets_runtime/test/moduletest/typedarrayjoin/ |
| D | typedarrayjoin.js | 40 constructors.forEach(([constructor, arr]) => { 41 typedArray = new constructor(arr); 55 constructs.forEach(([constructor, arr]) => { 56 typedArrays = new constructor(arr);
|
| /arkcompiler/ets_runtime/test/fuzztest/weaksetref_fuzzer/ |
| D | weaksetref_fuzzer.cpp | 44 JSHandle<JSTaggedValue> constructor = env->GetBuiltinsWeakSetFunction(); in WeakSetRefGetSizeFuzzTest() local 45 … auto obj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor); in WeakSetRefGetSizeFuzzTest() 72 JSHandle<JSTaggedValue> constructor = env->GetBuiltinsWeakSetFunction(); in WeakSetRefGetTotalElementsFuzzTest() local 73 … auto obj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor); in WeakSetRefGetTotalElementsFuzzTest() 100 JSHandle<JSTaggedValue> constructor = env->GetBuiltinsWeakSetFunction(); in WeakSetRefGetValueFuzzTest() local 101 … auto obj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor); in WeakSetRefGetValueFuzzTest()
|
| /arkcompiler/ets_runtime/test/quickfix/module_class/ |
| D | module_modify.js | 17 constructor() { method in D 26 constructor() { method in C 34 constructor() { method in B
|
| /arkcompiler/ets_frontend/testTs/expect/declarationEmit/ |
| D | declarationEmitWorkWithInlineComments.txt | 1 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 24, 'v… 2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2… 4 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 24, 'v… 5 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2… 7 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 24, 'v… 8 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2…
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | class_instance_initializer.sts | 21 public constructor() { 28 public constructor(p : int) { 34 public constructor(s : String) { 46 public constructor() { 53 public constructor(p : int) { 59 public constructor(s : String) {
|
| D | constructor_test.sts | 19 public constructor() { 23 protected constructor(b : double, c : char, i : int) { 26 private constructor(i : int) { 32 public constructor() { 36 protected constructor(i : int) {
|
| /arkcompiler/ets_frontend/es2panda/test/parser/js/ |
| D | test-class-definition.js | 24 constructor(a, b, c) method in A 33 static constructor(){} 34 constructor(){}
|