Home
last modified time | relevance | path

Searched full:fld2 (Results 1 – 25 of 35) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DreadonlyObjectLiteral_2.ets17 fld2: number = 3;
20 let a: A = {fld: 3, fld2: 4};
21 a.fld2 = 5;
23 assertEQ(a.fld2, 5)
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
DrequiredType_5.ets18 fld2: Int | null | undefined = 5;
22 let req_b: Required<B> = {fld: 3.0, fld2: 7};
24 req_b.fld2 = 4;
DrequiredType_9.ets22 fld2: Required<T>;
27 let req_a: Required<A<B>> = {fld: new B(), fld2: {b_fld: 4}, fld3: {b_fld: 9}};
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dsta.obj.yaml55 i32 fld2
60 i64 fld2
65 u64 fld2
70 i32 fld2 <static>
76 i32 fld2 <static>
83 i64 fld2 <static>
89 f64 fld2 <static>
95 f32 fld2 <static>
Dlda.obj.yaml53 i32 fld2
58 i64 fld2
63 u64 fld2
68 i32 fld2 <static>
74 i32 fld2 <static>
80 i64 fld2 <static>
86 f64 fld2 <static>
92 f32 fld2 <static>
Dmov.obj.yaml54 i32 fld2
59 i64 fld2
64 u64 fld2
69 i32 fld2 <static>
75 i32 fld2 <static>
81 i64 fld2 <static>
87 f64 fld2 <static>
93 f32 fld2 <static>
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dsta.obj.yaml55 i32 fld2
60 i64 fld2
65 u64 fld2
70 i32 fld2 <static>
76 i32 fld2 <static>
83 i64 fld2 <static>
89 f64 fld2 <static>
95 f32 fld2 <static>
Dlda.obj.yaml54 i32 fld2
59 i64 fld2
64 u64 fld2
69 i32 fld2 <static>
75 i32 fld2 <static>
81 i64 fld2 <static>
87 f64 fld2 <static>
93 f32 fld2 <static>
162 i32 fld2
Dmov.obj.yaml55 i32 fld2
60 i64 fld2
65 u64 fld2
70 i32 fld2 <static>
76 i32 fld2 <static>
83 i64 fld2 <static>
89 f64 fld2 <static>
95 f32 fld2 <static>
166 i32 fld2
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.assignment-like_contexts/
Dwidening_refs_call.ets31 public fld2: {{c.totype}}|null = null;
38 this.fld2 = p;
46 if (obj.fld1 !== v || obj.fld2 !== v) {
Dwidening_prim_call.ets24 public fld2: {{c.ctype}};
31 this.fld2 = p;
40 if (obj{{loop.index}}.fld1 != {{t.val2|safe}} || obj{{loop.index}}.fld2 != {{t.val2|safe}}) {
Dunrelated_call.ets32 public fld2: {{c.totype}}|null;
39 this.fld2 = p;
47 if (obj.fld1 !== v || obj.fld2 !== v) {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/11.constant_to_enum_conversions/
Dint2enum.params.yaml53 fld2: Color = 100
60 assertEQ(a.fld2, Color.Green)
67 fld2: Color
74 a.fld2 = 1 + Color.Green
77 assertEQ(a.fld2, Color.Blue)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.enum_to_const_types_conversions/
Denum2str.params.yaml58 fld2: string = Color.Blue + Color.Green
65 assertEQ(a.fld2, "bg")
72 fld2: string = ""
79 a.fld2 = Color.Blue + Color.Green
82 assertEQ(a.fld2, "bg")
Denum2int.params.yaml58 fld2: number = Color.Blue + Color.Green
65 assertEQ(a.fld2, 201)
72 fld2: int
79 a.fld2 = Color.Blue + Color.Green
82 assertEQ(a.fld2, 201)
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/
DrequiredType_7_neg.ets18 fld2: Number | undefined = 2.0;
23 let req_b: Required<B> = /* @@ label */{fld: 3.0, fld2: 5.0};
DunionCommonMember_neg.ets18 fld2: double = 42.0
29 fld2: Double = 33.0
45 assertEQ(/* @@ label2 */u.fld2, 42.0)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/03.implicit_generic_instantiations/
Dlmbd.params.yaml19 fld2: number = 0
33 assertTrue(foo('fld2', 'fld4') == 'fld2fld4')
Dfunc.params.yaml19 fld2: number = 0
35 assertTrue(foo('fld2', 'fld4') == 'fld2fld4')
Dmeth.params.yaml19 fld2: number = 0
37 assertTrue(cls.foo('fld2', 'fld4') == 'fld2fld4')
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/FixedArray/
DunionCommonMember_neg.ets18 fld2: double = 42.0
29 fld2: Double = 33.0
45 assertEQ(/* @@ label2 */u.fld2, 42.0)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/13.compilation_units/09.export_directives/04.re-export_directive/
Dre-export_all_namespace.ets34 let foo_inter : name.foo_Inter = {fld1: 10, fld2: "Hi"};
36 assertEQ(foo_inter.fld2, "Hi");
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/02.access_to_common_union_members/
Dcm_fld2.params.yaml114 fld2: 'a'|'b'|'c' = 'c'
117 fld2: 'c'|'b'|'a' = 'a'
124 assertEQ(u1.fld2, 'c')
125 assertEQ(u2.fld2, 'a')
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/05.object_literal/02.object_literal_of_interface_type/
Din.params.yaml157 fld2: number;
163 let a: A = { fld1: v++, fld2: v++, fld3: v++ }
164 assertTrue(v == 45 && a.fld1 == 42 && a.fld2 == 43 && a.fld3 == 44)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/05.object_literal/01.object_literal_of_class_type/
Dcl.params.yaml152 fld2: number;
158 let a: A = { fld1: v++, fld2: v++, fld3: v++ }
159 assertTrue(v == 45 && a.fld1 == 42 && a.fld2 == 43 && a.fld3 == 44)

12