| /arkcompiler/ets_frontend/es2panda/test/version_control/API12beta1_and_beta2/bytecode_feature/ |
| D | wide_sendable_lexical_env.ts | 18 constructor(){ method in TopLevelSendableClass1 25 constructor(){ method in TopLevelSendableClass2 32 constructor(){ method in TopLevelSendableClass3 39 constructor(){ method in TopLevelSendableClass4 46 constructor(){ method in TopLevelSendableClass5 53 constructor(){ method in TopLevelSendableClass6 60 constructor(){ method in TopLevelSendableClass7 67 constructor(){ method in TopLevelSendableClass8 74 constructor(){ method in TopLevelSendableClass9 81 constructor(){ method in TopLevelSendableClass10 [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ts/ |
| D | test-class-constructor-expected.txt | 15 "program": "test-class-constructor.ts" 20 "program": "test-class-constructor.ts" 26 "constructor": { 30 "name": "constructor", 36 "program": "test-class-constructor.ts" 41 "program": "test-class-constructor.ts" 45 "kind": "constructor", 67 "program": "test-class-constructor.ts" 72 "program": "test-class-constructor.ts" 82 "program": "test-class-constructor.ts" [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/08.function_method_and_constructor_overloading/03.constructor_overloading/ |
| D | co1_over.params.yaml | 19 constructor(p: number) {} 20 constructor(v: double) {} 27 constructor(p: Number) {} 28 constructor(v: Double) {} 35 constructor(p: String) {} 36 constructor(v: string) {} 45 constructor(p: A) {} 46 constructor(v: B) {} 55 constructor(p: A|string) {} 56 constructor(v: string|B) {} [all …]
|
| D | co2_over.params.yaml | 20 constructor(p: number) { if (p < 0) throw new Ex() } 21 constructor(v: double) {} 30 constructor(p: Number) { if (p < 0) throw new Ex() } 31 constructor(v: Double) {} 40 constructor(p: string) { if (p < 0) throw new Ex() } 41 constructor(v: String) {} 51 constructor(p: A) { if (p instanceof Error) throw new Ex() } 52 constructor(v: B) {} 62 constructor(p: A|string) { if (p instanceof A) throw new Ex() } 63 constructor(v: string|B) {} [all …]
|
| D | co3_over.params.yaml | 17 // 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 } 66 // constructor overloaded with optional parameters [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/depend_export/ |
| D | lib.expected | 36 public constructor(a: number); 43 public constructor(a: number, b: number); 49 constructor(); 56 constructor(); 59 constructor(); 62 constructor(); 65 constructor(); 68 constructor(); 71 constructor(); 74 constructor(); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/06.overriding_methods/ |
| D | different_access_modifiers.params.yaml | 19 constructor() { } 20 private constructor() { } 27 constructor(i: Int) { } 28 private constructor(i: int) { } 35 protected constructor(i: int) { } 36 private constructor(j: float) { } 43 constructor() { } 44 protected constructor(j: int) { } 51 constructor(i: int) { } 52 protected constructor() { } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/classes/ |
| D | lib.expected | 25 public constructor(a: number); 32 public constructor(a: number, b: number); 39 constructor(); 43 constructor(); 47 constructor(); 51 constructor(); 55 constructor(); 59 constructor(); 63 constructor(); 67 constructor(); [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/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Exceptions.ets | 23 constructor() { 27 constructor(s: String) { 31 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 …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | sendable_class_interface_property.ets.json | 563 …suggest": "Property 'prop1' has no initializer and is not definitely assigned in the constructor.", 564 … "rule": "Property 'prop1' has no initializer and is not definitely assigned in the constructor.", 573 …suggest": "Property 'prop2' has no initializer and is not definitely assigned in the constructor.", 574 … "rule": "Property 'prop2' has no initializer and is not definitely assigned in the constructor.", 583 …suggest": "Property 'prop3' has no initializer and is not definitely assigned in the constructor.", 584 … "rule": "Property 'prop3' has no initializer and is not definitely assigned in the constructor.", 593 …suggest": "Property 'prop4' has no initializer and is not definitely assigned in the constructor.", 594 … "rule": "Property 'prop4' has no initializer and is not definitely assigned in the constructor.", 603 …suggest": "Property 'prop5' has no initializer and is not definitely assigned in the constructor.", 604 … "rule": "Property 'prop5' has no initializer and is not definitely assigned in the constructor.", [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/sdkwhite/ |
| D | sdk_constructor_funcs.ets.arkts2.json | 34 …"rule": "\"new\" expression with dynamic constructor type is not supported (arkts-no-dynamic-ctor-… 44 …"rule": "Constructor types are not supported - use lambda functions instead. (sdk-constructor-func… 74 …"rule": "\"new\" expression with dynamic constructor type is not supported (arkts-no-dynamic-ctor-… 84 …"rule": "Constructor types are not supported - use lambda functions instead. (sdk-constructor-func… 94 …"rule": "Constructor types are not supported - use lambda functions instead. (sdk-constructor-func… 114 …"rule": "\"new\" expression with dynamic constructor type is not supported (arkts-no-dynamic-ctor-… 124 …"rule": "Constructor types are not supported - use lambda functions instead. (sdk-constructor-func… 134 …"rule": "Constructor types are not supported - use lambda functions instead. (sdk-constructor-func… 144 …"rule": "Constructor types are not supported - use lambda functions instead. (sdk-constructor-func… 154 …"rule": "\"new\" expression with dynamic constructor type is not supported (arkts-no-dynamic-ctor-… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/interop/ |
| D | object_literal_constructor.ets.arkts2.json | 24 …annot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-… 44 …annot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-… 64 …annot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-… 94 …annot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-… 104 …annot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-… 114 …annot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-… 124 …annot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-… 134 …annot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-… 144 …annot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-… 164 …annot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-… [all …]
|
| /arkcompiler/ets_runtime/test/sharedtest/sendable/ |
| D | sendable.ts | 19 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/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 9_classes.rst | 27 constructors (see :ref:`Constructor Declaration`). 40 class constructor 47 constructor 56 Field, method, accessor and constructor declarations can have the following 130 public constructor(x : number, y : number) { 174 constructor (p: number) { this.field = p } 181 result, a constructor for the abstract class, and field initializers 191 constructor 199 constructor (p: number) { this.field = p } 203 constructor (p: number) { super(p) } [all …]
|
| /arkcompiler/ets_runtime/test/aottest/pgo_aot_newobj/ |
| 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!
|
| 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!
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/generic_declarations/generic_classes/generic_inheritance/ |
| D | generic_inheritance.params.yaml | 21 constructor(data: T) { 31 constructor(data: number) { 44 constructor(data: T) { 54 constructor(data: number) { 60 constructor(data: number) { 73 constructor(data: T) { 83 constructor(data: string){ 97 constructor(data: T) { 107 constructor(data: number){ 121 constructor(data: T) { [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/arkguard/test/combinations_expect/basic_grammar/prop+top/04_class_cases/01_constructor/ |
| D | 01_class_constrctor_expected.txt | 19 constructor(s: number) { 30 constructor(r: 'hello'); 31 constructor(q: 'bye'); 32 constructor(p: string); 33 constructor(o: any) { 44 constructor(); 46 constructor(n: number); 50 constructor(); 52 constructor(m: number);
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+export/04_class_cases/01_constructor/ |
| D | 01_class_constrctor_expected.txt | 19 constructor(m: number) { 30 constructor(l: 'hello'); 31 constructor(k: 'bye'); 32 constructor(j: string); 33 constructor(i: any) { 44 constructor(); 46 constructor(h: number); 50 constructor(); 52 constructor(a: number);
|
| /arkcompiler/ets_frontend/arkguard/test/combinations/basic_grammar/04_class_cases/01_constructor/ |
| D | 01_class_constrctor.ts | 20 constructor(para: number) { method in A1 31 constructor(para: 'hello'); method in A2 32 constructor(para: 'bye'); 33 constructor(para: string); 34 constructor(para: any) { 45 constructor(); method in ns.A3 47 constructor(x: number); 52 constructor(); 54 constructor(x: number);
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp+top/04_class_cases/01_constructor/ |
| D | 01_class_constrctor_expected.txt | 19 constructor(n: number) { 30 constructor(m: 'hello'); 31 constructor(l: 'bye'); 32 constructor(k: string); 33 constructor(j: any) { 44 constructor(); 46 constructor(i: number); 50 constructor(); 52 constructor(h: number);
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp+export/04_class_cases/01_constructor/ |
| D | 01_class_constrctor_expected.txt | 19 constructor(h: number) { 30 constructor(g: 'hello'); 31 constructor(f: 'bye'); 32 constructor(e: string); 33 constructor(d: any) { 44 constructor(); 46 constructor(c: number); 50 constructor(); 52 constructor(a: number);
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp/04_class_cases/01_constructor/ |
| D | 01_class_constrctor_expected.txt | 19 constructor(g: number) { 30 constructor(f: 'hello'); 31 constructor(e: 'bye'); 32 constructor(d: string); 33 constructor(c: any) { 44 constructor(); 46 constructor(b: number); 50 constructor(); 52 constructor(a: number);
|