typegen: remove parameters from function ids
Caused more problems making links than it solved.
This commit is contained in:
		
							parent
							
								
									db5c3aa3f4
								
							
						
					
					
						commit
						2ad0f62947
					
				
					 1 changed files with 1 additions and 17 deletions
				
			
		| 
						 | 
					@ -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(¶m);
 | 
					 | 
				
			||||||
						id.push('_')
 | 
					 | 
				
			||||||
					}
 | 
					 | 
				
			||||||
					id.truncate(id.len() - 1);
 | 
					 | 
				
			||||||
					id.push(')');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
					id
 | 
					 | 
				
			||||||
				},
 | 
					 | 
				
			||||||
				details: func.details.clone(),
 | 
									details: func.details.clone(),
 | 
				
			||||||
				params: func
 | 
									params: func
 | 
				
			||||||
					.params
 | 
										.params
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue