MemberList doesn't work in unfinished If Statement

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 10 years ago by Janet Dorenkott
Version: 4.0.0282
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Avatar
To show this issue, open your own SDI Application Sample and enter the following:

Dim s As String ' Member list works

If s.Trim() <> "" Then ' Member list works
s = s. ' Member list DOES NOT work


Until I go down and finish the If statement like this:
If s.Trim() <> "" Then

End If

Then, go back into the IF Statement, then it works
If s.Trim() <> "" Then ' Member list works
s = s.Replace( ' NOW IT WORKS - Then memberlist now pops up
End If

Is there a way to fix this, it's really quite annoying...

Thanks

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Janet,

Thanks, we'll mark this down as something to look into for improvement. It appears that the error recovery in the VB semantic parser in this scenario could use some enhancements as it is not properly recovering to put to the containing member (method, etc.) in the AST. That is what is causing it not to work properly.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 10 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.