File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
test/refactoring/CopyObjCSelector Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ import Foundation
2+
3+ class MyClass : NSObject {
4+ @objc func simpleMethod( ) {
5+ print ( " simple " )
6+ }
7+
8+ @objc func methodWithParameters( param1: Int , param2: String ) {
9+ print ( " params " )
10+ }
11+
12+ @objc ( customSelector: with: )
13+ func methodWithCustomSelector( foo: Int , bar: String ) {
14+ print ( " custom " )
15+ }
16+ }
17+
18+ // RUN: %refactor -source-filename %s -pos=4:16 | %FileCheck %s -check-prefix=CHECK-SIMPLE
19+ // RUN: %refactor -source-filename %s -pos=8:16 | %FileCheck %s -check-prefix=CHECK-PARAMS
20+ // RUN: %refactor -source-filename %s -pos=13:10 | %FileCheck %s -check-prefix=CHECK-CUSTOM
21+
22+ // CHECK-SIMPLE: Copy Objective-C Selector
23+ // CHECK-PARAMS: Copy Objective-C Selector
24+ // CHECK-CUSTOM: Copy Objective-C Selector
You can’t perform that action at this time.
0 commit comments