Get Switch statements working with VM storage

This commit is contained in:
Brian Carroll 2021-10-07 09:14:35 +01:00
parent af823fe5a8
commit d81999045a
2 changed files with 23 additions and 4 deletions

View file

@ -43,6 +43,8 @@ pub enum SymbolStorage {
}
impl SymbolStorage {
/// Mostly-deprecated. If you are calling this method, it is likely a bug!
/// Gets the local, if any, associated with this symbol. Hopefully there is none.
pub fn local_id(&self) -> Option<LocalId> {
use StackMemoryLocation::*;
match self {