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

Function rs_roundtrip_ix_syntax_preresolved

crates/ffi/src/ix/data.rs:413–419  ·  view source on GitHub ↗
(
  sp_ptr: LeanIxSyntaxPreresolved<LeanBorrowed<'_>>,
)

Source from the content-addressed store, hash-verified

411#[cfg(feature = "test-ffi")]
412#[unsafe(no_mangle)]
413pub extern "C" fn rs_roundtrip_ix_syntax_preresolved(
414 sp_ptr: LeanIxSyntaxPreresolved<LeanBorrowed<'_>>,
415) -> LeanIxSyntaxPreresolved<LeanOwned> {
416 let sp = sp_ptr.decode();
417 let mut cache = LeanBuildCache::new();
418 LeanIxSyntaxPreresolved::build(&mut cache, &sp)
419}
420
421/// Round-trip an Ix.Syntax: decode from Lean, re-encode.
422#[cfg(feature = "test-ffi")]

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected