From 16bf06c7a1c48667044df3658e02225428511f6d Mon Sep 17 00:00:00 2001 From: Emmanuel Benoit Date: Mon, 9 Jan 2023 07:11:18 +0100 Subject: [PATCH] Resolver - Added some spacing --- src/resolver.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/resolver.rs b/src/resolver.rs index 4b088bc..0a611f9 100644 --- a/src/resolver.rs +++ b/src/resolver.rs @@ -339,20 +339,27 @@ impl VarResolver for ExprNode { operator: _, right, } => left.resolve(rs).and_then(|_| right.resolve(rs)), + ExprNode::Binary { left, operator: _, right, } => left.resolve(rs).and_then(|_| right.resolve(rs)), + ExprNode::Unary { operator: _, right } => right.resolve(rs), + ExprNode::Grouping { expression } => expression.resolve(rs), + ExprNode::Litteral { value: _ } => Ok(()), + ExprNode::Call { callee, right_paren: _, arguments, } => callee.resolve(rs).and_then(|_| arguments.resolve(rs)), + ExprNode::Get(get_expr) => get_expr.instance.resolve(rs), + ExprNode::Set(set_expr) => set_expr .instance .resolve(rs)