Skip to content

Commit

Permalink
fix typo in binary operation evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
SpontanCombust committed May 21, 2024
1 parent cf622f8 commit 4a76cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/analysis/src/utils/visitors/expr_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4a76cff

Please sign in to comment.