From 15ec31b84fa03852bcdf6b14fbb02bb590da55e9 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Sun, 3 Sep 2023 19:30:00 -0400 Subject: [PATCH] Actually call empty block visitor function --- cxxheaderparser/parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cxxheaderparser/parser.py b/cxxheaderparser/parser.py index 1be74c4..96bc834 100644 --- a/cxxheaderparser/parser.py +++ b/cxxheaderparser/parser.py @@ -505,7 +505,8 @@ class CxxParser: def _on_empty_block_start( self, tok: LexToken, doxygen: typing.Optional[str] ) -> None: - self._push_state(EmptyBlockState) + state = self._push_state(EmptyBlockState) + self.visitor.on_empty_block_start(state) def _on_block_end(self, tok: LexToken, doxygen: typing.Optional[str]) -> None: old_state = self._pop_state()