Skip to content

Commit a31f6c7

Browse files
Claudeclaude
andcommitted
[Release] v3.19.29 - Quality & Test Coverage Release
Version bump: 3.19.28 → 3.19.29 Release Highlights: - DEPYLER-0307 Phase 2: Built-in functions complete (Example 13: 100%) - v3.19.1 Phase 1: Test coverage +2.15% (58.77% → 60.92%) - 24 new integration tests - +838 lines covered - All quality gates passing Changes: - Cargo.toml: Version 3.19.28 → 3.19.29 - expr_gen.rs: Formatting (cargo fmt) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 92c4cd7 commit a31f6c7

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ max_cyclomatic_complexity = 15
2424
required_documentation_coverage = 100.0
2525

2626
[workspace.package]
27-
version = "3.19.28"
27+
version = "3.19.29"
2828
edition = "2021"
2929
authors = ["Depyler Contributors"]
3030
license = "MIT OR Apache-2.0"

crates/depyler-core/src/rust_gen/expr_gen.rs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,10 @@ impl<'a, 'b> ExpressionConverter<'a, 'b> {
476476
// Ranges in Rust (0..n) are already iterators - don't call .iter() on them
477477
// DEPYLER-0307 Phase 2 Fix: Wrap range in parentheses for correct precedence
478478
if func == "sum" && args.len() == 1 {
479-
if let HirExpr::Call { func: range_func, .. } = &args[0] {
479+
if let HirExpr::Call {
480+
func: range_func, ..
481+
} = &args[0]
482+
{
480483
if range_func == "range" {
481484
let range_expr = args[0].to_rust_expr(self.ctx)?;
482485

@@ -2297,7 +2300,10 @@ impl<'a, 'b> ExpressionConverter<'a, 'b> {
22972300
if let HirExpr::Var(var_name) = base {
22982301
// Heuristic: Check if variable name suggests tuple iteration
22992302
// TODO: Replace with proper type tracking via ctx.var_types
2300-
matches!(var_name.as_str(), "pair" | "entry" | "item" | "elem" | "tuple" | "row")
2303+
matches!(
2304+
var_name.as_str(),
2305+
"pair" | "entry" | "item" | "elem" | "tuple" | "row"
2306+
)
23012307
} else {
23022308
false
23032309
}
@@ -2498,7 +2504,13 @@ impl<'a, 'b> ExpressionConverter<'a, 'b> {
24982504
|| name.ends_with("_word")
24992505
|| name.ends_with("_text")
25002506
}
2501-
HirExpr::MethodCall { method, .. } if method.as_str().contains("upper") || method.as_str().contains("lower") || method.as_str().contains("strip") => true,
2507+
HirExpr::MethodCall { method, .. }
2508+
if method.as_str().contains("upper")
2509+
|| method.as_str().contains("lower")
2510+
|| method.as_str().contains("strip") =>
2511+
{
2512+
true
2513+
}
25022514
HirExpr::Call { func, .. } if func.as_str() == "str" => true,
25032515
_ => false,
25042516
}

0 commit comments

Comments
 (0)