nodes: add missing reader tracking to function calls
This commit is contained in:
parent
714c9b490e
commit
cd42fac98e
1 changed files with 1 additions and 1 deletions
|
|
@ -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}'")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue