797284dada
This commit will introduce the first processing queue which will take care of properly ordering the 'to translate' symbols as well as taking care of 'dependency' symbols (aka symbols mentioned in signatures or as supertypes). - There are several changes like properly translating types as ObjCProtocolType instead of ObjCClassType (if origin was an interface) - Type translation of generics defined on interfaces will also emit id type. - Add initial nested classes collection to the queue - Add extension function test, add tickets references ^KT-65237 Verification Pending ^KT-65329 Verification Pending
58 lines
2.3 KiB
Objective-C
Vendored
58 lines
2.3 KiB
Objective-C
Vendored
#import <Foundation/NSArray.h>
|
|
#import <Foundation/NSDictionary.h>
|
|
#import <Foundation/NSError.h>
|
|
#import <Foundation/NSObject.h>
|
|
#import <Foundation/NSSet.h>
|
|
#import <Foundation/NSString.h>
|
|
#import <Foundation/NSValue.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
|
#pragma clang diagnostic ignored "-Wincompatible-property-type"
|
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
|
|
#pragma push_macro("_Nullable_result")
|
|
#if !__has_feature(nullability_nullable_result)
|
|
#undef _Nullable_result
|
|
#define _Nullable_result _Nullable
|
|
#endif
|
|
|
|
__attribute__((objc_subclassing_restricted))
|
|
@interface A : Base
|
|
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
|
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
|
@end
|
|
|
|
__attribute__((objc_subclassing_restricted))
|
|
__attribute__((swift_name("A.A1")))
|
|
@interface AA1 : Base
|
|
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
|
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
|
@end
|
|
|
|
__attribute__((objc_subclassing_restricted))
|
|
__attribute__((swift_name("A.A1B1")))
|
|
@interface AA1B1 : Base
|
|
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
|
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
|
@end
|
|
|
|
__attribute__((objc_subclassing_restricted))
|
|
__attribute__((swift_name("A.A2")))
|
|
@interface AA2 : Base
|
|
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
|
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
|
@end
|
|
|
|
__attribute__((objc_subclassing_restricted))
|
|
__attribute__((swift_name("A.A2B2")))
|
|
@interface AA2B2 : Base
|
|
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
|
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
|
@end
|
|
|
|
#pragma pop_macro("_Nullable_result")
|
|
#pragma clang diagnostic pop
|
|
NS_ASSUME_NONNULL_END
|