Wiki

Ticket #298 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

ParserException class should also expose token column number

Reported by: nerdzero Owned by:
Priority: minor Milestone:
Component: Cobra IDE: Miscellaneous Version: 0.8.0
Keywords: monodevelop Cc:

Description

It would be useful for the MonoDevelop addin if the ParserException? thrown by the Cobra parser included the column number of the token that caused the exception.

I have included a patch.

P.S. I cannot select 0.9.0 from the Version drop-down when submitting a ticket.

Attachments

parser_exception_col_num.patch Download (0.8 KB) - added by nerdzero 6 years ago.
adds read-only 'colNum' property to ParserException? class

Change History

Changed 6 years ago by nerdzero

adds read-only 'colNum' property to ParserException? class

Changed 6 years ago by nerdzero

Not sure if this should be in the base SourceException? class instead. I saw a CC comment on that class about making the fileName and lineNum properties abstract.

Changed 6 years ago by Charles

  • status changed from new to closed
  • resolution set to fixed

Applied in changeset:2817. Thanks.

Note: See TracTickets for help on using tickets.