Question about rust crate biome_js_semantic #2059
-
The source code is: https://github.com/biomejs/biome/blob/main/crates/biome_js_semantic/src/events.rs#L555 I would like to ask why the semantics of biome will filter out the kind TS_QUALIFIED_NAME when analyzing the reference of binding. I have such a scenario of mutation.rename_node_declaration: namespace A {
export type B = Number;
export const a = 1;
}
let a: A.B = A.a; I want to renaming the namespace binding namespace A_1 {
export type B = Number;
export const a = 1;
}
let a: A.B = A_1.a; the I'm not sure why biome does this. Is there any background reason I can understand? looking forward to your reply~ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Because The code skips Here I think the semantic model correctly binds this reference to the namespace declaration. |
Beta Was this translation helpful? Give feedback.
I add a draft pr for this change: #2092, maybe you can take a look when you feel free, thank you~