2
1
Fork 0

feat: signal support

also ran formatter
This commit is contained in:
outfoxxed 2024-02-18 17:38:55 -08:00
parent 0981ac7345
commit 3fc1aa19fd
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
6 changed files with 392 additions and 149 deletions

View file

@ -37,6 +37,7 @@ pub struct Class {
pub uncreatable: bool,
pub properties: Vec<Property>,
pub functions: Vec<Function>,
pub signals: Vec<Signal>,
}
#[derive(Debug, Serialize, Deserialize)]
@ -61,7 +62,14 @@ pub struct Function {
pub ret: String,
pub name: String,
pub details: Option<String>,
pub params: Vec<FnParam>
pub params: Vec<FnParam>,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct Signal {
pub name: String,
pub details: Option<String>,
pub params: Vec<FnParam>,
}
#[derive(Debug, Serialize, Deserialize)]