VB.Net syntax parser does not support sub-classes

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 6 years ago by Kelley M
Version: 12.2.0573
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

Public Class PrimaryClass

Public Shared Property TestSubClass As New SubClass

Public Class SubClass

Public Shared Property TestProperty As Boolean

End Class

End Class

Comments (3)

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

Hi Kelley,

Could you provide more detail?  In the latest version, when I try IntelliPrompt on what you wrote, I can access everything fine.


Actipro Software Support

Posted 6 years ago by Kelley M
Avatar

It does not work in you online demo - not sure if that is the latest or not.

 

Point is, if you declare an instance of the Primary Class:

 

Dim x As PrimaryClass

And dot into it

 

x. <-- you will see intellisense with four items (Equals,GetHashCode,GetType, and ToString)

 

Try the same thing in Visual Studio and you will see the same four items and the Property TestSubClass.

 

Also, every time I attempt to initialize a variable  with the New operator it replaces it with NewsStypleUirParser, very annoying!

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

Hi Kelley,

I haven't seen that style of sub-class access before and am having trouble finding where it is in the VB specifications.  If you change it to do it the normal way, it will work fine.  Like this:

PrimaryClass.

We will add the 'New' keyword to the type completion list.  That will help with the other issue.


Actipro Software Support

The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.