I'm currently navigating through the Typescript AST and gathering certain information.
When I come across a reference to a variable (specifically an Identifier
node), I am interested in retrieving the original node, such as a VariableDeclaration
.
Is there a more efficient way to accomplish this task rather than traversing the AST from the root again, which seems like a workaround?
Are there any specific features or methods in Typescript that can help with this scenario?