ObjectiveC.apinotes 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. ---
  2. Name: ObjectiveC
  3. Classes:
  4. - Name: NSArray
  5. SwiftBridge: 'Swift.Array'
  6. - Name: NSDictionary
  7. SwiftBridge: 'Swift.Dictionary'
  8. - Name: NSSet
  9. SwiftBridge: 'Swift.Set'
  10. - Name: NSString
  11. SwiftBridge: 'Swift.String'
  12. - Name: List
  13. Methods:
  14. - Selector: init
  15. MethodKind: Instance
  16. NullabilityOfRet: N
  17. - Selector: 'isEqual:'
  18. MethodKind: Instance
  19. Nullability:
  20. - O
  21. NullabilityOfRet: S
  22. - Name: NSObject
  23. SwiftName: NSObject
  24. Methods:
  25. - Selector: alloc
  26. MethodKind: Class
  27. NullabilityOfRet: N
  28. - Selector: 'allocWithZone:'
  29. MethodKind: Class
  30. Nullability:
  31. - S
  32. NullabilityOfRet: N
  33. - Selector: class
  34. MethodKind: Class
  35. Availability: nonswift
  36. AvailabilityMsg: use 'self' instead
  37. - Selector: 'conformsToProtocol:'
  38. MethodKind: Class
  39. Nullability:
  40. - N
  41. NullabilityOfRet: S
  42. - Selector: copy
  43. MethodKind: Instance
  44. NullabilityOfRet: N
  45. - Selector: dealloc
  46. MethodKind: Instance
  47. Availability: nonswift
  48. AvailabilityMsg: use 'deinit' to define a de-initializer
  49. - Selector: debugDescription
  50. MethodKind: Class
  51. NullabilityOfRet: N
  52. - Selector: description
  53. MethodKind: Class
  54. NullabilityOfRet: N
  55. - Selector: 'forwardingTargetForSelector:'
  56. MethodKind: Instance
  57. Nullability:
  58. - S
  59. NullabilityOfRet: O
  60. - Selector: 'forwardInvocation:'
  61. MethodKind: Instance
  62. Availability: nonswift
  63. - Selector: init
  64. MethodKind: Instance
  65. NullabilityOfRet: N
  66. DesignatedInit: true
  67. - Selector: 'instanceMethodSignatureForSelector:'
  68. MethodKind: Class
  69. Availability: nonswift
  70. - Selector: 'isSubclassOfClass:'
  71. MethodKind: Class
  72. Nullability:
  73. - N
  74. NullabilityOfRet: S
  75. - Selector: 'methodSignatureForSelector:'
  76. MethodKind: Instance
  77. Availability: nonswift
  78. - Selector: mutableCopy
  79. MethodKind: Instance
  80. NullabilityOfRet: N
  81. - Selector: new
  82. MethodKind: Class
  83. NullabilityOfRet: N
  84. - Selector: superclass
  85. MethodKind: Class
  86. NullabilityOfRet: O
  87. - Name: Object
  88. Methods:
  89. - Selector: init
  90. MethodKind: Instance
  91. NullabilityOfRet: N
  92. - Selector: 'isEqual:'
  93. MethodKind: Instance
  94. Nullability:
  95. - O
  96. NullabilityOfRet: S
  97. Protocols:
  98. - Name: NSObject
  99. SwiftName: NSObjectProtocol
  100. Methods:
  101. - Selector: class
  102. MethodKind: Instance
  103. Availability: nonswift
  104. AvailabilityMsg: use 'type(of:)' instead
  105. - Selector: 'conformsToProtocol:'
  106. MethodKind: Instance
  107. Nullability:
  108. - N
  109. NullabilityOfRet: S
  110. - Selector: 'isEqual:'
  111. MethodKind: Instance
  112. Nullability:
  113. - O
  114. NullabilityOfRet: S
  115. - Selector: 'isKindOfClass:'
  116. MethodKind: Instance
  117. Nullability:
  118. - N
  119. NullabilityOfRet: S
  120. - Selector: 'isMemberOfClass:'
  121. MethodKind: Instance
  122. Nullability:
  123. - N
  124. NullabilityOfRet: S
  125. - Selector: self
  126. MethodKind: Instance
  127. NullabilityOfRet: N
  128. Properties:
  129. - Name: debugDescription
  130. Nullability: N
  131. - Name: description
  132. Nullability: N
  133. - Name: superclass
  134. Nullability: O
  135. Tags:
  136. - Name: _NSZone
  137. SwiftName: _NSZone
  138. # Runtime functions did not yet have nullability in Swift 3.
  139. SwiftVersions:
  140. - Version: 3
  141. Functions:
  142. # objc.h swift3
  143. - Name: object_getClassName
  144. NullabilityOfRet: U
  145. Nullability: [U]
  146. - Name: sel_isMapped
  147. Nullability: [U]
  148. - Name: sel_getUid
  149. NullabilityOfRet: U
  150. Nullability: [U]
  151. # objc-exception.h swift3
  152. - Name: objc_exception_throw
  153. Nullability: [U]
  154. - Name: objc_begin_catch
  155. NullabilityOfRet: U
  156. Nullability: [U]
  157. - Name: objc_setExceptionPreprocessor
  158. NullabilityOfRet: U
  159. Nullability: [U]
  160. - Name: objc_setExceptionMatcher
  161. NullabilityOfRet: U
  162. Nullability: [U]
  163. - Name: objc_setUncaughtExceptionHandler
  164. NullabilityOfRet: U
  165. Nullability: [U]
  166. - Name: objc_addExceptionHandler
  167. Nullability: [U, U]
  168. # objc-sync.h swift3
  169. - Name: objc_sync_enter
  170. Nullability: [U]
  171. - Name: objc_sync_exit
  172. Nullability: [U]
  173. # runtime.h swift3
  174. - Name: object_getClass
  175. NullabilityOfRet: U
  176. Nullability: [U]
  177. - Name: object_setClass
  178. NullabilityOfRet: U
  179. Nullability: [U, U]
  180. - Name: object_isClass
  181. Nullability: [U]
  182. - Name: object_getIvar
  183. NullabilityOfRet: U
  184. Nullability: [U, U]
  185. - Name: object_setIvar
  186. Nullability: [U, U, U]
  187. - Name: object_setIvarWithStrongDefault
  188. Nullability: [U, U, U]
  189. - Name: objc_getClass
  190. NullabilityOfRet: U
  191. Nullability: [U]
  192. - Name: objc_getMetaClass
  193. NullabilityOfRet: U
  194. Nullability: [U]
  195. - Name: objc_lookUpClass
  196. NullabilityOfRet: U
  197. Nullability: [U]
  198. - Name: objc_getRequiredClass
  199. NullabilityOfRet: U
  200. Nullability: [U]
  201. - Name: objc_getClassList
  202. Parameters:
  203. - Position: 0
  204. Type: "Class _Nullable * _Null_unspecified"
  205. - Name: objc_copyClassList
  206. ResultType: "Class _Nullable * _Null_unspecified"
  207. Nullability: [U]
  208. - Name: class_getName
  209. NullabilityOfRet: U
  210. Nullability: [U]
  211. - Name: class_isMetaClass
  212. Nullability: [U]
  213. - Name: class_getSuperclass
  214. NullabilityOfRet: U
  215. Nullability: [U]
  216. - Name: class_getVersion
  217. Nullability: [U]
  218. - Name: class_setVersion
  219. Nullability: [U]
  220. - Name: class_getInstanceSize
  221. Nullability: [U]
  222. - Name: class_getInstanceVariable
  223. NullabilityOfRet: U
  224. Nullability: [U, U]
  225. - Name: class_getClassVariable
  226. NullabilityOfRet: U
  227. Nullability: [U, U]
  228. - Name: class_copyIvarList
  229. ResultType: "Ivar _Nullable * _Null_unspecified"
  230. Nullability: [U, U]
  231. - Name: class_getInstanceMethod
  232. NullabilityOfRet: U
  233. Nullability: [U, U]
  234. - Name: class_getClassMethod
  235. NullabilityOfRet: U
  236. Nullability: [U, U]
  237. - Name: class_getMethodImplementation
  238. NullabilityOfRet: U
  239. Nullability: [U, U]
  240. - Name: class_getMethodImplementation_stret
  241. NullabilityOfRet: U
  242. Nullability: [U, U]
  243. - Name: class_respondsToSelector
  244. Nullability: [U, U]
  245. - Name: class_copyMethodList
  246. Nullability: [U, U]
  247. ResultType: "Method _Nullable * _Null_unspecified"
  248. - Name: class_conformsToProtocol
  249. Nullability: [U, U]
  250. - Name: class_copyProtocolList
  251. # fixme ResultType:
  252. NullabilityOfRet: U
  253. Nullability: [U, U]
  254. - Name: class_getProperty
  255. NullabilityOfRet: U
  256. Nullability: [U, U]
  257. - Name: class_copyPropertyList
  258. ResultType: "objc_property_t _Nullable * _Null_unspecified"
  259. Nullability: [U, U]
  260. - Name: class_getIvarLayout
  261. NullabilityOfRet: U
  262. Nullability: [U]
  263. - Name: class_getWeakIvarLayout
  264. NullabilityOfRet: U
  265. Nullability: [U]
  266. - Name: class_addMethod
  267. Nullability: [U, U, U, U]
  268. - Name: class_replaceMethod
  269. NullabilityOfRet: U
  270. Nullability: [U, U, U, U]
  271. - Name: class_addIvar
  272. Nullability: [U, U, U, U, U]
  273. - Name: class_addProtocol
  274. Nullability: [U, U]
  275. - Name: class_addProperty
  276. Nullability: [U, U, U, U]
  277. - Name: class_replaceProperty
  278. Nullability: [U, U, U, U]
  279. - Name: class_setIvarLayout
  280. Nullability: [U, U]
  281. - Name: class_setWeakIvarLayout
  282. Nullability: [U, U]
  283. - Name: class_createInstance
  284. NullabilityOfRet: U
  285. Nullability: [U, U]
  286. - Name: objc_allocateClassPair
  287. NullabilityOfRet: U
  288. Nullability: [U, U, U]
  289. - Name: objc_registerClassPair
  290. Nullability: [U]
  291. - Name: objc_duplicateClass
  292. NullabilityOfRet: U
  293. Nullability: [U, U, U]
  294. - Name: objc_disposeClassPair
  295. Nullability: [U]
  296. - Name: method_getName
  297. NullabilityOfRet: U
  298. Nullability: [U]
  299. - Name: method_getImplementation
  300. NullabilityOfRet: U
  301. Nullability: [U]
  302. - Name: method_getTypeEncoding
  303. NullabilityOfRet: U
  304. Nullability: [U]
  305. - Name: method_getNumberOfArguments
  306. Nullability: [U]
  307. - Name: method_copyReturnType
  308. NullabilityOfRet: U
  309. Nullability: [U]
  310. - Name: method_copyArgumentType
  311. NullabilityOfRet: U
  312. Nullability: [U, U]
  313. - Name: method_getReturnType
  314. Nullability: [U, U, U]
  315. - Name: method_getArgumentType
  316. Nullability: [U, U, U, U]
  317. - Name: method_getDescription
  318. NullabilityOfRet: U
  319. Nullability: [U]
  320. - Name: method_setImplementation
  321. NullabilityOfRet: U
  322. Nullability: [U, U]
  323. - Name: method_exchangeImplementations
  324. Nullability: [U, U]
  325. - Name: ivar_getName
  326. NullabilityOfRet: U
  327. Nullability: [U]
  328. - Name: ivar_getTypeEncoding
  329. NullabilityOfRet: U
  330. Nullability: [U]
  331. - Name: ivar_getOffset
  332. Nullability: [U]
  333. - Name: property_getName
  334. NullabilityOfRet: U
  335. Nullability: [U]
  336. - Name: property_getAttributes
  337. NullabilityOfRet: U
  338. Nullability: [U]
  339. - Name: property_copyAttributeList
  340. NullabilityOfRet: U
  341. Nullability: [U, U]
  342. - Name: property_copyAttributeValue
  343. NullabilityOfRet: U
  344. Nullability: [U, U]
  345. - Name: objc_getProtocol
  346. NullabilityOfRet: U
  347. Nullability: [U]
  348. - Name: objc_copyProtocolList
  349. # fixme ResultType:
  350. NullabilityOfRet: U
  351. Nullability: [U]
  352. - Name: protocol_conformsToProtocol
  353. Nullability: [U, U]
  354. - Name: protocol_isEqual
  355. Nullability: [U, U]
  356. - Name: protocol_getName
  357. NullabilityOfRet: U
  358. Nullability: [U]
  359. - Name: protocol_getMethodDescription
  360. Nullability: [U, U, U, U]
  361. - Name: protocol_copyMethodDescriptionList
  362. NullabilityOfRet: U
  363. Nullability: [U, U, U, U]
  364. - Name: protocol_getProperty
  365. NullabilityOfRet: U
  366. Nullability: [U, U, U, U]
  367. - Name: protocol_copyPropertyList
  368. ResultType: "objc_property_t _Nullable * _Null_unspecified"
  369. Nullability: [U, U]
  370. - Name: protocol_copyPropertyList2
  371. ResultType: "objc_property_t _Nullable * _Null_unspecified"
  372. Nullability: [U, U, U, U]
  373. - Name: protocol_copyProtocolList
  374. # fixme ResultType:
  375. NullabilityOfRet: U
  376. Nullability: [U, U]
  377. - Name: objc_allocateProtocol
  378. NullabilityOfRet: U
  379. Nullability: [U]
  380. - Name: objc_registerProtocol
  381. Nullability: [U]
  382. - Name: protocol_addMethodDescription
  383. Nullability: [U, U, U, U, U]
  384. - Name: protocol_addProtocol
  385. Nullability: [U, U]
  386. - Name: protocol_addProperty
  387. Nullability: [U, U, U, U, U, U]
  388. - Name: objc_copyImageNames
  389. ResultType: "const char * _Nullable * _Null_unspecified"
  390. Nullability: [U]
  391. - Name: class_getImageName
  392. NullabilityOfRet: U
  393. Nullability: [U]
  394. - Name: objc_copyClassNamesForImage
  395. ResultType: "const char * _Nullable * _Null_unspecified"
  396. Nullability: [U, U]
  397. - Name: sel_getName
  398. NullabilityOfRet: U
  399. Nullability: [U]
  400. - Name: sel_registerName
  401. NullabilityOfRet: U
  402. Nullability: [U]
  403. - Name: sel_isEqual
  404. Nullability: [U, U]
  405. - Name: objc_enumerationMutation
  406. Nullability: [U]
  407. - Name: objc_setEnumerationMutationHandler
  408. Nullability: [U]
  409. - Name: objc_setForwardHandler
  410. Nullability: [U, U]
  411. - Name: imp_implementationWithBlock
  412. NullabilityOfRet: U
  413. Nullability: [U]
  414. - Name: imp_getBlock
  415. NullabilityOfRet: U
  416. Nullability: [U]
  417. - Name: imp_removeBlock
  418. Nullability: [U]
  419. - Name: objc_loadWeak
  420. NullabilityOfRet: U
  421. Nullability: [U]
  422. - Name: objc_storeWeak
  423. NullabilityOfRet: U
  424. Nullability: [U, U]
  425. - Name: objc_setAssociatedObject
  426. Nullability: [U, U, U, U]
  427. - Name: objc_getAssociatedObject
  428. NullabilityOfRet: U
  429. Nullability: [U, U]
  430. - Name: objc_removeAssociatedObjects
  431. Nullability: [U]