FieldDeclaration declared with a "New" modifier

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 17 years ago by Leif Zars
Version: 4.0.0260
Platform: .NET 3.0
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 17 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 (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.