Skip to content

Commit 15ec31b

Browse files
committed
Actually call empty block visitor function
1 parent a110a55 commit 15ec31b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cxxheaderparser/parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,8 @@ def _consume_static_assert(
505505
def _on_empty_block_start(
506506
self, tok: LexToken, doxygen: typing.Optional[str]
507507
) -> None:
508-
self._push_state(EmptyBlockState)
508+
state = self._push_state(EmptyBlockState)
509+
self.visitor.on_empty_block_start(state)
509510

510511
def _on_block_end(self, tok: LexToken, doxygen: typing.Optional[str]) -> None:
511512
old_state = self._pop_state()

0 commit comments

Comments
 (0)