Home
last modified time | relevance | path

Searched full:j (Results 1 – 25 of 1676) sorted by relevance

12345678910>>...68

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/02.generic_instantiations/01.type_arguments/type_arguments_of_parameterized_declarations/
Dinterface_args_neg.params.yaml18 let v: J<X> = new A<X>(new Y()) // Y is not X
21 let v: J<X> = new A<X|null>(null) // assignment to subclass
24 let v: J<J<X>> = new A<J<X>>(new A<Y>(new Y())) // A<Y> is not J<X>
28 let v: J<I> = new A<I>(new Y()) // Y doesn't implement I
32 let v: J<J<I>> = new A<J<I>>(new A<Y>(new Y())) // J<Y> is not J<I>
37 let v: J<X[]> = new A<X[]>(new Y[0]) // Y[] is not X[]
41 let v: J<Color[]> = new A<Color[]>(new Color[0])
45 let v: J<J<X>[]> = new A<J<X>[]>(new J<Y>[0]) // J<Y>[] is not J<X>[]
48 let v: J<J<X[]>[]> = new A<J<X[]>[]>(new J<Y[]>[0]) // X[] is not Y[]
51 let v: J<I[]> = new A<I[]>(new J[0]) // J is not I
[all …]
Dinterface_args.params.yaml18 let v: J<X> = new A<X>(new X())
21 let v: J<X> = new A<X>(new X())
25 let v: J<X> = new A<X>(new X())
29 let v: J<X|null> = new A<X|null>(new X())
33 let v: J<X|null> = new A<X|null>(null)
37 let v: J<X|null> = new A<X|null>(null)
40 let v: J<J<X>> = new A<J<X>>(new A<X>(new X()))
44 let v: J<I> = new A<I>(new X())
47 let v: J<I|null> = new A<I|null>(new X())
51 let v: J<J<I>> = new A<J<I>>(new A<I>(new X()))
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/ets/
Dbinary_op.ets18 let j = 2;
37 let i01 = i & j;
38 let i02 = i ^ j;
39 let i03 = i | j;
40 let i04 = i & j ^ i & j | i ^ j;
43 let b07 = i != j;
44 let b08 = i == j;
49 let b12 = i < j;
50 let b13 = i > j;
51 let b14 = i <= j;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-common-tests/atomics/
Dbase_operator_bigint.ets25 for (let j = 0; j < arraySize; j++) {
26 let old = Atomics.add(ta, j, 12n)
30 let re = (k === j) ? 12n : 0n
34 Atomics.store(ta, j, 0n)
42 for (let j = 0; j < arraySize; j++) {
43 Atomics.store(ta, j, 3n)
45 let old = Atomics.and(ta, j, 1n)
49 let re = (k === j) ? 1n : 0n
53 Atomics.store(ta, j, 0n)
61 for (let j = 0; j < arraySize; j++) {
[all …]
Dbase_operator_biguint.ets25 for (let j = 0; j < arraySize; j++) {
26 let old = Atomics.add(ta, j, 12n)
30 let re = (k === j) ? 12n : 0n
34 Atomics.store(ta, j, 0n)
42 for (let j = 0; j < arraySize; j++) {
43 Atomics.store(ta, j, 3n)
45 let old = Atomics.and(ta, j, 1n)
49 let re = (k === j) ? 1n : 0n
53 Atomics.store(ta, j, 0n)
61 for (let j = 0; j < arraySize; j++) {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/03.utility_types/02.required_utility_type/
Drequired_type.params.yaml16 - { i: "i: number = 0", j: "j: string = \"\"" }
17 - { i: "i?: number", j: "j: string = \"\"" }
18 - { i: "i?: number", j: "j?: string" }
19 - { i: "i: number = 0", j: "j?: string" }
20 - { i: "readonly i?: number", j: "j?: string" }
21 - { i: "i: number = 0", j: "readonly j: string = \"\"" }
22 - { i: "i?: number", j: "readonly j?: string" }
23 - { i: "readonly i?: number", j: "readonly j?: string" }
24 - { i: "readonly i: number = 0", j: "readonly j: string = \"\"" }
27 - { argument: "{i: 1.9, j: \"some str\"}", result: 3 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/02.access_to_common_union_members/
Dcm_fld3.params.yaml22 interface J {
28 class B implements J {
31 let u1: J|I = new A
32 let u2: I|J = new B
42 interface J {
48 class B implements J {
51 let u1: I|J = new A
52 let u2: I|J = new B
62 interface J {
68 class B implements J {
[all …]
Dcm_meth3.params.yaml22 interface J {
30 class B implements J {
35 let u1: J|I = new A
36 let u2: I|J = new B
46 interface J {
54 class B implements J {
59 let u1: I|J = new A
60 let u2: I|J = new B
70 interface J {
78 class B implements J {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/03.utility_types/01.partial_utility_type/
Dpartial_type.params.yaml16 - { i: "i: number", j: "j: string" }
17 - { i: "i?: number", j: "j: string" }
18 - { i: "i?: number", j: "j?: string" }
19 - { i: "i: number", j: "j?: string" }
20 - { i: "readonly i: number", j: "j: string" }
21 - { i: "i: number", j: "readonly j: string" }
22 - { i: "readonly i: number", j: "readonly j: string" }
25 - { argument: "{i: 1.9, j: \"some str\"}", result: 3 }
27 - { argument: "{j: \"some str\"}", result: 3 }
Dpartial_type_interface.params.yaml16 - { i: "i: number", j: "j: string" }
17 - { i: "i?: number", j: "j: string" }
18 - { i: "i?: number", j: "j?: string" }
19 - { i: "i: number", j: "j?: string" }
20 - { i: "readonly i: number", j: "j: string" }
21 - { i: "i: number", j: "readonly j: string" }
22 - { i: "readonly i: number", j: "readonly j: string" }
25 - { argument: "{i: 1.9, j: \"some str\"}", result: 3 }
27 - { argument: "{j: \"some str\"}", result: 3 }
Dstatic_partial_type.params.yaml19 j: int = 0
22 let a: Partial<A> = {i:1, j:2}
23 assertEQ(a.j, 2)
30 j: int = 0
33 let a: Partial<AC> = {i:1, j:2}
34 assertEQ(a.j, 2)
41 j: int = 0
44 let a: Partial<A> = {j:2}
45 assertEQ(a.j, 2)
50 j: int = 0
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/03.utility_types/03.readonly_utility_type/
Dreadonly_type_compatibility.ets22 j: string;
27 j = "";
28 constructor(i: number, j: string) {
30 this.j = j;
37 j: string = "";
38 constructor(i: number, j: string) {
40 this.j = j;
46 let z: Readonly<I> = {i: 1.8, j: "some str"}
48 assertTrue(z.j == "some str")
51 assertTrue(z.j == "new str")
[all …]
/arkcompiler/ets_runtime/test/aottest/frame_states/
Dframe_states.ts19 let j: number = 0;
21 while (i < 1 && j < 1) {
23 j = 0;
24 while (i < n && j < n) {
26 perm1[j] = 0;
28 j = j + 1;
34 while (j < n) {
35 perm1[j] = 0;
36 j = j + 1;
38 while (i < n && j < n) {
[all …]
/arkcompiler/ets_frontend/arkguard/test/ut/utils/ScopeAnalyzer/
DanalyzeBreakOrContinue.ts20 for (let j = 1; j <= 5; j++) {
21 if (i === 3 && j === 3) {
24 if (i === 4 && j === 4) {
27 console.log(`i = ${i}, j = ${j}`);
34 for (let j = 1; j <= 5; j++) {
35 if (i === 3 && j === 3) {
38 if (i === 4 && j === 4) {
41 console.log(`i = ${i}, j = ${j}`);
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dlabeled_statement_clone.ets24 b: for (let j = 0; j < 5; j++) {
25 if (j > i)
36 b: for (let j = 0; j < 5; j++) {
37 if (j > i)
48 b: for (let j = 0; j < 5; j++) {
49 if (j > i)
61 b: for (let j = 0; j < 5; j++) {
62 if (j > i)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/05.if_statements/
Dif_neg.params.yaml18 if (i == j)
19 if (i + j > 0)
20 else i = j
26 if (i == j)
27 if (i + j > 0) i = j
34 if i > j return 1;
38 if (i != j return 1;
42 if i != j) return 1;
46 if (i > j) ;; else ;;
51 if (i > j) {}} else {}
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/07.while_statements_and_do_statements/
Dneg.params.yaml18 while i > j {}
22 while (i > j {}
26 while i > j) {}
30 do {} while i > j
34 do {} while (i > j
38 do {} while i > j)
42 do while (i > j)
46 do {{} while (i > j)
50 do {}} while (i > j)
55 i += j;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/03.utility_types/
Dexported_data.ets27 j: string = "";
32 j: string = "";
37 j: string;
45 set j(j: string) {gs+=4; this._j = j }
46 get j(): string {gs+=8; return this._j }
54 j?: string = "";
59 j?: string = "";
64 j?: string;
72 set j(j?: string) {gs+=4; this._j = j }
73 get j(): string|undefined {gs+=8; return this._j }
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/05.overloading_and_overriding_in_interfaces/
Dmultiple_interfaces_inheritance.params.yaml22 interface J extends I {
23 foo(j: string) {
27 class A implements I, J {}
40 interface J extends I {
41 foo(j: number) {
45 class A implements I, J {}
56 interface J {
57 foo(j: string) {
61 class A implements I, J {}
74 interface J {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/object_ops/
Dobject_call_method_by_name_long_test.cpp52 … ASSERT_EQ(env_->Object_CallMethodByName_Long_A(object, "longMethod", "JJ:J", &sum, args), ANI_OK); in TEST_F()
78 …ASSERT_EQ(env_->Object_CallMethodByName_Long_A(object, "xxxxxxxxxx", "JJ:J", &sum, args), ANI_NOT_… in TEST_F()
88 …ASSERT_EQ(env_->Object_CallMethodByName_Long_A(nullptr, "longMethod", "JJ:J", &sum, args), ANI_INV… in TEST_F()
100 …ASSERT_EQ(env_->Object_CallMethodByName_Long_A(object, nullptr, "JJ:J", &sum, args), ANI_INVALID_A… in TEST_F()
111 …ASSERT_EQ(env_->Object_CallMethodByName_Long_A(object, "longMethod", "JJ:J", nullptr, args), ANI_I… in TEST_F()
120 …ASSERT_EQ(env_->Object_CallMethodByName_Long_A(object, "longMethod", "JJ:J", &sum, nullptr), ANI_I… in TEST_F()
129 …ASSERT_EQ(env_->Object_CallMethodByName_Long(object, "longMethod", "JJ:J", &sum, VAL1, VAL2), ANI_… in TEST_F()
149 …ASSERT_EQ(env_->Object_CallMethodByName_Long(object, "XXXXXXX", "JJ:J", &sum, VAL1, VAL2), ANI_NOT… in TEST_F()
156 …ASSERT_EQ(env_->Object_CallMethodByName_Long(nullptr, "longMethod", "JJ:J", &sum, VAL1, VAL2), ANI… in TEST_F()
165 …ASSERT_EQ(env_->Object_CallMethodByName_Long(object, nullptr, "JJ:J", &sum, VAL1, VAL2), ANI_INVAL… in TEST_F()
[all …]
/arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/top/10_object/
D01_object_01_expected.txt32 let j = {
50 c(j.a01 === 1);
51 c(j.b01 === '12');
52 c(j[1] === 1);
53 c(j["2"] === "2");
54 c(j[3] === 3);
55 c(j["4"] === "4");
56 c(j[h] === 5);
57 c(j[d] === 6);
58 c(j["12"] === 7);
[all …]
/arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp+top/10_object/
D01_object_01_expected.txt32 let j = {
50 c(j.a01 === 1);
51 c(j.b01 === '12');
52 c(j[1] === 1);
53 c(j["2"] === "2");
54 c(j[3] === 3);
55 c(j["4"] === "4");
56 c(j[h] === 5);
57 c(j[d] === 6);
58 c(j["12"] === 7);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/05.evaluation_of_other_expressions/
Dinstof.ets25 interface J {}
29 class B extends A implements J {}
36 if (a instanceof J) return 1;
42 if (!(a instanceof J)) return 1;
48 if (i instanceof J) return 1;
54 if (!(i instanceof J)) return 1;
60 if (!(b instanceof J)) return 1;
62 let j: J = new B();
63 if (!(j instanceof A)) return 1;
64 if (!(j instanceof I)) return 1;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/02.override-compatible_signatures/
Doverride_compatibility_parameter.params.yaml43 override foo<J extends T>(i: J) {
74 override foo<J extends Object>(i: J) {
93 override foo<J extends Base>(i: J) {
113 override foo<J extends Base>(i: J) {
134 override foo<J extends I>(i: J) {
162 override foo<J extends III>(i: J) {
178 override foo<J>(i: J): J {
197 override foo<J extends Base>(i: J): J {
216 override foo<J extends Object>(i: J): J {
236 override foo<J extends Base>(i: J): J {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dmemory_coalescing2.ets105 for (let j: int = 0; j < u.length; j = j + 2) {
106 t.i1 += u[j];
107 t.i2 += u[j + 1];
119 for (let j: int = 0; j < u.length; j = j + 2) {
120 t.i2 += u[j];
121 t.f1 += u[j + 1];
133 for (let j: int = 0; j < u.length; j = j + 2) {
134 t.f1 += u[j];
135 t.f2 += u[j + 1];
147 for (let j: int = 0; j < u.length; j = j + 2) {
[all …]

12345678910>>...68