imrprove code generation to support example

This commit is contained in:
timurgordon
2025-02-12 03:37:22 +03:00
parent 13471d4ca5
commit 6644d3b11c
28 changed files with 491 additions and 372 deletions

View File

@@ -0,0 +1,15 @@
// @{iface.description}
@if iface.attrs.len > 0
[
@for attr in iface.attrs
@{attr.name}
@end
]
@end
@{prefix} interface @{name} {
@{fields.join_lines()}
@if mut_fields.len > 0
mut:
@{mut_fields.join_lines()}
@end
}