Resolver - Handle the "this" keyword

This commit is contained in:
Emmanuel BENOîT 2023-01-09 07:59:55 +01:00
parent 1f4aecd099
commit ea4717c8bd

View file

@ -328,7 +328,7 @@ impl VarResolver for ExprNode {
'a: 'b, 'a: 'b,
{ {
match self { match self {
ExprNode::Variable(var_expr) => rs.resolve_use(var_expr), ExprNode::Variable(var_expr) | ExprNode::This(var_expr) => rs.resolve_use(var_expr),
ExprNode::Assignment { name, value, id } => { ExprNode::Assignment { name, value, id } => {
value.resolve(rs)?; value.resolve(rs)?;