mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Update skeleton
This commit is contained in:
@@ -685,6 +685,15 @@ impl Constant {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_global_variable_name(&self) -> Option<String> {
|
||||
if let Self::GlobalVariable { name, .. } = self {
|
||||
Some(name.clone())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn minus(self) -> Self {
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user