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

14 lines
538 B
Plaintext

struct Adder {
var base: Int
func /*test:def*/<keywordBase>callAsFunction</keywordBase>(<arglabel index=0>_</arglabel><param index=0> x</param>: Int) -> Int {
return base + x
}
}
let add3 = Adder(base: 3)
_ = add3/*test:call*/(<callcombo index=0></callcombo>10)
_ = add3 . /*test:call*/<keywordBase>callAsFunction</keywordBase>(<callcombo index=0></callcombo>10)
_ = add3 . /*test:ref*/<keywordBase>callAsFunction</keywordBase>(<sel index=0>_</sel>:)
_ = add3 . /*test:ref*/<keywordBase>callAsFunction</keywordBase>