1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-11 16:16:48 +01:00
mastodon-app-ufficiale-ipho.../MastodonSDK/Sources/CoreDataStack/Template/Stencil/AutoUpdatableObject.stencil
2022-01-28 12:09:28 +08:00

17 lines
452 B
Plaintext

{% for type in types.implementing.AutoUpdatableObject %}
// sourcery:inline:{{type.name}}.AutoUpdatableObject
// Generated using Sourcery
// DO NOT EDIT
{% for variable in type.variables|instance where
variable|annotated:"autoUpdatableObject"
%}
public func update({{variable.name}}: {{variable.typeName}}) {
if self.{{variable.name}} != {{variable.name}} {
self.{{variable.name}} = {{variable.name}}
}
}
{% endfor %}
// sourcery:end
{% endfor %}