@@ -277,7 +277,8 @@ void verilog_indexer_parsert::rDescription()
277277}
278278
279279// / Covers the various 'definition-like' constructs in SystemVerilog, i.e.,
280- // / modules, interfaces, classes, primitives, packages, configurations
280+ // / modules, interfaces, classes, primitives, packages, configurations,
281+ // / checkers
281282void verilog_indexer_parsert::rModule (
282283 verilog_indexert::idt::kindt kind,
283284 int end_token)
@@ -342,6 +343,8 @@ void verilog_indexer_parsert::rItem()
342343 rModule (verilog_indexert::idt::INTERFACE, TOK_ENDINTERFACE);
343344 else if (token == TOK_PACKAGE)
344345 rModule (verilog_indexert::idt::PACKAGE, TOK_ENDPACKAGE);
346+ else if (token == TOK_CHECKER)
347+ rModule (verilog_indexert::idt::CHECKER, TOK_ENDCHECKER);
345348 else if (token == TOK_CONFIG)
346349 rModule (verilog_indexert::idt::CONFIG, TOK_CONFIG);
347350 else if (token == TOK_PROPERTY)
@@ -1469,6 +1472,11 @@ int verilog_index(const cmdlinet &cmdline)
14691472 // Show the interfaces.
14701473 show_kind (verilog_indexert::idt::kindt::INTERFACE, indexer);
14711474 }
1475+ else if (cmdline.isset (" checkers" ))
1476+ {
1477+ // Show the checker.
1478+ show_kind (verilog_indexert::idt::kindt::CHECKER, indexer);
1479+ }
14721480 else if (cmdline.isset (" classes" ))
14731481 {
14741482 // Show the interfaces.
@@ -1518,6 +1526,8 @@ int verilog_index(const cmdlinet &cmdline)
15181526 << ' \n ' ;
15191527 std::cout << " Number of UDPs............: " << total_number_of[idt::UDP]
15201528 << ' \n ' ;
1529+ std::cout << " Number of checkers........: " << total_number_of[idt::CHECKER]
1530+ << ' \n ' ;
15211531 std::cout << " Number of classes.........: " << total_number_of[idt::CLASS]
15221532 << ' \n ' ;
15231533 std::cout << " Number of packages........: " << total_number_of[idt::PACKAGE]
0 commit comments