Skip to content

Instantly share code, notes, and snippets.

@eastari
Created October 6, 2017 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eastari/4a1286ffb49fd952389502ecd80442e6 to your computer and use it in GitHub Desktop.
Save eastari/4a1286ffb49fd952389502ecd80442e6 to your computer and use it in GitHub Desktop.
Part Xcamelize 2
class SourceEditorCommand: NSObject, XCSourceEditorCommand {
func perform(with invocation: XCSourceEditorCommandInvocation, completionHandler: @escaping (Error?) -> Swift.Void ) {
...
}
func handle(range: XCSourceTextRange, inBuffer buffer: XCSourceTextBuffer) -> () {
...
}
func getTextFromBuffer(inRange textRange: XCSourceTextRange, inBuffer buffer: XCSourceTextBuffer) -> String {
...
}
func replace(position: XCSourceTextPosition, length: Int, with newElements: String, inBuffer buffer: XCSourceTextBuffer) {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment