Skip to content

Commit

Permalink
verilog: tools: ls: symbol-table-handler: Added handling definitions …
Browse files Browse the repository at this point in the history
…of symbols in a definition list

Signed-off-by: Grzegorz Latosinski <[email protected]>
  • Loading branch information
glatosinski committed Jun 16, 2023
1 parent dff4ac6 commit e796d0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions verilog/tools/ls/symbol-table-handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit e796d0b

Please sign in to comment.