From e796d0be7f972453312056048d151d81b66e4182 Mon Sep 17 00:00:00 2001 From: Grzegorz Latosinski Date: Thu, 20 Apr 2023 15:31:59 +0200 Subject: [PATCH] verilog: tools: ls: symbol-table-handler: Added handling definitions of symbols in a definition list Signed-off-by: Grzegorz Latosinski --- verilog/tools/ls/symbol-table-handler.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/verilog/tools/ls/symbol-table-handler.cc b/verilog/tools/ls/symbol-table-handler.cc index f7f8df4b70..edbdfd69b8 100644 --- a/verilog/tools/ls/symbol-table-handler.cc +++ b/verilog/tools/ls/symbol-table-handler.cc @@ -200,6 +200,12 @@ const SymbolTableNode *SymbolTableHandler::ScanSymbolTreeForDefinition( if (context->Key() && verible::IsSubRange(*context->Key(), symbol)) { return context; } + for (const auto &supplement_definition : + context->Value().supplement_definitions) { + if (verible::IsSubRange(supplement_definition, symbol)) { + return context; + } + } for (const auto &ref : context->Value().local_references_to_bind) { if (ref.Empty()) continue; const SymbolTableNode *resolved =