| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/ |
| D | ArrayTestChecked.ets | 33 const init = Array.of<number>(1, 2, 3, 4, 5, 6) 34 const result4 = init.copyWithin(0, 2, -2); 42 assertEQ( init.length, 6) 43 assertEQ(init.$_get(0), 3) 44 assertEQ(init.$_get(1), 4) 45 assertEQ(init.$_get(2), 3) 46 assertEQ(init.$_get(3), 4) 47 assertEQ(init.$_get(4), 5) 48 assertEQ(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 …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/04.casting_contexts_and_conversions/03.casting_conversions_from_object/ |
| D | ref_type_from_object.params.yaml | 15 - { type: bigint, init: 123n, call: '', expected: 123n } 16 - { type: bigint, init: new BigInt(123), call: '', expected: 123n } 17 - { type: string, init: '"Test"', call: '', expected: '"Test"' } 18 - { type: string, init: new String("Test"), call: '', expected: '"Test"' } 19 - { type: 'int[]', init: '[5, 6, 7]', call: [1], expected: 6 } 20 - { type: 'int[]', init: 'new int[5]', call: [3], expected: 0 } 21 - { type: 'int[]', init: new Array<int>(5), call: [0], expected: 0 } 22 - { type: Array<int>, init: '[5, 6, 7]', call: [0], expected: 5 } 23 - { type: Array<int>, init: 'new int[5]', call: [0], expected: 0 } 24 - { type: Array<int>, init: 'new Array<int>(3,4,5)', call: [1], expected: 4 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/07.expressions/01.evaluation_of_expressions/05.evaluation_of_other_expressions/ |
| 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 }
|
| 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 J[1]', expr: 'new A()', fail: 1 } 19 - { init: 'new K[1]', expr: 'new A()', fail: 1 } 20 - { init: 'new A[1]', expr: 'new B()', fail: 0 } 21 - { init: 'new B[1]', expr: 'new B()', fail: 0 } 22 - { init: 'new K[1]', expr: 'new B()', fail: 1 }
|
| /arkcompiler/ets_frontend/test262/ |
| D | test-list-test262-other-fastverify-qemu-aot-pgo-language-statements-class-part1.txt | 1 test262/data/other_tests/language/statements/class/dstr/async-gen-meth-ary-init-iter-close.js 2 test262/data/other_tests/language/statements/class/dstr/async-gen-meth-ary-init-iter-get-err-array-… 3 test262/data/other_tests/language/statements/class/dstr/async-gen-meth-ary-init-iter-get-err.js 4 test262/data/other_tests/language/statements/class/dstr/async-gen-meth-ary-init-iter-no-close.js 6 test262/data/other_tests/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-ary-elem-init.… 7 …62/data/other_tests/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-ary-elision-init.js 10 test262/data/other_tests/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-ary-empty-init… 13 test262/data/other_tests/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-ary-rest-init.… 15 test262/data/other_tests/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-exhaus… 16 test262/data/other_tests/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-fn-nam… [all …]
|
| D | test-list-test262-other-fastverify-qemu-aot-pgo-language-expressions-class-part2.txt | 1 test262/data/other_tests/language/expressions/class/dstr/async-gen-meth-ary-init-iter-get-err.js 3 test262/data/other_tests/language/expressions/class/dstr/async-gen-meth-ary-init-iter-close.js 4 test262/data/other_tests/language/expressions/class/dstr/async-gen-meth-ary-init-iter-get-err-array… 5 test262/data/other_tests/language/expressions/class/dstr/async-gen-meth-ary-ptrn-elem-ary-elem-init… 6 test262/data/other_tests/language/expressions/class/dstr/async-gen-meth-ary-init-iter-no-close.js 7 …2/data/other_tests/language/expressions/class/dstr/async-gen-meth-ary-ptrn-elem-ary-elision-init.js 10 …262/data/other_tests/language/expressions/class/dstr/async-gen-meth-ary-ptrn-elem-ary-empty-init.js 13 test262/data/other_tests/language/expressions/class/dstr/async-gen-meth-ary-ptrn-elem-ary-rest-init… 14 test262/data/other_tests/language/expressions/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-exhau… 16 test262/data/other_tests/language/expressions/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-fn-na… [all …]
|
| 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 | other_tests_part3.txt | 1 test262/data/test/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-fn-name-cover… 2 test262/data/test/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-fn-name-fn.js 3 test262/data/test/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-fn-name-gen.js 4 test262/data/test/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-hole.js 5 test262/data/test/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-skipped.js 6 test262/data/test/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-undef.js 7 test262/data/test/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-throws.js 8 test262/data/test/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-id-init-unresolvable.… 15 test262/data/test/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-obj-id-init.js 18 test262/data/test/language/statements/class/dstr/async-gen-meth-ary-ptrn-elem-obj-prop-id-init.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_part2.txt | 241 test262/data/test/language/expressions/arrow-function/dstr/ary-init-iter-get-err-array-prototype.js 242 test262/data/test/language/expressions/arrow-function/dstr/ary-init-iter-close.js 243 test262/data/test/language/expressions/arrow-function/dstr/ary-init-iter-no-close.js 244 test262/data/test/language/expressions/arrow-function/dstr/ary-init-iter-get-err.js 247 test262/data/test/language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elem-init.js 248 test262/data/test/language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js 249 test262/data/test/language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-empty-init.js 252 test262/data/test/language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-rest-init.js 253 test262/data/test/language/expressions/arrow-function/dstr/ary-ptrn-elem-id-init-exhausted.js 256 test262/data/test/language/expressions/arrow-function/dstr/ary-ptrn-elem-id-init-fn-name-arrow.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 …]
|
| D | test-list-test262-other-fastverify-qemu-aot-pgo-language-expressions-class-part3.txt | 3 …data/other_tests/language/expressions/class/dstr/meth-static-dflt-ary-ptrn-elem-obj-prop-id-init.js 12 test262/data/other_tests/language/expressions/class/dstr/meth-static-dflt-ary-ptrn-rest-init-obj.js 13 test262/data/other_tests/language/expressions/class/dstr/meth-static-dflt-ary-ptrn-rest-init-id.js 14 test262/data/other_tests/language/expressions/class/dstr/meth-static-dflt-ary-ptrn-rest-init-ary.js 21 test262/data/other_tests/language/expressions/class/dstr/meth-static-dflt-obj-ptrn-id-init-unresolv… 22 test262/data/other_tests/language/expressions/class/dstr/meth-static-dflt-obj-ptrn-id-init-throws.js 23 test262/data/other_tests/language/expressions/class/dstr/meth-static-dflt-obj-ptrn-id-init-fn-name-… 24 test262/data/other_tests/language/expressions/class/dstr/meth-static-dflt-obj-ptrn-id-init-skipped.… 25 test262/data/other_tests/language/expressions/class/dstr/meth-static-dflt-obj-ptrn-id-init-fn-name-… 26 test262/data/other_tests/language/expressions/class/dstr/meth-static-dflt-obj-ptrn-id-init-fn-name-… [all …]
|
| D | test-list-test262-other-fastverify-qemu-aot-pgo-language-statements-class-part3.txt | 60 test262/data/other_tests/language/statements/class/elements/static-comp-name-init-err-contains-argu… 64 test262/data/other_tests/language/statements/class/elements/static-comp-name-init-err-contains-supe… 67 test262/data/other_tests/language/statements/class/elements/static-field-init-this-inside-arrow-fun… 70 test262/data/other_tests/language/statements/class/elements/static-literal-init-err-contains-argume… 72 test262/data/other_tests/language/statements/class/elements/static-literal-init-err-contains-super.… 78 test262/data/other_tests/language/statements/class/elements/static-private-init-err-contains-super.… 79 test262/data/other_tests/language/statements/class/elements/static-private-init-err-contains-argume… 89 test262/data/other_tests/language/statements/class/elements/static-string-literal-name-init-err-con… 90 test262/data/other_tests/language/statements/class/elements/static-string-literal-name-init-err-con… 91 test262/data/other_tests/language/statements/class/elements/string-literal-name-init-err-contains-a… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/05.accessible/ |
| D | type_name_interface_prop.params.yaml | 19 init: |- 30 init: |- 41 init: |- 52 init: |- 63 init: |- 74 init: |- 85 init: |- 96 init: |- 107 init: |- 119 init: |- [all …]
|
| /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 | 107 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 114 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 121 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 128 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 139 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 149 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 159 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 169 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 179 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 189 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() [all …]
|
| /arkcompiler/ets_runtime/common_components/mutator/tests/ |
| D | mutator_test.cpp | 34 BaseRuntime::GetInstance()->Init(); in SetUpTestCase() 48 mutatorBase.Init(); in HWTEST_F_L0() 67 mutatorBase.Init(); in HWTEST_F_L0() 84 mutatorBase.Init(); in HWTEST_F_L0() 93 mutator.Init(); in HWTEST_F_L0() 107 mutator.Init(); in HWTEST_F_L0() 124 mutatorBase.Init(); in HWTEST_F_L0() 137 mutatorBase.Init(); in HWTEST_F_L0() 154 mutatorBase.Init(); in HWTEST_F_L0() 185 mutatorBase.Init(); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ts_import_ets/ts/ |
| D | test6.ts.json | 44 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 54 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 64 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 74 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 84 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 94 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 104 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 114 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 124 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)",
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | RuntimeLinker.ets | 43 * @param init indicator whether class must be initialized. 49 public final loadClass(clsName: string, init: boolean = false): Class { 50 const optClass = this.loadClassSafe(clsName, init); 71 * @param init indicator whether class must be initialized. 77 protected abstract findAndLoadClass(clsName: string, init: boolean): Class | undefined; 82 protected final loadClassSafe(clsName: string, init: boolean): Class | undefined { 85 if (init) { 91 optClass = this.findAndLoadClass(clsName, init);
|
| /arkcompiler/ets_frontend/ets2panda/ir/ts/ |
| D | tsEnumMember.h | 27 explicit TSEnumMember(Expression *key, Expression *init) in TSEnumMember() argument 28 : Statement(AstNodeType::TS_ENUM_MEMBER), key_(key), init_(init) in TSEnumMember() 32 explicit TSEnumMember(Expression *key, Expression *init, bool isGenerated) in TSEnumMember() argument 33 : Statement(AstNodeType::TS_ENUM_MEMBER), key_(key), init_(init), isGenerated_(isGenerated) in TSEnumMember() 47 const Expression *Init() const in Init() function 52 Expression *Init() in Init() function
|
| /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_frontend/ets2panda/linter/test/main/ |
| D | sendable_class_initialization.ets.json | 34 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 44 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 64 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 84 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 104 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 114 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 124 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)", 134 …ble\" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)",
|
| /arkcompiler/ets_frontend/ets2panda/public/headers_parser/ |
| D | parse_method.py | 127 def parse_initializer(init: str) -> dict: 130 Note ' left (left init) ' ---> 'class field': 'left', 'init value': 'left init' 132 init = init.strip(" \n") 135 parenthese_open = find_first_of_characters("{(", init, 0) 138 parenthese_open, parenthese_close = find_scope_borders(init, parenthese_open, "") 140 raise RuntimeError("Error! Can't find '(' or '{' in parse_initializer: '" + init + "'") 142 res["class_field"] = init[:parenthese_open].strip(" \n") 143 res["init_value"] = init[parenthese_open + 1 : parenthese_close] 166 If some argument is init value for class field, it adds property for this argument
|
| /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()
|