fix: use ItemInNs::Macros to convert ModuleItem to ItemInNs

This commit is contained in:
roife 2024-06-21 21:05:14 +08:00
parent 67f7eb505e
commit d5bb2f0cba

View file

@ -2784,6 +2784,7 @@ impl From<ModuleDef> for ItemInNs {
ModuleDef::Static(_) | ModuleDef::Const(_) | ModuleDef::Function(_) => {
ItemInNs::Values(module_def)
}
ModuleDef::Macro(it) => ItemInNs::Macros(it),
_ => ItemInNs::Types(module_def),
}
}