| /arkcompiler/runtime_core/bytecode_optimizer/tests/js/ |
| D | constantProgagation.js | 32 let b = 1; 34 print(a > b); 36 print(a > b); 39 b = false; 40 print(a > b); 43 b = 2.2; 44 print(a > b); 50 let b = 1.1; 52 print(a > b); 53 b = false; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/js/ |
| D | test-binary-expression.js | 17 a | b 18 a ^ b 19 a & b 20 a == b 21 a != b 22 a === b 23 a !== b 24 a < b 25 a <= b 26 a > b [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/js/ |
| D | test-binary-expression.js | 17 a | b 18 a ^ b 19 a & b 20 a == b 21 a != b 22 a === b 23 a !== b 24 a < b 25 a <= b 26 a > b [all …]
|
| /arkcompiler/ets_runtime/test/aottest/privateproperty/ |
| D | privateproperty.ts | 45 class B {} class 46 B.prototype.foo = function () { 81 #b; 83 this.#b = Uint8Array; 84 this.#b = Uint8Array; 85 this.#b = Uint8Array; 86 this.#b = Uint8Array; 87 this.#b = Uint8Array; 88 this.#b = Uint8Array; 89 this.#b = Uint8Array; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
| D | instruction_combine_test.cpp | 360 CircuitBuilder b(&circuit); in HWTEST_F_L0() local 361 Environment env(0, &b); in HWTEST_F_L0() 362 b.SetEnvironment(&env); in HWTEST_F_L0() 368 auto x = b.Arguments(1); in HWTEST_F_L0() 369 auto const_0 = b.Int64(0); in HWTEST_F_L0() 370 auto result = b.Int64Mul(x, const_0); in HWTEST_F_L0() 375 auto x = b.Arguments(1); in HWTEST_F_L0() 376 auto const_1 = b.Int64(1); in HWTEST_F_L0() 377 auto result = b.Int64Mul(x, const_1); in HWTEST_F_L0() 383 auto const_1 = b.Int64(1); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_cons/ |
| D | call-cons-n2.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 25 function foo(p: B): B { 26 return b 28 type: '(p: A) => B' 32 class B extends A {} 33 class C extends B {} 35 let b: B = new B() 38 function foo(p: B): B { [all …]
|
| D | call-cons.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 31 - type: '(p: B) => C' 32 call: '(new B()) === c' 36 - type: '(p: A) => B' 38 - type: '(p: B) => B' 39 call: '(new B()) === c' 40 - type: '(p: C) => B' 45 - type: '(p: B) => A' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/comp_obj/ |
| D | comp-clss-n2.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 25 function foo(p: B): B { 26 return b 28 type: '(p: A) => B' 32 class B extends A {} 33 class C extends B {} 35 let b: B = new B() 38 function foo(p: B): B { [all …]
|
| D | comp-clss.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 31 - type: '(p: B) => C' 32 call: '(new B()) === c' 36 - type: '(p: A) => B' 38 - type: '(p: B) => B' 39 call: '(new B()) === c' 40 - type: '(p: C) => B' 45 - type: '(p: B) => A' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_lmbd/ |
| D | call-lmbd-n2.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 25 function foo(p: B): B { 26 return b 28 type: '(p: A) => B' 32 class B extends A {} 33 class C extends B {} 35 let b: B = new B() 38 function foo(p: B): B { [all …]
|
| D | call-lmbd.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 31 - type: '(p: B) => C' 32 call: '(new B()) === c' 36 - type: '(p: A) => B' 38 - type: '(p: B) => B' 39 call: '(new B()) === c' 40 - type: '(p: C) => B' 45 - type: '(p: B) => A' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_func/ |
| D | call-func-n2.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 25 function foo(p: B): B { 26 return b 28 type: '(p: A) => B' 32 class B extends A {} 33 class C extends B {} 35 let b: B = new B() 38 function foo(p: B): B { [all …]
|
| D | call-func.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 31 - type: '(p: B) => C' 32 call: '(new B()) === c' 36 - type: '(p: A) => B' 38 - type: '(p: B) => B' 39 call: '(new B()) === c' 40 - type: '(p: C) => B' 45 - type: '(p: B) => A' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_meth/ |
| D | call-meth-n2.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 25 function foo(p: B): B { 26 return b 28 type: '(p: A) => B' 32 class B extends A {} 33 class C extends B {} 35 let b: B = new B() 38 function foo(p: B): B { [all …]
|
| D | call-meth.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 31 - type: '(p: B) => C' 32 call: '(new B()) === c' 36 - type: '(p: A) => B' 38 - type: '(p: B) => B' 39 call: '(new B()) === c' 40 - type: '(p: C) => B' 45 - type: '(p: B) => A' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/comp_arr/ |
| D | comp-arr-n2.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 25 function foo(p: B): B { 26 return b 28 type: '(p: A) => B' 32 class B extends A {} 33 class C extends B {} 35 let b: B = new B() 38 function foo(p: B): B { [all …]
|
| D | comp-arr.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 31 - type: '(p: B) => C' 32 call: '(new B()) === c' 36 - type: '(p: A) => B' 38 - type: '(p: B) => B' 39 call: '(new B()) === c' 40 - type: '(p: C) => B' 45 - type: '(p: B) => A' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/decl_field/ |
| D | decl-field-n2.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 25 function foo(p: B): B { 26 return b 28 type: '(p: A) => B' 32 class B extends A {} 33 class C extends B {} 35 let b: B = new B() 38 function foo(p: B): B { [all …]
|
| D | decl-field.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 31 - type: '(p: B) => C' 32 call: '(new B()) === c' 36 - type: '(p: A) => B' 38 - type: '(p: B) => B' 39 call: '(new B()) === c' 40 - type: '(p: C) => B' 45 - type: '(p: B) => A' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/decl_var/ |
| D | decl-var-n2.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 25 function foo(p: B): B { 26 return b 28 type: '(p: A) => B' 32 class B extends A {} 33 class C extends B {} 35 let b: B = new B() 38 function foo(p: B): B { [all …]
|
| D | decl-var.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 31 - type: '(p: B) => C' 32 call: '(new B()) === c' 36 - type: '(p: A) => B' 38 - type: '(p: B) => B' 39 call: '(new B()) === c' 40 - type: '(p: C) => B' 45 - type: '(p: B) => A' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/assn_var/ |
| D | assn-var-n2.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 25 function foo(p: B): B { 26 return b 28 type: '(p: A) => B' 32 class B extends A {} 33 class C extends B {} 35 let b: B = new B() 38 function foo(p: B): B { [all …]
|
| D | assn-var.params.yaml | 19 class B extends A {} 20 class C extends B {} 22 let b: B = new B() 31 - type: '(p: B) => C' 32 call: '(new B()) === c' 36 - type: '(p: A) => B' 38 - type: '(p: B) => B' 39 call: '(new B()) === c' 40 - type: '(p: C) => B' 45 - type: '(p: B) => A' [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | object_literals.sts | 18 b: string; 23 b: string; 35 let a1 = { a: 1, b: 'a' }; // NOT OK 36 let a2: any = { a: 2, b: 'b' }; // OK - ASSIGNMENT TO ANY 37 let a3: { a: number; b: string } = { a: 30, b: 'c' }; // NOT OK 38 let a4: I = { a: 4, b: 'd' }; // OK 39 let a5: C = { a: 5, b: 'e' }; // OK 43 w: { a: 7, b: 'g' }, // OK - ASSIGNMENT TO ANY 44 e: { a: 8, b: 'h' }, // OK 45 r: { a: 9, b: 'i' }, // OK [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/ |
| D | eq.params.yaml | 15 - { a: 'null', b: 'null' } 16 - { a: '[null, null]', b: '[null, null]' } 18 - { a: 'undefined', b: 'undefined' } 19 - { a: '[undefined]', b: '[undefined]' } 21 - { a: '3.14', b: '3.14' } 22 - { a: '[3.14]', b: '[3.14]' } 24 - { a: 'true', b: 'false' } 25 - { a: '[true]', b: '[false]' } 27 - { a: "c'A'", b: "c'B'" } 28 - { a: "[c'A']", b: "[c'B']" } [all …]
|