2
1
Fork 0

typegen: remove parameters from function ids

Caused more problems making links than it solved.
This commit is contained in:
outfoxxed 2024-07-14 16:46:57 -07:00
parent db5c3aa3f4
commit 2ad0f62947
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -145,23 +145,7 @@ pub fn resolve_types(
outform::Function { outform::Function {
ret: qmlparamtype(&func.ret, typespec), ret: qmlparamtype(&func.ret, typespec),
name: func.name.clone(), name: func.name.clone(),
id: { id: func.name.clone(),
let params = func
.params
.iter()
.map(|FnParam { type_, .. }| qmlparamtype(type_, typespec).name);
let mut id = func.name.clone();
id.push('(');
for param in params {
id.push_str(&param);
id.push('_')
}
id.truncate(id.len() - 1);
id.push(')');
id
},
details: func.details.clone(), details: func.details.clone(),
params: func params: func
.params .params