From f30aa9e95482b2726029aeea28ee3cf94d558699 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 21 Jul 2024 16:51:32 -0700 Subject: [PATCH] typegen: fix non member type references ending with . --- typegen/src/parse.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/typegen/src/parse.rs b/typegen/src/parse.rs index 9d9644f..2a8d7f8 100644 --- a/typegen/src/parse.rs +++ b/typegen/src/parse.rs @@ -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), };