Skip to main content

runec/clientscript/
decompile.rs

1//! Stack reconstruction, type inference and structured source generation.
2//! Cache traversal and name discovery belong to the embedding application.
3pub(crate) mod inference;
4mod source;
5mod structure;
6pub use source::{
7    Signature, component_hook_text, decompile, infer_signatures, script_key, script_name,
8    signatures,
9};
10
11pub trait Names {
12    fn name(&self, kind: &str, id: u32) -> String;
13    fn component_name(&self, interface: u32, component: u32) -> String {
14        let _ = interface;
15        format!("com{component}")
16    }
17}