mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Get Switch statements working with VM storage
This commit is contained in:
parent
af823fe5a8
commit
d81999045a
2 changed files with 23 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue