Home
last modified time | relevance | path

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

12

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DreadonlyObjectLiteral_2.sts17 fld2: number = 3;
20 let a: A = {fld: 3, fld2: 4};
21 a.fld2 = 5;
23 assert(a.fld2 == 5);
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
DrequiredType_5.sts18 fld2: Int | null | undefined = 5;
22 let req_b: Required<B> = {fld: 3.0, fld2: 7};
24 req_b.fld2 = 4;
DrequiredType_9.sts22 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/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/04.scopes/
Dtype_param_class.sts29 fld2: T;
33 this.fld2 = this.fld1 * 2; // CTE, cannot apply arithmetic to type parameters
34 return this.fld2;
Dtype_param_interface.sts41 fld2: T;
46 this.fld2 = this.fld1 * 2;
47 return this.fld2;
/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.sts30 public fld2: {{c.totype}}|null;
37 this.fld2 = p;
45 if (obj.fld1 !== v || obj.fld2 !== v) {
Dunrelated_call.sts32 public fld2: {{c.totype}}|null;
39 this.fld2 = p;
47 if (obj.fld1 !== v || obj.fld2 !== v) {
Dwidening_prim_call.sts24 public fld2: {{c.ctype}};
31 this.fld2 = p;
40 if (obj{{loop.index}}.fld1 != {{t.val2|safe}} || obj{{loop.index}}.fld2 != {{t.val2|safe}}) {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/12.enum_to_const_types_conversion/
Denum2str.params.yaml57 fld2: string = Color.Blue + Color.Green
64 assert a.fld2 == "bg"
71 fld2: string = ""
78 a.fld2 = Color.Blue + Color.Green
81 assert a.fld2 == "bg"
Denum2int.params.yaml57 fld2: number = Color.Blue + Color.Green
64 assert a.fld2 == 201
71 fld2: int
78 a.fld2 = Color.Blue + Color.Green
81 assert a.fld2 == 201
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/
DrequiredType_7_neg.sts18 fld2: Number | undefined = 2.0;
23 let req_b: Required<B> = /* @@ label */{fld: 3.0, fld2: 5.0};
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/12.union_types/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 assert(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 assert(v == 45 && a.fld1 == 42 && a.fld2 == 43 && a.fld3 == 44)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/12.trailing_lambda/
Dtrlambda_func.params.yaml230 fld2: number
234 let v: A = { fld1: foo(1.0) { globl = 3.0 }, fld2: foo(2.0) { globl += 5.0 } }
235 assert v.fld1 == 4.0 && v.fld2 == 11.0
/arkcompiler/ets_frontend/ets2panda/linter/test/rules/
Drule1.sts51 [S2.s2]: "fld2",
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/02.generic_instantiations/03.implicit_generic_instantiations/
Dfunc.params.yaml106 fld2: number = 0
122 assert(foo('fld2', 'fld4') == 'fld2fld4')
Dlmbd.params.yaml102 fld2: number = 0
116 assert(foo('fld2', 'fld4') == 'fld2fld4')
Dmeth.params.yaml125 fld2: number = 0
143 assert(cls.foo('fld2', 'fld4') == 'fld2fld4')

12