{"id":18707,"date":"2017-08-23T15:34:22","date_gmt":"2017-08-23T19:34:22","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=18707"},"modified":"2019-01-22T15:45:15","modified_gmt":"2019-01-22T20:45:15","slug":"swift-local-refactoring","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/08\/23\/swift-local-refactoring\/","title":{"rendered":"Swift Local Refactoring"},"content":{"rendered":"<p><a href=\"https:\/\/swift.org\/blog\/swift-local-refactoring\/\">Xi Ge<\/a> (via <a href=\"https:\/\/twitter.com\/akyrtzi\/status\/900160176379969536\">Argyrios Kyrtzidis<\/a>):<\/p>\n<blockquote cite=\"https:\/\/swift.org\/blog\/swift-local-refactoring\/\"><p>Xcode 9 includes a brand new refactoring engine. It can transform code locally\nwithin a single Swift source file, or globally, such as renaming a method or property\nthat occurs in multiple files and even different languages. The logic behind local refactorings is\nimplemented entirely in the compiler and SourceKit, and is now open source in\nthe <a href=\"https:\/\/github.com\/apple\/swift\">swift repository<\/a>. Therefore, any Swift enthusiast can\ncontribute refactoring actions to the language. This post discusses how\na simple refactoring can be implemented and surfaced in Xcode.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Xi Ge (via Argyrios Kyrtzidis): Xcode 9 includes a brand new refactoring engine. It can transform code locally within a single Swift source file, or globally, such as renaming a method or property that occurs in multiple files and even different languages. The logic behind local refactorings is implemented entirely in the compiler and SourceKit, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2019-01-22T20:45:16Z","apple_news_api_id":"6a965ead-c4af-4e67-b026-00114b696331","apple_news_api_modified_at":"2019-01-22T20:45:18Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AapZercSvTmewJgARS2ljMQ","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[326,255,74,71,816,901,226],"class_list":["post-18707","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-c-plus-plus","tag-compiler","tag-opensource","tag-programming","tag-refactoring","tag-swift-programming-language","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=18707"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18707\/revisions"}],"predecessor-version":[{"id":18708,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18707\/revisions\/18708"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=18707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=18707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=18707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}