FieldDeclaration declared with a "New" modifier

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 12 years ago by Leif Zars
Version: 4.0.0260
Platform: ASP.NET Controls
Environment: Windows Vista (64-bit)
Avatar
if i have a FieldDeclaration and LocalVariableDeclaration in your ast tree i can not find a way to determine if it is declared with a "New" modifier as in

Dim B As New NewItem
or
Friend WithEvents Button As New System.Windows.Forms.Button

the modifiers i get are 2048 (dim) and 33554434 ([Assembly] , WithEvents) respectively.

so maybe a bug???

thanks Leif

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks, the declaration should have been assigned an initializer in this case. It is now fixed for the next maintenance release.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.