From a95a5e62e0c2f150ed216e041471a2001ece9729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 5 Jun 2024 15:17:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Cross-references=20were=20incorr?= =?UTF-8?q?ect=20for=20model-local=20variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They would be ignored. (cherry picked from commit 531b3332c13d67bc975258273e48ce3dc17fd35d) --- src/ExprNode.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ExprNode.cc b/src/ExprNode.cc index 159db131..63d05308 100644 --- a/src/ExprNode.cc +++ b/src/ExprNode.cc @@ -1585,12 +1585,12 @@ VariableNode::computeXrefs(EquationInfo& ei) const case SymbolType::parameter: ei.param.emplace(symb_id, 0); break; - case SymbolType::modFileLocalVariable: + case SymbolType::modelLocalVariable: datatree.getLocalVariable(symb_id)->computeXrefs(ei); break; case SymbolType::trend: case SymbolType::logTrend: - case SymbolType::modelLocalVariable: + case SymbolType::modFileLocalVariable: case SymbolType::statementDeclaredVariable: case SymbolType::unusedEndogenous: case SymbolType::externalFunction: -- GitLab