-
-
Notifications
You must be signed in to change notification settings - Fork 877
Closed
Labels
A-semanticArea - SemanticArea - Semantic
Description
I am currently working on a case where I need to locate the AST node corresponding to baz in export { baz }. If baz is an ImportSpecifier, ImportDefaultSpecifier, or ImportNamespaceSpecifier, I need to check if its import_kind is type. If it is, I need to remove it.
However, I am encountering an issue. When I retrieve the kind from self.ctx.nodes().kind(self.ctx.symbols().get_declaration(symbol_id)), I am getting AstKind::ModuleDeclaration when I am expecting AstKind::ImportSpecifier.
To resolve this issue, it appears we need to modify the Binder implementation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-semanticArea - SemanticArea - Semantic