Files
swift-mirror/test/refactoring/ExtractFunction/Outputs/extract_attributes/L5-6.swift.expected
Argyrios Kyrtzidis 60a91bb736 [refactoring] Upstreaming the implementation for Swift local refactoring (#11568)
[refactoring] Upstreaming the implementation for Swift local refactoring
2017-08-22 16:50:16 -07:00

15 lines
209 B
Plaintext

public class C {
fileprivate func new_name(_ aaa: inout Int) {
aaa = aaa + 3
if aaa == 3 { aaa = 4 }
}
/// Insert before this.
public func foo() -> Int{
var aaa = 1 + 2
new_name(&aaa)
return aaa
}
}