Re:Turning the IDE Inside Out with Datalog
by gavinray on Sunday July 19, 2020 @02:45PM
(#23891422)
This is how Rust Analyzers intellisense works, it uses a query engine called Salsa that stores the symbols in a database and the linting and completion/semantics are entirely query-driven:
https://github.com/salsa-rs/salsa
Good video describing it's use for working with Rust's AST:
https://youtu.be/i_IhACacPRY?t=1348