Replies: 1 comment
-
If you just need the AST of a file, you can use our However, note that only parsing is not enough to correctly find a type in all cases. E.g. macros can expand to new structs. If you want to find a file in a fully analyzed project, that's also possible using our API, but it is more work and also requires analyzing the project - which can take a long time. A probably better alternative is to interact directly with the rust-analyzer VSCode extension and send it a workspace symbols command. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Working on a vscode extension where I need to parse a rust module to find a struct name. Is there a way using the rust analyzer exported API to do it ?
Thank you
Jimmy
Beta Was this translation helpful? Give feedback.
All reactions