You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.3 KiB
63 lines
1.3 KiB
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#import <Foundation/NSObject.h>
|
|
|
|
class FBMemImage;
|
|
|
|
class FBMemQuery;
|
|
|
|
@interface FBMemModelUsed1 : NSObject
|
|
|
|
// NEW_COMPONENT_USING_MEM_MODEL bug
|
|
+ (instancetype)newImage:(FBMemImage*)image;
|
|
// no NEW_COMPONENT_USING_MEM_MODEL bug
|
|
+ (instancetype)newInt:(int)size;
|
|
// no NEW_COMPONENT_USING_MEM_MODEL bug
|
|
+ (int)newReturnInt:(FBMemImage*)size;
|
|
// NEW_COMPONENT_USING_MEM_MODEL bug
|
|
+ (instancetype)newMultiParams:(int)size
|
|
image:(FBMemImage*)image
|
|
query:(FBMemQuery*)query;
|
|
|
|
@end
|
|
|
|
@implementation FBMemModelUsed1
|
|
|
|
// NEW_COMPONENT_USING_MEM_MODEL bug
|
|
+ (instancetype)newImage:(FBMemImage*)image {
|
|
return nil;
|
|
}
|
|
|
|
// no NEW_COMPONENT_USING_MEM_MODEL bug
|
|
+ (instancetype)newInt:(int)size {
|
|
return nil;
|
|
}
|
|
|
|
// no NEW_COMPONENT_USING_MEM_MODEL bug
|
|
+ (int)newReturnInt:(FBMemImage*)size {
|
|
return 0;
|
|
}
|
|
|
|
// NEW_COMPONENT_USING_MEM_MODEL bug
|
|
+ (instancetype)newMultiParams:(int)size
|
|
image:(FBMemImage*)image
|
|
query:(FBMemQuery*)query {
|
|
return nil;
|
|
}
|
|
|
|
@end
|
|
|
|
@interface FBMemModelUsed2 : NSObject
|
|
|
|
+ (instancetype)newQuery:(FBMemQuery*)query;
|
|
|
|
@end
|
|
|
|
@implementation FBMemModelUsed2
|
|
|
|
+ (instancetype)newQuery:(FBMemQuery*)query {
|
|
return nil;
|
|
}
|
|
|
|
@end
|