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