typegen: remove parameters from function ids
Caused more problems making links than it solved.
This commit is contained in:
parent
db5c3aa3f4
commit
2ad0f62947
|
@ -145,23 +145,7 @@ pub fn resolve_types(
|
|||
outform::Function {
|
||||
ret: qmlparamtype(&func.ret, typespec),
|
||||
name: func.name.clone(),
|
||||
id: {
|
||||
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(¶m);
|
||||
id.push('_')
|
||||
}
|
||||
id.truncate(id.len() - 1);
|
||||
id.push(')');
|
||||
|
||||
id
|
||||
},
|
||||
id: func.name.clone(),
|
||||
details: func.details.clone(),
|
||||
params: func
|
||||
.params
|
||||
|
|
Loading…
Reference in a new issue