If a VBA project contains modules from vbWatchDog ( http://www.everythingaccess.com/vbwatchdog.asp ), parser will fail to parse ErrEx_Helper which contains empty stubs for internal uses.
Even if I hand-edit the module to use line breaks instead of colon for breaking statements, the parse phase will succeed but it will fail with resolver error (and won't go into details why it failed.
Would #2301 seem familiar?
Can you post the code from the module?
Looking at the last comment on the linked issue, it seems possible that the parse might actually be failing in the module/procedure attributes pass. Are the line numbers off in the reported parse errors?
Thanks for posting this issue. I've had a few customers mention this to me. The issue appears to be due to the Attribute VB_Description appearing after the End Sub, which your parser doesn't seem to like:
Public Sub Foo(): End Sub
Attribute Foo.VB_Description = "Foo description"
Public Sub Bar()
End Sub
@WaynePhillipsEA Ooooh!! Indeed that would do it! The grammar we're using is assuming the procedure attributes are enclosed in the procedure's scope.. should be an easy fix, thanks a bunch!
It seems not a day goes by where this project doesn't make me go "Wait! That compiles!" :+1:
instruction separators strike again
Most helpful comment
It seems not a day goes by where this project doesn't make me go "Wait! That compiles!" :+1: