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

This commit is contained in:
roife 2024-06-21 21:05:14 +08:00
parent 9b8b6f92b2
commit 51b138cc79

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),
}
}