Summary: Move UIDebugger plugin to OSS space. Reviewed By: passy Differential Revision: D47634848 fbshipit-source-id: 90e8c0181a2434d0e5d76bdb99b902051e6d702e
57 lines
1.0 KiB
Objective-C
57 lines
1.0 KiB
Objective-C
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#if FB_SONARKIT_ENABLED
|
|
|
|
#import "UIDNodeDescriptor.h"
|
|
|
|
@implementation UIDNodeDescriptor
|
|
|
|
- (NSUInteger)identifierForNode:(id)node {
|
|
return [node hash];
|
|
}
|
|
|
|
- (NSString*)nameForNode:(id)node {
|
|
return NSStringFromClass([node class]);
|
|
}
|
|
|
|
- (UIDInlineAttributes*)inlineAttributesForNode:(id)node {
|
|
return @{@"address" : [NSString stringWithFormat:@"%p", node]};
|
|
}
|
|
|
|
- (UIDGenericAttributes*)hiddenAttributesForNode:(id)node {
|
|
return nil;
|
|
}
|
|
|
|
- (UIDAttributes*)attributesForNode:(id)node {
|
|
return [NSDictionary dictionary];
|
|
}
|
|
|
|
- (NSArray<id<NSObject>>*)childrenOfNode:(id)node {
|
|
return [NSArray array];
|
|
}
|
|
|
|
- (NSSet<NSString*>*)tagsForNode:(id)node {
|
|
return [NSSet set];
|
|
}
|
|
|
|
- (UIDBounds*)boundsForNode:(id)node {
|
|
return nil;
|
|
}
|
|
|
|
- (id<NSObject>)activeChildForNode:(id)node {
|
|
return nil;
|
|
}
|
|
|
|
- (UIImage*)snapshotForNode:(id)node {
|
|
return nil;
|
|
}
|
|
|
|
@end
|
|
|
|
#endif
|