[refactoring] Upstreaming the implementation for Swift local refactoring (#11568)

[refactoring] Upstreaming the implementation for Swift local refactoring
This commit is contained in:
Argyrios Kyrtzidis
2017-08-22 16:50:16 -07:00
committed by GitHub
parent 9edef031e4
commit 60a91bb736
251 changed files with 14158 additions and 45 deletions

View File

@@ -0,0 +1,9 @@
func testStringLiteral() -> String {
let name = "Jason"
print("Hello, \(name)!")
return "abc"
}
// RUN: rm -rf %t.result && mkdir -p %t.result
// RUN: %refactor -localize-string -source-filename %s -pos=4:12 > %t.result/L4.swift
// RUN: diff -u %S/Outputs/basic/L4.swift.expected %t.result/L4.swift