On 2014-03-14 18:22:19 +0000, Jacob Carlborg <d...@me.com> said:

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

Oh, I missed that. Great!

I'm still not entirely sure it retains enough information to perform a refactoring, but it's a start.

-- s
Michel Fortin
michel.for...@michelf.ca
http://michelf.ca

Reply via email to