generic code generation improvements
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@if function.description != ''
|
||||
// @{function.description}
|
||||
@endif
|
||||
pub fn @receiver @{function.name}(@{params}) @{result} {
|
||||
pub fn @receiver @{name}(@{params}) @{result} {
|
||||
@{function.body.trim_space().replace('\t', '')}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// @{struct_.description}
|
||||
@{comments}
|
||||
@if struct_.attrs.len > 0
|
||||
[
|
||||
@for attr in struct_.attrs
|
||||
@@ -6,7 +6,7 @@
|
||||
@end
|
||||
]
|
||||
@end
|
||||
@{prefix} struct @{name} {
|
||||
@{prefix}struct @{name} {
|
||||
@for embed in struct_.embeds
|
||||
@{embed.get_type_symbol()}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user