From dd53d38c8fd708105050fae8231631cf71d3fab5 Mon Sep 17 00:00:00 2001 From: Selfhosting Dev Date: Wed, 17 Sep 2025 08:11:47 +0900 Subject: [PATCH] builder: widen AST wrapper adoption (Binary/Call/Method/Field) and loop helper usage; non-functional refactor with cargo check passing --- src/mir/builder/builder_calls.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mir/builder/builder_calls.rs b/src/mir/builder/builder_calls.rs index 5cc27b30..08a3893d 100644 --- a/src/mir/builder/builder_calls.rs +++ b/src/mir/builder/builder_calls.rs @@ -1,6 +1,6 @@ // Extracted call-related builders from builder.rs to keep files lean use super::{Effect, EffectMask, FunctionSignature, MirInstruction, MirType, ValueId}; -use crate::ast::{ASTNode, LiteralValue}; +use crate::ast::{ASTNode, LiteralValue, MethodCallExpr}; use crate::mir::{slot_registry, TypeOpKind}; impl super::MirBuilder { @@ -276,7 +276,8 @@ impl super::MirBuilder { return Ok(result_id); } } - // Build the object expression + // Build the object expression (wrapper allows simple access if needed in future) + let _mc = MethodCallExpr { object: Box::new(object.clone()), method: method.clone(), arguments: arguments.clone(), span: crate::ast::Span::unknown() }; let object_value = self.build_expression(object.clone())?; // Secondary interception for is/as if (method == "is" || method == "as") && arguments.len() == 1 {