|
9 | 9 | // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -emit-module -o %t %S/../Inputs/clang-importer-sdk/swift-modules-without-ns/CoreGraphics.swift
|
10 | 10 | // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -emit-module -o %t %S/../Inputs/clang-importer-sdk/swift-modules-without-ns/Foundation.swift
|
11 | 11 |
|
12 |
| -// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -emit-module -o %t %S/../Inputs/clang-importer-sdk/swift-modules-without-ns/AppKit.swift |
13 |
| - |
14 | 12 | // RUN: %target-swift-ide-test(mock-sdk: -sdk %S/../Inputs/clang-importer-sdk -I %t) -print-module -source-filename %s -module-to-print=ObjectiveC -function-definitions=false -prefer-type-repr=true > %t.ObjectiveC.txt
|
15 | 13 | // RUN: %FileCheck %s -check-prefix=CHECK-OBJECTIVEC -strict-whitespace < %t.ObjectiveC.txt
|
16 | 14 |
|
17 | 15 | // RUN: %target-swift-ide-test(mock-sdk: -sdk %S/../Inputs/clang-importer-sdk -I %t) -print-module -source-filename %s -module-to-print=Foundation -function-definitions=false -prefer-type-repr=true -skip-parameter-names > %t.Foundation.txt
|
18 | 16 | // RUN: %FileCheck %s -check-prefix=CHECK-FOUNDATION -strict-whitespace < %t.Foundation.txt
|
19 | 17 |
|
20 |
| -// RUN: %target-swift-ide-test(mock-sdk: -sdk %S/../Inputs/clang-importer-sdk -I %t) -print-module -source-filename %s -module-to-print=AppKit -function-definitions=false -prefer-type-repr=true -skip-parameter-names > %t.AppKit.txt |
21 |
| -// RUN: %FileCheck %s -check-prefix=CHECK-APPKIT -strict-whitespace < %t.AppKit.txt |
22 |
| - |
23 | 18 | // RUN: %target-swift-ide-test(mock-sdk: -sdk %S/../Inputs/clang-importer-sdk -I %t -I %S/../ClangModules/Inputs/custom-modules) -print-module -source-filename %s -module-to-print=CoreCooling -function-definitions=false -prefer-type-repr=true -skip-parameter-names > %t.CoreCooling.txt
|
24 | 19 | // RUN: %FileCheck %s -check-prefix=CHECK-CORECOOLING -strict-whitespace < %t.CoreCooling.txt
|
25 | 20 |
|
|
196 | 191 | // CHECK-FOUNDATION: var NSTimeIntervalSince1970: Double { get }
|
197 | 192 | // CHECK-FOUNDATION: var NS_DO_SOMETHING: Int
|
198 | 193 |
|
199 |
| -// Note: class method name stripping context type. |
200 |
| -// CHECK-APPKIT: class func red() -> NSColor |
201 |
| - |
202 |
| -// Note: instance method name stripping context type. |
203 |
| -// CHECK-APPKIT: func same() -> Self |
204 |
| - |
205 |
| -// Note: Unsafe(Mutable)Pointers don't get defaulted to 'nil' |
206 |
| -// CHECK-APPKIT: func getRGBAComponents(_: UnsafeMutablePointer<Int8>?) |
207 |
| - |
208 |
| -// Note: Skipping over "3D" |
209 |
| -// CHECK-APPKIT: func drawInAir(at: Point3D) |
210 |
| - |
211 |
| -// Note: with<something> -> <something> |
212 |
| -// CHECK-APPKIT: func draw(at: Point3D, withAttributes: [String : Any]? = nil) |
213 |
| - |
214 |
| -// Note: Don't strip names that aren't preceded by a verb or preposition. |
215 |
| -// CHECK-APPKIT: func setTextColor(_: NSColor?) |
216 |
| - |
217 |
| -// Note: Splitting with default arguments. |
218 |
| -// CHECK-APPKIT: func draw(in: NSView?) |
219 |
| - |
220 |
| -// Note: NSDictionary default arguments for "options" |
221 |
| -// CHECK-APPKIT: func drawAnywhere(in: NSView?, options: [AnyHashable : Any] = [:]) |
222 |
| -// CHECK-APPKIT: func drawAnywhere(options: [AnyHashable : Any] = [:]) |
223 |
| -// CHECK-APPKIT: func drawAnywhere(optionalOptions: [AnyHashable : Any]? = nil) |
224 |
| - |
225 | 194 | // Note: no lowercasing of initialisms when there might be a prefix.
|
226 | 195 | // CHECK-CORECOOLING: func CFBottom() ->
|
227 | 196 |
|
228 | 197 | // Note: Skipping over "Ref"
|
229 | 198 | // CHECK-CORECOOLING: func replace(_: CCPowerSupply!)
|
230 | 199 |
|
231 |
| -// Make sure we're removing redundant context type info at both the |
232 |
| -// beginning and the end. |
233 |
| -// CHECK-APPKIT: func reversing() -> NSBezierPath |
234 |
| - |
235 |
| -// Make sure we're dealing with 'instancetype' properly. |
236 |
| -// CHECK-APPKIT: func inventing() -> Self |
237 |
| - |
238 |
| -// Make sure we're removing redundant context type info at both the |
239 |
| -// beginning and the end of a property. |
240 |
| -// CHECK-APPKIT: var flattened: NSBezierPath { get } |
241 |
| - |
242 |
| -// CHECK-APPKIT: func dismiss(animated: Bool) |
243 |
| - |
244 |
| -// CHECK-APPKIT: func shouldCollapseAutoExpandedItems(forDeposited: Bool) -> Bool |
245 |
| - |
246 |
| -// Introducing argument labels and pruning the base name. |
247 |
| -// CHECK-APPKIT: func rectForCancelButton(whenCentered: Bool) |
248 |
| - |
249 |
| -// CHECK-APPKIT: func openUntitledDocumentAndDisplay(_: Bool) |
250 |
| - |
251 |
| -// Don't strip due to weak type information. |
252 |
| -// CHECK-APPKIT: func setContentHuggingPriority(_: NSLayoutPriority) |
253 |
| - |
254 |
| -// Look through typedefs of pointers. |
255 |
| -// CHECK-APPKIT: func layout(at: NSPointPointer!) |
256 |
| - |
257 |
| -// The presence of a property prevents us from stripping redundant |
258 |
| -// type information from the base name. |
259 |
| -// CHECK-APPKIT: func addGestureRecognizer(_: NSGestureRecognizer) |
260 |
| -// CHECK-APPKIT: func removeGestureRecognizer(_: NSGestureRecognizer) |
261 |
| -// CHECK-APPKIT: func favoriteView(for: NSGestureRecognizer) -> NSView? |
262 |
| -// CHECK-APPKIT: func addLayoutConstraints(_: Set<NSLayoutConstraint>) |
263 |
| -// CHECK-APPKIT: func add(_: NSRect) |
264 |
| -// CHECK-APPKIT: class func conjureRect(_: NSRect) |
265 |
| - |
266 | 200 | // CHECK-OMIT-NEEDLESS-WORDS: struct OMWWobbleOptions
|
267 | 201 | // CHECK-OMIT-NEEDLESS-WORDS: static var sideToSide: OMWWobbleOptions
|
268 | 202 | // CHECK-OMIT-NEEDLESS-WORDS: static var backAndForth: OMWWobbleOptions
|
|
0 commit comments