Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit 6ac9594

Browse files
committed
移除表达式评估器中this表达式的调试输出,进一步简化代码以提升可读性。
1 parent 5290a6b commit 6ac9594

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/interpreter/expression_evaluator.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,6 @@ impl<'a> Interpreter<'a> {
17461746
// 在方法上下文中处理MethodCall
17471747

17481748
if let Expression::This = **obj_expr {
1749-
eprintln!("调试: 处理this.{}方法调用", method_name);
17501749
// this.method() 调用 - 在方法上下文中计算参数
17511750
let mut arg_values = Vec::new();
17521751
for arg_expr in args {
@@ -1832,14 +1831,9 @@ impl<'a> Interpreter<'a> {
18321831
// 在方法上下文中处理FieldAccess
18331832

18341833
if let Expression::This = **obj_expr {
1835-
eprintln!("调试: 访问this.{}, 对象类型: {}", field_name, this_obj.class_name);
1836-
eprintln!("调试: 对象字段: {:?}", this_obj.fields.keys().collect::<Vec<_>>());
1837-
18381834
if let Some(value) = this_obj.fields.get(field_name) {
1839-
eprintln!("调试: 找到字段 '{}', 值: {:?}", field_name, value);
18401835
return value.clone();
18411836
} else {
1842-
eprintln!("调试: 字段 '{}' 不存在", field_name);
18431837
return Value::None;
18441838
}
18451839
} else {

0 commit comments

Comments
 (0)