| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/ |
| D | ArrayTestChecked.sts | 33 const init = Array.of<number>(1, 2, 3, 4, 5, 6) 34 const result4 = init.copyWithin(0, 2, -2); 42 assert init.length == 6; 43 assert (init.$_get(0)) == 3; 44 assert (init.$_get(1)) == 4; 45 assert (init.$_get(2)) == 3; 46 assert (init.$_get(3)) == 4; 47 assert (init.$_get(4)) == 5; 48 assert (init.$_get(5)) == 6; 52 const init = Array.of<number>(1, 2, 3, 4, 5) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/05.evaluation_of_other_expressions/ |
| D | cast.params.yaml | 16 - init: 'let v: A = new A()' 20 - init: 'let v: A = new A()' 24 - init: 'let v: A = new A()' 28 - init: 'let v: A = new A()' 32 - init: 'let v: A = new A()' 37 - init: 'let v: Object = new A()' 41 - init: 'let v: Object = new A()' 45 - init: 'let v: Object = new A()' 49 - init: 'let v: Object = new A()' 53 - init: 'let v: Object = new A()' [all …]
|
| D | ase.params.yaml | 16 - { init: 'new A[1]', expr: 'new A()', fail: 0 } 17 - { init: 'new B[1]', expr: 'new A()', fail: 1 } 18 - { init: 'new I[1]', expr: 'new A()', fail: 0 } 19 - { init: 'new J[1]', expr: 'new A()', fail: 1 } 20 - { init: 'new K[1]', expr: 'new A()', fail: 1 } 22 - { init: 'new A[1]', expr: 'new B()', fail: 0 } 23 - { init: 'new B[1]', expr: 'new B()', fail: 0 } 24 - { init: 'new I[1]', expr: 'new B()', fail: 0 } 25 - { init: 'new J[1]', expr: 'new B()', fail: 0 } 26 - { init: 'new K[1]', expr: 'new B()', fail: 1 }
|
| D | exc.params.yaml | 16 - { init: 'new A()', exc: A, fail: 0 } 17 - { init: 'new A()', exc: B, fail: 1 } 18 - { init: 'new A()', exc: C, fail: 1 } 19 - { init: 'new B()', exc: A, fail: 0 } 20 - { init: 'new B()', exc: B, fail: 0 } 21 - { init: 'new B()', exc: C, fail: 1 } 22 - { init: 'new C()', exc: A, fail: 0 } 23 - { init: 'new C()', exc: B, fail: 0 } 24 - { init: 'new C()', exc: C, fail: 0 }
|
| /arkcompiler/ets_frontend/test262/ |
| D | ts2abc_skip_tests.json | 285 … "language/expressions/dynamic-import/namespace/promise-then-ns-has-property-str-found-init.js", 303 … "language/expressions/dynamic-import/namespace/await-ns-get-own-property-str-found-init.js" 433 "language/expressions/dynamic-import/namespace/await-ns-delete-exported-init-strict.js", 438 "language/expressions/dynamic-import/namespace/await-ns-has-property-str-found-init.js", 514 "language/expressions/async-generator/dstr/ary-ptrn-elem-id-init-fn-name-arrow.js", 515 "language/expressions/async-generator/dstr/ary-ptrn-elem-id-init-fn-name-class.js", 516 "language/expressions/async-generator/dstr/ary-ptrn-elem-id-init-fn-name-cover.js", 517 "language/expressions/async-generator/dstr/ary-ptrn-elem-id-init-fn-name-fn.js", 518 "language/expressions/async-generator/dstr/ary-ptrn-elem-id-init-fn-name-gen.js", 519 "language/expressions/async-generator/dstr/dflt-ary-ptrn-elem-id-init-fn-name-arrow.js", [all …]
|
| D | es2021_tests.txt | 702 language/expressions/dynamic-import/namespace/await-ns-delete-exported-init-strict.js 703 language/expressions/dynamic-import/namespace/await-ns-delete-exported-init-no-strict.js 714 language/expressions/dynamic-import/namespace/await-ns-has-property-str-found-init.js 721 language/expressions/dynamic-import/namespace/promise-then-ns-has-property-str-found-init.js 725 language/expressions/dynamic-import/namespace/await-ns-get-own-property-str-found-init.js 744 language/expressions/dynamic-import/namespace/promise-then-ns-delete-exported-init-strict.js 763 language/expressions/dynamic-import/namespace/promise-then-ns-delete-exported-init-no-strict.js 768 language/expressions/dynamic-import/namespace/promise-then-ns-get-own-property-str-found-init.js 1471 language/expressions/async-generator/dstr/named-obj-init-null.js 1474 language/expressions/async-generator/dstr/dflt-obj-ptrn-prop-id-init-skipped.js [all …]
|
| D | other_tests.txt | 835 language/identifier-resolution/static-init-invalid-await.js 1944 language/expressions/array/spread-obj-getter-init.js 1975 language/expressions/arrow-function/static-init-await-binding.js 1977 language/expressions/arrow-function/static-init-await-reference.js 2378 language/expressions/call/spread-obj-getter-init.js 2593 language/expressions/class/static-init-await-binding.js 2595 language/expressions/class/static-init-await-reference.js 2812 language/expressions/function/static-init-await-binding.js 2814 language/expressions/function/static-init-await-reference.js 2849 language/expressions/generators/static-init-await-binding.js [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/global_vars/ |
| D | lib.expected | 19 function _$init$_(): void { return {} as any; }; 20 (_$init$_ as any) = ETSGLOBAL._$init$_; 21 export {_$init$_}; 22 exports._$init$_ = _$init$_; 23 _$init$_();
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/09.field_access_expressions/01.accessing_current_object_fields/ |
| D | incorrect_class_field_access.params.yaml | 16 …- { init: "let c: A = new A();", check: "c.a1.a2 = 1;", text: "names several accessible member fie… 17 …- { init: "let c: B = new B();", check: "c.i1.a1 = 1;", text: "names several accessible member fie… 18 …- { init: "let c: B = new B();", check: "c.b1.a1 = 1;", text: "names several accessible member fie… 19 …- { init: "let c: A = new A();", check: "c.b1 = 1;", text: "does not name an accessible member fie… 20 …- { init: "let c: A = new A();", check: "c.pb2 = 1;", text: "does not name an accessible member fi… 21 …- { init: "let c: B = new B();", check: "c.pb2 = 1;", text: "does not name an accessible member fi… 22 …- { init: "let c: B = new B();", check: "c.pa3 = 1;", text: "does not name an accessible member fi…
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | regexp_test.cpp | 106 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 116 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 126 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 136 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 146 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 156 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 166 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 176 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 186 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 196 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | sendable_class_initialization.ts.json | 29 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)" 36 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)" 50 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)" 64 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)" 78 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)" 85 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)" 92 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)" 99 …able\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)"
|
| /arkcompiler/ets_frontend/es2panda/test/optimizer/js/branch-elimination/ |
| D | test-branch-elimination.js | 41 let init = 1; 42 let a = init; 54 let init = 0.1; 55 let a = init; 68 let init = false; 69 let a = init; 81 let init = "0"; 82 let a = init;
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/ |
| D | triple_ut_test.cpp | 25 Triple::GetTriple().Init("aarch64"); in TEST() 30 Triple::GetTriple().Init("aarch64_le"); in TEST() 35 Triple::GetTriple().Init("aarch64_be"); in TEST() 40 Triple::GetTriple().Init("aarch64_be-ilp32"); in TEST() 45 Triple::GetTriple().Init("aarch64_be-gnuilp32"); in TEST() 50 Triple::GetTriple().Init("aarch64_be-linux-gnuilp32"); in TEST() 55 Triple::GetTriple().Init(); in TEST() 61 Triple::GetTriple().Init("incorect-triple"); in TEST() 79 Triple::GetTriple().Init(); in TEST() 92 Triple::GetTriple().Init(); in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/constructor_as_arg/method_constructor/ |
| D | method_constructor.sts | 30 const TSClass = MClass.init(MainClass, tsInt); 39 const TSClass = MClass.init(ParentClass, MainClass); 46 const TSClass = MClass.init(ChildClass, MainClass); 53 const TSClass = MClass.init(AnonymousClass, tsInt); 61 const TSClass = MClass.init(IIFEClass, tsInt);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/08.for_statements/ |
| D | for_loop_parameters.params.yaml | 32 …- doc: For loop with init as the only configured statement. Creating variable with already existin… 57 - doc: For loop with init and conditional statements configured. 65 - doc: For loop with init and forUpdate statements configured. 91 - doc: For loop with multiple init options configured. 151 - doc: For loop with number type in init. 159 - doc: For loop with float type in init. 167 - doc: For loop with double type in init. 175 - doc: For loop with Int type in init. 183 - doc: For loop with Number type in init. 191 - doc: For loop with Double type in init. [all …]
|
| /arkcompiler/ets_frontend/ets2panda/ir/statements/ |
| D | variableDeclarator.h | 41 explicit VariableDeclarator(VariableDeclaratorFlag flag, Expression *ident, Expression *init) in VariableDeclarator() argument 42 : TypedStatement(AstNodeType::VARIABLE_DECLARATOR), id_(ident), init_(init), flag_(flag) in VariableDeclarator() 49 Expression *Init() in Init() function 54 const Expression *Init() const in Init() function 59 void SetInit(Expression *init) in SetInit() argument 61 init_ = init; in SetInit()
|
| /arkcompiler/ets_frontend/es2panda/test/parser/js/ |
| D | test-var-decl-expected.txt | 23 "init": null, 67 "init": null, 111 "init": { 168 "init": null, 196 "init": null, 224 "init": null, 295 "init": { 336 "init": null, 380 "init": null, 408 "init": {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/enums/ |
| D | lib.expected | 19 function _$init$_(): void { return {} as any; }; 20 (_$init$_ as any) = ETSGLOBAL._$init$_; 21 _$init$_();
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/unions/ |
| D | lib.expected | 19 function _$init$_(): void { return {} as any; }; 20 (_$init$_ as any) = ETSGLOBAL._$init$_; 21 _$init$_();
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/js/ |
| D | many_locals_1-expected.txt | 24 "init": { 129 "init": { 187 "init": { 245 "init": { 303 "init": { 361 "init": { 419 "init": { 477 "init": { 535 "init": { 593 "init": { [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/grammar/export_namecache/ |
| D | namecacheTest8_import_expected_cache.txt | 10 "init#p": "g1", 17 "#init:23:26": "init"
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | generics_1.sts | 19 init(klazz: Class<T>) : void { 27 init(klazz: Class<B<T>>) : void { 38 d.init(B<Z>.class); 39 d.b.init(Z.class);
|
| /arkcompiler/ets_frontend/ets2panda/compiler/base/ |
| D | destructuring.cpp | 87 const ir::Expression *init = nullptr; in GenElement() local 92 init = element->AsAssignmentPattern()->Right(); in GenElement() 98 if (init != nullptr) { in GenElement() 106 init->Compile(pg); in GenElement() 154 const ir::Expression *init = nullptr; in GetAssignmentTarget() local 158 init = target->AsAssignmentPattern()->Right(); in GetAssignmentTarget() 162 return {init, target}; in GetAssignmentTarget() 165 …void GenDefaultInitializer(PandaGen *pg, const ir::Expression *element, const ir::Expression *init) in GenDefaultInitializer() argument 167 if (init == nullptr) { in GenDefaultInitializer() 184 init->Compile(pg); in GenDefaultInitializer() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/getters_setters/ |
| D | lib.expected | 19 function _$init$_(): void { return {} as any; }; 20 (_$init$_ as any) = ETSGLOBAL._$init$_; 21 _$init$_();
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/properties/ |
| D | lib1.expected | 19 function _$init$_(): void { return {} as any; }; 20 (_$init$_ as any) = ETSGLOBAL._$init$_; 21 _$init$_();
|