Should the getCanonicalDecl method on ObjCMethodDecl also search its superclasses? For example, if I have the following:
@interface MyBaseClass {
}
- (void)method1;
@end
@interface MyClass : MyBaseClass {
}
- (void)method2:(id)argument;
@end
@implementation MyClass
-
(void)method1 {
} -
(void)method2:(id)argument {
}
@end
I would expect that in the implementation of MyClass, that the canonical decl for both methods 1 and 2 should be their definitions in MyClass and MyBaseClass. Currently, only method2 resolves to the declaration. method1 returns itself.
Kevin