Files
swift-mirror/test/refactoring/SyntacticRename/Outputs/call-as-function-base.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

16 lines
281 B
Plaintext

struct Adder {
var base: Int
func callAsFunction(x: Int, y: Int) -> Int {
return base + x + y
}
}
let /*test:def*/<base>add3</base> = Adder(base: 3)
/*test:ref*/<base>add3</base>(x: 10, y: 11)
let blah = /*test:ref*/<base>add3</base>.callAsFunction(x:y:)