Menu

#57 Parsing continued line variable declarations

open-fixed
Parsing (14)
5
2010-11-03
2009-11-05
Anonymous
No

I've been trying to run NArrange against my growing code base and ran into the following error. If I have a code lines like so:
''' <summary>
''' Encapsulate the definition of the structure of the claim.
''' </summary>
''' <remarks></remarks>
Private Structure Claim
Public fileNum As String, fileDate As String, groupNum As String, transactionNum As String, ECSDocNum As String, _
memberID As String, lastName As String, initial As String, patientCtlNum As String, _
status As String, tobpos As String, charge As String, fromDate As String, toDate As String, _
messages As String
...

then NArrange parses and reorganizes it like so:

''' Encapsulate the definition of the structure of the claim.
''' </summary>
''' <remarks></remarks>
Private Structure Claim

Public fileNum As String
fileDate As String
groupNum As String
transactionNum As String
ECSDocNum As String
memberID As String
lastName As String
initial As String
patientCtlNum As String
status As String
tobpos As String
charge As String
fromDate As String
toDate As String
messages As String
...

I'm glad that NArrange is separating the definitions into one per line but it should be carrying the scope keyword onto new lines.

Discussion

  • James Nies

    James Nies - 2010-11-03
    • assigned_to: nobody --> jamesnies
    • status: open --> open-fixed
     
  • James Nies

    James Nies - 2010-11-03

    Thank you for posting this bug with sample code. This issue has been resolved under revision 174 and will be included in the next release of NArrange.

     

Log in to post a comment.

MongoDB Logo MongoDB