ebkalderon / nix-language-server

Language server for the Nix language (WIP)
41 stars 4 forks source link

Remove HasSpan or ToSpan trait #5

Open ebkalderon opened 5 years ago

ebkalderon commented 5 years ago

These two traits do exactly the same thing, with the former being primarily implemented on AST nodes and the latter being primarily implemented on tokens and error types. It would be nice to choose one of them and consolidate the code under a single trait.