You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use variable.name I'm now getting whole line with comments, which breaks what should be after this insertion
example template:
// sourcery:inline:DemoTemplate
<% for variable in type["SomeType"]?.variables {
print("\(variable.name) = 5")
} -%>
// sourcery:end
example source:
@propertyWrapper
final class SomeWrapper {
init() {
wrappedValue = 0
}
var wrappedValue: Int
}
class SomeType {
var variable1: Int = 2
@SomeWrapper
var variable2 // some comment
}
example result with 2.0.1 (which obviously produces compilation errors):
When trying to use variable.name I'm now getting whole line with comments, which breaks what should be after this insertion
example template:
example source:
example result with 2.0.1 (which obviously produces compilation errors):
example result with 1.9.2:
The text was updated successfully, but these errors were encountered: