mirror of
https://github.com/mtshiba/pylyzer.git
synced 2025-07-24 16:53:47 +00:00
Update gen_decl.rs
This commit is contained in:
parent
59284b6ad5
commit
f393ac4531
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ fn gen_chunk_decl(namespace: &str, chunk: Expr, code: &mut String) {
|
|||
match chunk {
|
||||
Expr::Def(def) => {
|
||||
let name = def.sig.ident().inspect().replace('\0', "");
|
||||
if name.starts_with('%') {
|
||||
return;
|
||||
}
|
||||
let typ = def.sig.ident().ref_t().to_string();
|
||||
let typ = escape_type(typ);
|
||||
let decl = format!("{namespace}.{name}: {typ}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue