Author Topic: Bug reverse engineering operators in VB.NET?  (Read 2338 times)

mover

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Bug reverse engineering operators in VB.NET?
« on: August 20, 2006, 05:30:45 am »
I appear to be having a similar problem to that described in the message entitled "Bug in reverse C++" posted by Wink on October 20, 2005. I am using version 6.1.792 (the latest release). I receive the following error when attempting to import a VB.NET source file into my class diagram:

There was an error parsing SourcePathAndFileName.vb on line 492.  Unexpected symbol: As

The error is received when attempting to reverse engineer the following:

<Serializable()> Public Structure SmartDate
 Implements IComparable

 ' ...other code here...

#Region " Operators "

 Public Shared Operator =(ByVal obj1 As SmartDate, ByVal obj2 As SmartDate) As Boolean
   Return obj1.Equals(obj2)
 End Operator

 ' ...other operator declarations here...

#End Region

End Structure


The line of code in red is the one that the error message refers to. It appears that when this error is encountered, the parser is unable to proceed and the Class (Structure) in which the "error" was found and any others below it in the same source file are not represented in the diagram.

Thanks!

Mike:o

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Bug reverse engineering operators in VB.NET?
« Reply #1 on: August 21, 2006, 05:32:08 pm »
Thanks Mike,

It looks like the parser can't handle operator overloads in VB.Net, we'll add that in as soon as possible.

mover

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Bug reverse engineering operators in VB.NET?
« Reply #2 on: August 22, 2006, 05:53:06 pm »
Thanks!

Mike:o
« Last Edit: August 22, 2006, 05:53:36 pm by mover »