mirror of https://github.com/mtshiba/pylyzer
Update gen_decl.rs
This commit is contained in:
parent
59284b6ad5
commit
f393ac4531
|
|
@ -57,6 +57,9 @@ fn gen_chunk_decl(namespace: &str, chunk: Expr, code: &mut String) {
|
||||||
match chunk {
|
match chunk {
|
||||||
Expr::Def(def) => {
|
Expr::Def(def) => {
|
||||||
let name = def.sig.ident().inspect().replace('\0', "");
|
let name = def.sig.ident().inspect().replace('\0', "");
|
||||||
|
if name.starts_with('%') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let typ = def.sig.ident().ref_t().to_string();
|
let typ = def.sig.ident().ref_t().to_string();
|
||||||
let typ = escape_type(typ);
|
let typ = escape_type(typ);
|
||||||
let decl = format!("{namespace}.{name}: {typ}");
|
let decl = format!("{namespace}.{name}: {typ}");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue