Open JumpLink opened 1 month ago
@ewlsh Okay, looks like these fields will be removed by removeComplexFields
because classNode.isSimple()
is false
, so its removed here:
// Only allow fields pointing to simple structs.
if (classNode && classNode instanceof IntrospectedRecord && !classNode.isSimple()) {
return false;
}
I have tried this https://github.com/gjsify/ts-for-gir/pull/184/commits/62f21741bb9cea8526aefb2ebd7940144af2598b this adds the missing fields but results in conflicts.
I don't understand why isSimple
looks again in the target record to see if their fields are all simple:
const isSimple = this.fields.every(f => this.isSimpleType(f.type));`
Don't you remove the non-simple fields anyway?
@ewlsh for example on
Gio.DBusNodeInfo
, here are the GIR XML definitions:So the generated class fields should look like this:
But currently it is looking like this:
The Structure members are also in the documentation.