Home
last modified time | relevance | path

Searched full:constructor (Results 1 – 25 of 2146) sorted by relevance

12345678910>>...86

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/07.function_and_method_overloading/03.constructor_overloading/
Dco1_over.params.yaml19 constructor(p: number) {}
20 constructor(v: double) {}
29 constructor(p: A) {}
30 constructor(v: B) {}
39 constructor(p: A|string) {}
40 constructor(v: string|B) {}
52 constructor(p: Object) { this.t = "should never be called" }
53 constructor(p: byte) { this.t = "byte" }
54 constructor(p: Byte) { this.t = "Byte" }
55 constructor(p: short) { this.t = "short" }
[all …]
Dco2_over.params.yaml20 constructor(p: number) throws { if (p < 0) throw new Ex() }
21 constructor(v: double) {}
31 constructor(p: A) throws { if (p instanceof Error) throw new Ex() }
32 constructor(v: B) {}
42 constructor(p: A|string) throws { if (p instanceof A) throw new Ex() }
43 constructor(v: string|B) {}
57 constructor(p: Object) { this.t = "should never be called" }
58 constructor(p: byte) throws { if (p == 0) throw ex; else this.t = "byte" }
59 constructor(p: Byte) { this.t = "Byte" }
60 constructor(p: short) { this.t = "short" }
[all …]
Dco3_over.params.yaml17 // constructor overloaded with multiple parameters with different types
22 constructor() {}
23 constructor(i: int) { this.i = i }
24 constructor(i: int, j: int) { this.i = i + j }
25 constructor(i: int, j: int, k: int) { this.i = 3 }
26 constructor(i: int, j: double) { this.d = j + i }
27 constructor(i: int, j: int, k: double) { this.d = 123.0 }
28 constructor(i: double, j: double, k: int) { this.d = i + j + k }
29 constructor(i: string, j: double) { this.s = i + j }
50 // constructor overloaded with optional parameters
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DExceptions.sts22 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 …]
DErrors.sts26 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 …]
DBox.sts24 public constructor() {
28 public constructor(value: T) {
61 public constructor() {
65 public constructor(value: boolean) {
98 public constructor() {
102 public constructor(value: byte) {
135 public constructor() {
139 public constructor(value: char) {
172 public constructor() {
176 public constructor(value: short) {
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dsendable_class_interface_property.ts.json399 …suggest": "Property 'prop1' has no initializer and is not definitely assigned in the constructor.",
400 … "rule": "Property 'prop1' has no initializer and is not definitely assigned in the constructor."
406 …suggest": "Property 'prop2' has no initializer and is not definitely assigned in the constructor.",
407 … "rule": "Property 'prop2' has no initializer and is not definitely assigned in the constructor."
413 …suggest": "Property 'prop3' has no initializer and is not definitely assigned in the constructor.",
414 … "rule": "Property 'prop3' has no initializer and is not definitely assigned in the constructor."
420 …suggest": "Property 'prop4' has no initializer and is not definitely assigned in the constructor.",
421 … "rule": "Property 'prop4' has no initializer and is not definitely assigned in the constructor."
427 …suggest": "Property 'prop5' has no initializer and is not definitely assigned in the constructor.",
428 … "rule": "Property 'prop5' has no initializer and is not definitely assigned in the constructor."
[all …]
Darkui_decorators.ts.json126 …"suggest": "Property 'name' has no initializer and is not definitely assigned in the constructor.",
127 … "rule": "Property 'name' has no initializer and is not definitely assigned in the constructor."
133 … "suggest": "Property 'age' has no initializer and is not definitely assigned in the constructor.",
134 … "rule": "Property 'age' has no initializer and is not definitely assigned in the constructor."
140 …": "Property 'localStorage' has no initializer and is not definitely assigned in the constructor.",
141 …e": "Property 'localStorage' has no initializer and is not definitely assigned in the constructor."
147 …ggest": "Property 'provide' has no initializer and is not definitely assigned in the constructor.",
148 … "rule": "Property 'provide' has no initializer and is not definitely assigned in the constructor."
154 …suggest": "Property 'state' has no initializer and is not definitely assigned in the constructor.",
155 … "rule": "Property 'state' has no initializer and is not definitely assigned in the constructor."
[all …]
Dobject_literals_prop_func_type.ts.autofix.json28 … "suggest": "Property 'a' has no initializer and is not definitely assigned in the constructor.",
29 … "rule": "Property 'a' has no initializer and is not definitely assigned in the constructor."
35 … "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
36 … "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor."
42 … "suggest": "Property 'c' has no initializer and is not definitely assigned in the constructor.",
43 … "rule": "Property 'c' has no initializer and is not definitely assigned in the constructor."
49 … "suggest": "Property 'd' has no initializer and is not definitely assigned in the constructor.",
50 … "rule": "Property 'd' has no initializer and is not definitely assigned in the constructor."
Dobject_literals_2.ts.autofix.json103 … "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
104 … "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor."
110 … "suggest": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
111 … "rule": "Property 'x' has no initializer and is not definitely assigned in the constructor."
117 … "suggest": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
118 … "rule": "Property 'y' has no initializer and is not definitely assigned in the constructor."
124 … "suggest": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
125 … "rule": "Property 'x' has no initializer and is not definitely assigned in the constructor."
131 … "suggest": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
132 … "rule": "Property 'y' has no initializer and is not definitely assigned in the constructor."
[all …]
/arkcompiler/ets_frontend/test262/
Dintl_tests.txt24 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/sharedtest/sendable/
Dsendable.ts19 constructor() { method in SendableParent
24 constructor() { method in SendableChild
35 constructor() {} method in Parent
38 constructor() { method in SendableChild
49 constructor() { method in A
54 constructor() { method in B
69 constructor() {} method in Parent
72 constructor() { method in Child
82 constructor() { method in SendableParent
87 constructor() { method in Child
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Decma_container_common.h73 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_runtime/test/aottest/pgo_aot_newobj/
Dexpect_output.txt18 A:constructor!
20 B:constructor!
24 A:constructor!
28 D:constructor!
30 B:constructor!
36 C:constructor!
45 A:constructor!
47 B:constructor!
Dpgo_expect_output.txt18 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/15.semantic_rules/07.overloading_and_overriding/04.overloading_and_overriding_in_classes/
Dconstructor_overload.sts20 Constructor is defined in a subclass.
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;}
Dconstructor_overload.params.yaml17 constructor() { res = 21;}
23 constructor() {
32 constructor() {
41 constructor() {
50 constructor(i: number) { res = 21; }
56 constructor(i: number) { super();}
62 constructor(i: number) { super(i);}
68 constructor(i: string) { res = 21;}
75 constructor() {}
88 constructor(i: Number) { res == 24;}
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D9_classes.rst29 constructors (see :ref:`Constructor Declaration`).
48 constructor
58 Field, method, accessor and constructor declarations can have the following
82 constructor declaration
137 public constructor(x : number, y : number) {
172 constructor (p: number) { this.field = p }
179 result, a constructor for the abstract class, and field initializers
187 constructor (p: number) { this.field = p }
191 constructor (p: number) { super(p) }
224 constructor
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/09.constructor_declaration/03.constructor_body/
DImplicitly_superclass_constructor_invocation.sts18constructor body does not begin with an explicit constructor call and the constructor being declar…
24 public constructor() {
30 public constructor() {
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_sendable_tests.cpp158 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/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/02.array_creation_expressions/01.runtime_evaluation_of_array_creation_expressions/
Dexpr_n.params.yaml20 private constructor() { // CTE: private constructor
32 constructor(p: number) { // CTE: no parameterless constructor
43 public constructor(p: number) {
46 private constructor() { // CTE: private constructor
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
DsuperInConstructor3.sts19 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_frontend/es2panda/test/parser/ts/
Dtest-type-with-specieal-constructor.ts18 constructor(a: 'hello'); method in ClassExample
19 constructor(a: 'bye');
20 constructor(a: string);
21 constructor(a) {
28 constructor(); method in ns.A
30 constructor(x:number);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/09.constructor_declaration/
Dconstructor_declaration_with_type_arguments.sts17 desc: Class constructor declaration
18constructor 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/aottest/class_method_signature/
Dclass_method_signature.ts19 constructor() {}
35 print(Reflect.ownKeys(A.prototype)); //constructor,bar,bar2
38 constructor() {} method in A2
58 print(Reflect.ownKeys(A2.prototype)); //constructor,foo,bar,bar2
62 constructor() {} method in B
78 print(Reflect.ownKeys(B.prototype)); //constructor,bar,bar2
81 constructor() {} method in B2
101 print(Reflect.ownKeys(B2.prototype)); //constructor,bar,foo,bar2
105 constructor() {} method in C
119 constructor() {} method in D
[all …]

12345678910>>...86