On 2014-03-14 13:09, Michel Fortin wrote:
But before you can consider building such a tool, you'll have to convince Walter that the locations of tokens should be tracked more precisely in the frontend. Currently the frontend remembers only the file and line of any token it finds. You can't implement a refactoring with that. Last time that came in in a discussion (about error messages showing the exact location of the error), the idea was shut down on the ground that storing better location info would slow down the compiler.
This as already been implemented [1]. DMD (git master) now supports the -vcolumns flag to display error message with information about the column.
[1] https://github.com/D-Programming-Language/dmd/pull/3077 -- /Jacob Carlborg
