Files
swift-mirror/test/refactoring/SyntacticRename/Outputs/property-wrapper-split/someValue.swift.expected
Alex Hoppen 4103ad8cea [SourceKit] Change tests to use find-rename-ranges instead of syntactic-rename
I will remove the `syntactic-rename` refactoring action in a follow-up commit. Clients should always ask for rename ranges and perform the rename by themselves instead of asking for a renamed file.
2023-11-15 11:20:27 -08:00

22 lines
548 B
Plaintext

@propertyWrapper
struct Wrapper<T> {
var wrappedValue: T
/*split:def*/init(initialValue: T, fieldName: String, special: Bool = false) {
wrappedValue = initialValue
}
}
let /*someValue:def*/<base>someValue</base> = "some"
struct User {
@/*split:call*/Wrapper(fieldName: "bar")
var bar = 10
@/*split:call*/Wrapper(fieldName: {
return /*someValue*/<base>someValue</base>
}(), special: true)
var complex: Int = {
return /*someValue*/<base>someValue</base>.starts(with: "b") ? 43 : 0
}()
}