MCPcopy Create free account
hub / github.com/argumentcomputer/ix / open_binder_anon_with_fv

Method open_binder_anon_with_fv

crates/kernel/src/tc.rs:584–592  ·  view source on GitHub ↗

Anonymous-name variant of [`Self::open_binder_with_fv`].

(
    &mut self,
    ty: KExpr<M>,
    body: &KExpr<M>,
  )

Source from the content-addressed store, hash-verified

582 ty: KExpr<M>,
583 body: &KExpr<M>,
584 ) -> (KExpr<M>, KExpr<M>, FVarId) {
585 let fv_id = self.fresh_fvar_id();
586 let fv = self.intern(KExpr::fvar(fv_id, name.clone()));
587 self.lctx.push(fv_id, LocalDecl::CDecl { name, bi, ty });
588 let body_open =
589 instantiate_rev(&mut self.env.intern, body, std::slice::from_ref(&fv));
590 (body_open, fv, fv_id)
591 }
592
593 /// Anonymous-name variant of [`Self::open_binder_with_fv`].
594 pub fn open_binder_anon_with_fv(
595 &mut self,

Callers 4

check_param_agreementMethod · 0.80
is_large_eliminatorMethod · 0.80

Calls 1

open_binder_with_fvMethod · 0.80

Tested by

no test coverage detected