mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-12 18:37:12 +00:00
a78d25d4fc
- Add Objective-C extractor (.m/.mm) with @interface, @implementation, @protocol, imports, calls - Add C# inheritance extraction via base_list nodes (inherits edges) - Add --obsidian-dir flag to skill.md and skill-windows.md - Add graphify query CLI command with --dfs, --budget, --graph flags - Add follow_symlinks parameter to detect() and collect_files() with cycle detection - Fix semantic cache relative path resolution (was saving only 4/17 files) - Fix validate.py missing rationale file_type causing 75 warnings per run - Add tree-sitter-objc dependency - Update README with .m/.mm extensions, --obsidian-dir usage, Codex $ skill trigger - 367 tests passing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
43 lines
612 B
Objective-C
43 lines
612 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "SampleDelegate.h"
|
|
|
|
@interface Animal : NSObject <SampleDelegate>
|
|
|
|
@property (nonatomic, strong) NSString *name;
|
|
|
|
- (instancetype)initWithName:(NSString *)name;
|
|
- (void)speak;
|
|
|
|
@end
|
|
|
|
@implementation Animal
|
|
|
|
- (instancetype)initWithName:(NSString *)name {
|
|
self = [super init];
|
|
if (self) {
|
|
_name = name;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)speak {
|
|
NSLog(@"%@ makes a sound.", self.name);
|
|
}
|
|
|
|
@end
|
|
|
|
@interface Dog : Animal
|
|
|
|
- (void)fetch;
|
|
|
|
@end
|
|
|
|
@implementation Dog
|
|
|
|
- (void)fetch {
|
|
[self speak];
|
|
NSLog(@"%@ fetches the ball!", self.name);
|
|
}
|
|
|
|
@end
|