mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
use snapshots for inner scopes
This commit is contained in:
parent
70844b1218
commit
5a613db7b6
4 changed files with 54 additions and 51 deletions
|
@ -355,7 +355,7 @@ impl Scope {
|
|||
result
|
||||
}
|
||||
|
||||
pub fn snapshot(&self) -> ScopeSnapshot {
|
||||
fn snapshot(&self) -> ScopeSnapshot {
|
||||
ScopeSnapshot {
|
||||
idents: self.idents.clone(),
|
||||
aliases: self.aliases.clone(),
|
||||
|
@ -364,7 +364,7 @@ impl Scope {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn rollback(snapshot: ScopeSnapshot) -> Scope {
|
||||
fn rollback(snapshot: ScopeSnapshot) -> Scope {
|
||||
Scope {
|
||||
idents: snapshot.idents,
|
||||
aliases: snapshot.aliases,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue