1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-02-02 10:27:08 +01:00

17 lines
452 B
Plaintext
Raw Normal View History

{% 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 %}