From cd42fac98e65bd1e50e0fac6dfeff4632cbbf937 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Fri, 5 Jan 2024 23:41:41 +0100 Subject: [PATCH] nodes: add missing reader tracking to function calls --- compiler/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/nodes.py b/compiler/nodes.py index d72ec67..a3a60c7 100644 --- a/compiler/nodes.py +++ b/compiler/nodes.py @@ -355,7 +355,7 @@ class Call(Node): def semantic_analysis(self, context: semantic.Context): super(Call, self).semantic_analysis(context) - variable = context.get_variable(self.identifier.value) + variable = context.get_variable(self.identifier.value, reader=self) if variable is None: raise SemanticAnalysisError(location=self.location(), message=f"Unknown function '{self.identifier.value}'")