Open Kmeakin opened 1 year ago
synth_let_def
LetDef
let initial_len = self.local_env.len(); ...; self.local_env.truncate(initial_len)
self.with_scope(|this| ...)
Builder
self.scope.to_scope(...)
for
surface::elaboration::order
surface::Term::walk_child_terms
Hopefully this helps with some of the pain mentioned in #488
synth_let_def
and addLetDef
struct.let initial_len = self.local_env.len(); ...; self.local_env.truncate(initial_len)
withself.with_scope(|this| ...)
Builder
to avoid repeatingself.scope.to_scope(...)
for
loops to reduce repetition when defining primssurface::elaboration::order
intosurface::Term::walk_child_terms
Hopefully this helps with some of the pain mentioned in #488