fix: discarded variable bug

This commit is contained in:
Shunsuke Shibayama 2023-08-14 21:45:40 +09:00
parent 5f6d530602
commit e61c0c485e
4 changed files with 19 additions and 0 deletions

View file

@ -488,6 +488,10 @@ impl Identifier {
self.raw.is_const()
}
pub fn is_discarded(&self) -> bool {
self.raw.is_discarded()
}
pub fn vis(&self) -> &VisibilityModifier {
&self.vi.vis.modifier
}