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

Function serialize_substring

crates/compile/src/compile.rs:1550–1558  ·  view source on GitHub ↗
(
  ss: &LeanSubstring,
  stt: &CompileState,
  bytes: &mut Vec<u8>,
)

Source from the content-addressed store, hash-verified

1548
1549 ExprData::Lam(name, ty, body, info, _) => {
1550 let name_addr = compile_name(name, stt);
1551 stack.push(Frame::BuildLam(name_addr, info.clone()));
1552 stack.push(Frame::Compile(body.clone()));
1553 stack.push(Frame::Compile(ty.clone()));
1554 },
1555
1556 ExprData::ForallE(name, ty, body, info, _) => {
1557 let name_addr = compile_name(name, stt);
1558 stack.push(Frame::BuildAll(name_addr, info.clone()));
1559 stack.push(Frame::Compile(body.clone()));
1560 stack.push(Frame::Compile(ty.clone()));
1561 },

Callers 2

serialize_syntax_innerFunction · 0.85
serialize_source_infoFunction · 0.85

Calls 3

store_stringFunction · 0.85
as_bytesMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected