mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
14 lines
538 B
Plaintext
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>
|
|
|