From 4a76cff735cb3fef166437183b9cfe5c57706811 Mon Sep 17 00:00:00 2001 From: SpontanCombust Date: Tue, 21 May 2024 18:25:33 +0200 Subject: [PATCH] fix typo in binary operation evaluation --- crates/analysis/src/utils/visitors/expr_evaluator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/analysis/src/utils/visitors/expr_evaluator.rs b/crates/analysis/src/utils/visitors/expr_evaluator.rs index 52748746..6598a35c 100644 --- a/crates/analysis/src/utils/visitors/expr_evaluator.rs +++ b/crates/analysis/src/utils/visitors/expr_evaluator.rs @@ -311,7 +311,7 @@ impl SyntaxNodeVisitor for ExpressionEvaluator<'_> { self.pop(); } - let left_path = if self.top().map(|e| e.ctx == ExpressionTraversalContext::AssignmentOperationExpressionLeft).unwrap_or(false) { + let left_path = if self.top().map(|e| e.ctx == ExpressionTraversalContext::BinaryOperationExpressionLeft).unwrap_or(false) { self.pop().unwrap().path } else { SymbolPathBuf::unknown(SymbolCategory::Type)