Home
last modified time | relevance | path

Searched full:new (Results 1 – 25 of 6372) sorted by relevance

12345678910>>...255

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dtoo_many_new_expr.ets22 new(new(new(new(new(new(new(new(new(new(new(new(new(new(new(new(new(new(new(new(new(new(new(new(new
DBigInt2.ets17 assertEQ(new BigInt(0).operatorLeftShift(new BigInt(0)), (0n))
18 assertEQ(new BigInt(0).operatorLeftShift(new BigInt(1)), (0n))
19 assertEQ(new BigInt(1).operatorLeftShift(new BigInt(0)), (1n))
20 assertEQ(new BigInt(10).operatorLeftShift(new BigInt(2)), (40n))
21 assertEQ(new BigInt(255).operatorLeftShift(new BigInt(41)), (560750930165760n))
22 assertEQ(new BigInt(65535).operatorLeftShift(new BigInt(60)), (75556710804409716572160n))
23 assertEQ(new BigInt(4294967295).operatorLeftShift(new BigInt(5)), (137438953440n))
24 …assertEQ(new BigInt(18446744073709551615n).operatorLeftShift(new BigInt(6)), (11805916207174113033…
25 …assertEQ(new BigInt(1275418875248948586535904902545412130n).operatorLeftShift(new BigInt(123)), (1…
26 assertEQ(new BigInt(-1).operatorLeftShift(new BigInt(0)), (-1n))
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/src/lib/
DFaultAttrs.ts28 faultsAttrs[FaultID.LiteralAsPropertyName] = new FaultAttributes(1);
29 faultsAttrs[FaultID.ComputedPropertyName] = new FaultAttributes(1);
30 faultsAttrs[FaultID.SymbolType] = new FaultAttributes(2);
31 faultsAttrs[FaultID.PrivateIdentifier] = new FaultAttributes(3);
32 faultsAttrs[FaultID.DeclWithDuplicateName] = new FaultAttributes(4);
33 faultsAttrs[FaultID.VarDeclaration] = new FaultAttributes(5);
34 faultsAttrs[FaultID.AnyType] = new FaultAttributes(8);
35 faultsAttrs[FaultID.UnknownType] = new FaultAttributes(8);
36 faultsAttrs[FaultID.CallSignature] = new FaultAttributes(14);
37 faultsAttrs[FaultID.ConstructorType] = new FaultAttributes(15);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/03.bigint_equality_operators/
Dne2.params.yaml19 - new BigInt(0 as long)
20 - new BigInt(0.0f)
21 - new BigInt(-0.0)
22 - new BigInt(-(new BigInt(0)))
25 - new BigInt(+1 as byte)
26 - new BigInt(+1 as short)
27 - new BigInt(+1.0)
28 - new BigInt(+1n)
31 - new BigInt(-1 as short)
32 - new BigInt(-1)
[all …]
Deq.params.yaml19 - new BigInt(0 as long)
20 - new BigInt(0.0f)
21 - new BigInt(-0.0)
22 - new BigInt(-(new BigInt(0)))
25 - new BigInt(+1 as byte)
26 - new BigInt(+1 as short)
27 - new BigInt(+1.0)
28 - new BigInt(+1n)
31 - new BigInt(-1 as short)
32 - new BigInt(-1)
[all …]
Dne1.params.yaml19 - new BigInt(0 as long)
20 - new BigInt(0.0f)
21 - new BigInt(-0.0)
22 - new BigInt(-(new BigInt(0)))
25 - new BigInt(+1 as byte)
26 - new BigInt(+1 as short)
27 - new BigInt(+1.0)
28 - new BigInt(+1n)
31 - new BigInt(-1 as short)
32 - new BigInt(-1)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/24.relational_expressions/03.bigint_relational_operators/
Dlt.params.yaml19 - new BigInt(0 as long)
20 - new BigInt(0.0f)
21 - new BigInt(-0.0)
22 - new BigInt(-(new BigInt(0)))
25 - new BigInt(+1 as byte)
26 - new BigInt(+1 as short)
27 - new BigInt(+1.0)
28 - new BigInt(+1n)
31 - new BigInt(-1 as short)
32 - new BigInt(-1)
[all …]
Dge.params.yaml19 - new BigInt(0 as long)
20 - new BigInt(0.0f)
21 - new BigInt(-0.0)
22 - new BigInt(-(new BigInt(0)))
25 - new BigInt(+1 as byte)
26 - new BigInt(+1 as short)
27 - new BigInt(+1.0)
28 - new BigInt(+1n)
31 - new BigInt(-1 as short)
32 - new BigInt(-1)
[all …]
Dgt.params.yaml19 - new BigInt(0 as long)
20 - new BigInt(0.0f)
21 - new BigInt(-0.0)
22 - new BigInt(-(new BigInt(0)))
25 - new BigInt(+1 as byte)
26 - new BigInt(+1 as short)
27 - new BigInt(+1.0)
28 - new BigInt(+1n)
31 - new BigInt(-1 as short)
32 - new BigInt(-1)
[all …]
Dle.params.yaml19 - new BigInt(0 as long)
20 - new BigInt(0.0f)
21 - new BigInt(-0.0)
22 - new BigInt(-(new BigInt(0)))
25 - new BigInt(+1 as byte)
26 - new BigInt(+1 as short)
27 - new BigInt(+1.0)
28 - new BigInt(+1n)
31 - new BigInt(-1 as short)
32 - new BigInt(-1)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.assignment-like_contexts/
Dunboxing2_call.params.yaml19 values: [new Byte(-128 as byte), new Byte(0 as byte), new Byte(127 as byte)]
23 values: [new Byte(-128 as byte), new Byte(0 as byte), new Byte(127 as byte)]
27 values: [new Byte(-128 as byte), new Byte(0 as byte), new Byte(127 as byte)]
31 values: [new Byte(-128 as byte), new Byte(0 as byte), new Byte(127 as byte)]
35 values: [new Byte(-128 as byte), new Byte(0 as byte), new Byte(127 as byte)]
40 values: ["new Char(c'\\u0000')", "new Char(c'X')", "new Char(c'\\uffff')"]
44 values: ["new Char(c'\\u0000')", "new Char(c'X')", "new Char(c'\\uffff')"]
48 values: ["new Char(c'\\u0000')", "new Char(c'X')", "new Char(c'\\uffff')"]
52 values: ["new Char(c'\\u0000')", "new Char(c'X')", "new Char(c'\\uffff')"]
57 values: [new Short(Short.MIN_VALUE), new Short(255 as short)]
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/extension_accessor/
DextensionAccessorWithNewExpr1.ets29 assertEQ(new A().field, 30)
30 new A().field = 29;
31 assertEQ(new A().field, 29)
32 new A().field = 15 + 15;
34 let z = new A().field + new A().field;
36 z = new A().field + new A().field + new A().field;
39 let u = new A().field + 10;
41 let i = 10 + new A().field;
43 u = 10 + new A().field + new A().field + 10;
44 new A().field = 10 + new A().field + new A().field + 10;
[all …]
DextensionAccessorWithNewExpr2.ets34 new A().field += 10;
35 assertEQ(new A().field, 40)
37 new A().field -= 200;
38 assertEQ(new A().field, -160)
40 new A().field += 260;
41 new A().field *= 10;
42 assertEQ(new A().field, 1000)
44 new A().field /= 100;
45 assertEQ(new A().field, 10)
47 new A().field = 16;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/arkts/@arkts/math/Decimal/
DtoFixedTests.ets19 const suite = new arktest.ArkTestsuite("Decimal toFixed API tests");
46 arktest.assertEQ(new Decimal(99.9512986).toFixed(1), '100.0');
47 arktest.assertEQ(new Decimal(9.95036).toFixed(1), '10.0');
48 arktest.assertEQ(new Decimal(0.99).toFixed(1), '1.0');
49 arktest.assertEQ(new Decimal(0.09906).toFixed(2), '0.10');
50 arktest.assertEQ(new Decimal(0.0098034).toFixed(3), '0.010');
51 arktest.assertEQ(new Decimal(NaN).toFixed(2), 'NaN');
52 arktest.assertEQ(new Decimal(Infinity).toFixed(2), 'Infinity');
53 arktest.assertEQ(new Decimal(-Infinity).toFixed(2), '-Infinity');
57 …arktest.assertEQ(new Decimal('1111111111111111111111').toFixed(8), '1111111111111111111111.0000000…
[all …]
DcomparedToTests.ets22 const suite = new arktest.ArkTestsuite("Decimal comparedTo API tests");
67 arktest.assertEQ(new Decimal(1).comparedTo(0), 1);
68 arktest.assertEQ(new Decimal(1).comparedTo(-0), 1);
69 arktest.assertEQ(new Decimal(-1).comparedTo(0), -1);
70 arktest.assertEQ(new Decimal(-1).comparedTo(-0), -1);
71 arktest.assertEQ(new Decimal(0).comparedTo(1), -1);
72 arktest.assertEQ(new Decimal(0).comparedTo(-1), 1);
73 arktest.assertEQ(new Decimal(-0).comparedTo(1), -1);
74 arktest.assertEQ(new Decimal(-0).comparedTo(-1), 1);
75 arktest.assertEQ(new Decimal(0).comparedTo(0), 0);
[all …]
DtoPrecisionTests.ets19 const suite = new arktest.ArkTestsuite("Decimal toPrecision API tests");
44 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(1), '1e+27');
45 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(2), '1.2e+27');
46 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(3), '1.23e+27');
47 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(4), '1.235e+27');
48 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(5), '1.2345e+27');
49 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(6), '1.23450e+27');
50 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(7), '1.234500e+27');
51 arktest.assertEQ(new Decimal('-1.2345e+27').toPrecision(1), '-1e+27');
52 arktest.assertEQ(new Decimal('-1.2345e+27').toPrecision(2), '-1.2e+27');
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dsendable_no_structural_typing.ets29 const sc1:SC1 = new SC1();
30 const nc1:NC1 = new NC1();
31 const sc2:SC2 = new SC2();
32 const nc2:NC2 = new NC2();
33 const sct1:SCT1<number> = new SCT1();
34 const nct1:NCT1<number> = new NCT1();
35 const sct2:SCT2<number> = new SCT2();
36 const nct2:NCT2<number> = new NCT2();
41 let a1: SC1 = new NC1(); // ERROR
42 a1 = new NC1();// ERROR
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/call_meth/
Dcall-meth.params.yaml19 - { expr: new Byte(), val: 0 }
20 - { expr: new Byte(127 as byte), val: 127 }
21 - { expr: new Byte(-128 as byte), val: -128 }
26 - { expr: new Byte(), val: 0 }
27 - { expr: new Byte(127 as byte), val: 127 }
28 - { expr: new Byte(-128 as byte), val: -128 }
33 - { expr: new Byte(), val: 0 }
34 - { expr: new Byte(127 as byte), val: 127 }
35 - { expr: new Byte(-128 as byte), val: -128 }
40 - { expr: new Byte(), val: 0 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/assn_var/
Dassn-var.params.yaml19 - { expr: new Byte(), val: 0 }
20 - { expr: new Byte(127 as byte), val: 127 }
21 - { expr: new Byte(-128 as byte), val: -128 }
26 - { expr: new Byte(), val: 0 }
27 - { expr: new Byte(127 as byte), val: 127 }
28 - { expr: new Byte(-128 as byte), val: -128 }
33 - { expr: new Byte(), val: 0 }
34 - { expr: new Byte(127 as byte), val: 127 }
35 - { expr: new Byte(-128 as byte), val: -128 }
40 - { expr: new Byte(), val: 0 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/comp_obj/
Dcomp-intf.params.yaml19 - { expr: new Byte(), val: 0 }
20 - { expr: new Byte(127 as byte), val: 127 }
21 - { expr: new Byte(-128 as byte), val: -128 }
26 - { expr: new Byte(), val: 0 }
27 - { expr: new Byte(127 as byte), val: 127 }
28 - { expr: new Byte(-128 as byte), val: -128 }
33 - { expr: new Byte(), val: 0 }
34 - { expr: new Byte(127 as byte), val: 127 }
35 - { expr: new Byte(-128 as byte), val: -128 }
40 - { expr: new Byte(), val: 0 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/call_cons/
Dcall-cons.params.yaml19 - { expr: new Byte(), val: 0 }
20 - { expr: new Byte(127 as byte), val: 127 }
21 - { expr: new Byte(-128 as byte), val: -128 }
26 - { expr: new Byte(), val: 0 }
27 - { expr: new Byte(127 as byte), val: 127 }
28 - { expr: new Byte(-128 as byte), val: -128 }
33 - { expr: new Byte(), val: 0 }
34 - { expr: new Byte(127 as byte), val: 127 }
35 - { expr: new Byte(-128 as byte), val: -128 }
40 - { expr: new Byte(), val: 0 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/comp_arr/
Dcomp-arr.params.yaml19 - { expr: new Byte(), val: 0 }
20 - { expr: new Byte(127 as byte), val: 127 }
21 - { expr: new Byte(-128 as byte), val: -128 }
26 - { expr: new Byte(), val: 0 }
27 - { expr: new Byte(127 as byte), val: 127 }
28 - { expr: new Byte(-128 as byte), val: -128 }
33 - { expr: new Byte(), val: 0 }
34 - { expr: new Byte(127 as byte), val: 127 }
35 - { expr: new Byte(-128 as byte), val: -128 }
40 - { expr: new Byte(), val: 0 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/decl_field/
Ddecl-field.params.yaml19 - { expr: new Byte(), val: 0 }
20 - { expr: new Byte(127 as byte), val: 127 }
21 - { expr: new Byte(-128 as byte), val: -128 }
26 - { expr: new Byte(), val: 0 }
27 - { expr: new Byte(127 as byte), val: 127 }
28 - { expr: new Byte(-128 as byte), val: -128 }
33 - { expr: new Byte(), val: 0 }
34 - { expr: new Byte(127 as byte), val: 127 }
35 - { expr: new Byte(-128 as byte), val: -128 }
40 - { expr: new Byte(), val: 0 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/alias_unconversion/call_meth/
Dcall-meth.params.yaml19 - { expr: new Byte(), val: 0 }
20 - { expr: new Byte(127 as byte), val: 127 }
21 - { expr: new Byte(-128 as byte), val: -128 }
26 - { expr: new Byte(), val: 0 }
27 - { expr: new Byte(127 as byte), val: 127 }
28 - { expr: new Byte(-128 as byte), val: -128 }
33 - { expr: new Byte(), val: 0 }
34 - { expr: new Byte(127 as byte), val: 127 }
35 - { expr: new Byte(-128 as byte), val: -128 }
40 - { expr: new Byte(), val: 0 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/alias_unconversion/assn_var/
Dassn-var.params.yaml19 - { expr: new Byte(), val: 0 }
20 - { expr: new Byte(127 as byte), val: 127 }
21 - { expr: new Byte(-128 as byte), val: -128 }
26 - { expr: new Byte(), val: 0 }
27 - { expr: new Byte(127 as byte), val: 127 }
28 - { expr: new Byte(-128 as byte), val: -128 }
33 - { expr: new Byte(), val: 0 }
34 - { expr: new Byte(127 as byte), val: 127 }
35 - { expr: new Byte(-128 as byte), val: -128 }
40 - { expr: new Byte(), val: 0 }
[all …]

12345678910>>...255