Re: [elixir-core:7910] Enhancement request: parse character offsets for AST node

2018-02-26 Thread Louis Pilfold
Hi there Given we have the formatter now I would be tempted to avoid editing strings and instead update the AST of the file, render that to a string, format it and write it back to the file. Would be more reliable. Cheers, Louis On Mon, 26 Feb 2018, 12:11 Serge Smetana,

[elixir-core:7910] Enhancement request: parse character offsets for AST node

2018-02-26 Thread Serge Smetana
Hi, I would like Elixir AST nodes to include begin and end parse character offsets. This would make it easier to write refactoring tools that modify parts of Elixir source files. Usecase: We have a library https://github.com/assert-value/assert_value_elixir that is able to create and update