I'd like to:
I was advised that rust-analyzer is made with this in mind. But where is the API for this, please? I'm not even sure which crate to look into.
You need the
syntax crate (sorry, didn't have a chance to get back to you on telegram yet :( )