Get the use statements of a module in a way that paths can be resolved #21613
-
|
Hi all, I'm analyzing some Rust source code in a way that is mixed between semantic understanding and syntactic details. I've come quite far since the last questions I posted here, everything is going great, congrats for awesome work! :D Now, for ADTs, traits, impls etc. I've come to a use pattern where I find the Crucially, when I encounter a However, now I have to extract the use statements from the modules (as they are written in the source code, so syntactically). What comes closest is So But then how do I get to the use statements of a module in a way that allows me to use Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
You can call |
Beta Was this translation helpful? Give feedback.
You can call
semantics.module_definition_node().