2
1
Fork 0

typegen: fix non member type references ending with .

This commit is contained in:
outfoxxed 2024-07-21 16:51:32 -07:00
parent 7a96821411
commit f30aa9e954
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -702,6 +702,7 @@ fn parse_details(comment: Comment) -> String {
None => ("", ""),
Some(name) if name.ends_with("()") => ("func", &name[..name.len() - 2]),
Some(name) if name.ends_with("(s)") => ("signal", &name[..name.len() - 3]),
Some(name) if name.is_empty() => ("", ""),
Some(name) => ("prop", name),
};