I've been hacking away at something... and stumbled into Can. I'm just wondering if anyone could explain what the "visitor" thing is doing? From what I can gather so far it just seems to be visiting each node in the parsed AST but doesn't seem to be doing much.
it’s used for some stuff in the lsp
@Luke Boswell
I can give some insight into that. We mostly use it in the lsp to drill down into the current scope of the cursor or a hover and figure out what should be available for completion at that point.
You can see the visitor.ts in the completion directory which I believe implements that trait too
Last updated: Jul 06 2025 at 12:14 UTC