mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
fix: discarded variable bug
This commit is contained in:
parent
5f6d530602
commit
e61c0c485e
4 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue