mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-11 16:16:48 +01:00
17 lines
452 B
Plaintext
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 %}
|