From d1193f6b6d1de78f427373387fe3860328a7abc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Wed, 17 Jun 2026 05:01:36 +0200 Subject: [PATCH] =?UTF-8?q?test(arkts):=20add=20byte=5Foffset=20to=20Expr:?= =?UTF-8?q?:Call=20inits=20=E2=80=94=20fix=20harmonyos-smoke=20compile=20a?= =?UTF-8?q?fter=20#5250?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #5250 added `Expr::Call.byte_offset` but missed the `Expr::Call { .. }` initializers in perry-codegen-arkts's tests (3 in src/tests.rs, 3 in tests/phase2_full_app_smoke.rs). perry-codegen-arkts isn't built by the gating `cargo-test` job, only by the informational `harmonyos-smoke` job (continue-on-error), so this E0063 sat red on main — and on every open PR — without blocking anything. Mirrors the #5266 cheerio fix. After: `cargo test -p perry-codegen-arkts --lib` (111 passed) and `--test phase2_full_app_smoke` (2 passed) both green. No version/CHANGELOG/Cargo.lock edits. --- crates/perry-codegen-arkts/src/tests.rs | 3 +++ crates/perry-codegen-arkts/tests/phase2_full_app_smoke.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/crates/perry-codegen-arkts/src/tests.rs b/crates/perry-codegen-arkts/src/tests.rs index 3bdbd643eb..cd3ca4c380 100644 --- a/crates/perry-codegen-arkts/src/tests.rs +++ b/crates/perry-codegen-arkts/src/tests.rs @@ -960,6 +960,7 @@ fn state_method_call(state_id: u32, method: &str, args: Vec) -> Expr { }), args, type_args: vec![], + byte_offset: 0, } } @@ -2531,6 +2532,7 @@ fn issue_410_serialize_condition_fallback_has_no_block_comment_close() { callee: Box::new(Expr::LocalGet(99)), args: vec![], type_args: vec![], + byte_offset: 0, }; let s = serialize_condition(&unrecognized, &bindings, &consts); assert!( @@ -2762,6 +2764,7 @@ fn issue_410_conditional_modifier_chain_has_no_nested_block_comments() { callee: Box::new(Expr::LocalGet(999)), args: vec![], type_args: vec![], + byte_offset: 0, }, )); m.init.push(let_widget( diff --git a/crates/perry-codegen-arkts/tests/phase2_full_app_smoke.rs b/crates/perry-codegen-arkts/tests/phase2_full_app_smoke.rs index aa3f77d5ae..8cfd601ca1 100644 --- a/crates/perry-codegen-arkts/tests/phase2_full_app_smoke.rs +++ b/crates/perry-codegen-arkts/tests/phase2_full_app_smoke.rs @@ -149,6 +149,7 @@ fn full_phase2_app_emits_canonical_arkui() { }), args: vec![], type_args: vec![], + byte_offset: 0, }; // --- Phase 2 v6 + v5: Button with state.set + inline style --- @@ -160,6 +161,7 @@ fn full_phase2_app_emits_canonical_arkui() { }), args: vec![Expr::Number(1.0)], type_args: vec![], + byte_offset: 0, })]; let inc_button = nmc( "Button", @@ -523,6 +525,7 @@ fn minimal_counter_app_emits_clean_page() { }), args: vec![], type_args: vec![], + byte_offset: 0, }, nmc( "Button",