-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable displaying ivar names for custom struct types
FLEXMetadataExtras.h
- Loading branch information
1 parent
9d97533
commit ba36647
Showing
12 changed files
with
148 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../Classes/Utility/Runtime/Objc/Reflection/FLEXMetadataExtras.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
Classes/Utility/Runtime/Objc/Reflection/FLEXMetadataExtras.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// FLEXMetadataExtras.h | ||
// FLEX | ||
// | ||
// Created by Tanner Bennett on 4/26/22. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "FLEXMethodBase.h" | ||
#import "FLEXProperty.h" | ||
#import "FLEXIvar.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/// A dictionary mapping type encoding strings to an array of field titles | ||
extern NSString * const FLEXAuxiliarynfoKeyFieldLabels; | ||
|
||
@protocol FLEXMetadataAuxiliaryInfo <NSObject> | ||
|
||
/// Used to supply arbitrary additional data that need not be exposed by their own properties | ||
- (nullable id)auxiliaryInfoForKey:(NSString *)key; | ||
|
||
@end | ||
|
||
@interface FLEXMethodBase (Auxiliary) <FLEXMetadataAuxiliaryInfo> @end | ||
@interface FLEXProperty (Auxiliary) <FLEXMetadataAuxiliaryInfo> @end | ||
@interface FLEXIvar (Auxiliary) <FLEXMetadataAuxiliaryInfo> @end | ||
|
||
|
||
NS_ASSUME_NONNULL_END |
22 changes: 22 additions & 0 deletions
22
Classes/Utility/Runtime/Objc/Reflection/FLEXMetadataExtras.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// FLEXMetadataExtras.m | ||
// FLEX | ||
// | ||
// Created by Tanner Bennett on 4/26/22. | ||
// | ||
|
||
#import "FLEXMetadataExtras.h" | ||
|
||
NSString * const FLEXAuxiliarynfoKeyFieldLabels = @"FLEXAuxiliarynfoKeyFieldLabels"; | ||
|
||
@implementation FLEXMethodBase (Auxiliary) | ||
- (id)auxiliaryInfoForKey:(NSString *)key { return nil; } | ||
@end | ||
|
||
@implementation FLEXProperty (Auxiliary) | ||
- (id)auxiliaryInfoForKey:(NSString *)key { return nil; } | ||
@end | ||
|
||
@implementation FLEXIvar (Auxiliary) | ||
- (id)auxiliaryInfoForKey:(NSString *)key { return nil; } | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters