Home | History | Annotate | Download | only in AST

Lines Matching defs:Method

53 /// getIvarDecl - This method looks up an ivar in this ContextDecl.
66 // Get the local instance/class method declared in this interface.
79 // ensures we get the correct method.
96 /// \brief This routine returns 'true' if a user declared setter method was
99 /// property. This is because, user must provide a setter method for the
114 // for a user declared instance method.
133 // Also look into protocols, for a user declared instance method.
510 /// lookupInheritedClass - This method returns ObjCInterfaceDecl * of the super
540 /// lookupMethod - This method returns an instance/class method by looking in
542 /// When argument category "C" is specified, any implicit method found
599 // Will search "local" class/category implementations for a method decl.
600 // If failed, then we search in class's root for an instance method.
601 // Returns 0 if no method is found.
612 ObjCMethodDecl *Method = nullptr;
614 Method = Instance ? ImpDecl->getInstanceMethod(Sel)
618 if (!Method)
619 Method = getCategoryMethod(Sel, Instance);
621 // Before we give up, check if the selector is an instance method.
624 if (!Instance && !Method && !getSuperClass()) {
625 Method = lookupInstanceMethod(Sel);
628 if (!Method)
629 Method = lookupPrivateMethod(Sel, true);
632 if (!Method && getSuperClass())
634 return Method;
711 "No selector locs for non-implicit method");
762 // This is the last redeclaration, go back to the first method.
825 // init only has a conventional meaning for an instance method, and
904 } else // we have a factory method.
920 // In addition, 'self' is const unless this is an init method.
959 llvm_unreachable("unknown method context");
970 const ObjCMethodDecl *Method,
976 // In categories look for overriden methods from protocols. A method from
977 // category is not "overriden" since it is considered as the "same" method
981 // Check whether we have a matching method at this category but only if we
985 Overridden = Container->getMethod(Method->getSelector(),
986 Method->isInstanceMethod(),
988 if (Method != Overridden) {
996 CollectOverriddenMethodsRecurse(P, Method, Methods, MovedToSuper);
1000 // Check whether we have a matching method at this level.
1002 Overridden = Container->getMethod(Method->getSelector(),
1003 Method->isInstanceMethod(),
1005 if (Method != Overridden) {
1014 CollectOverriddenMethodsRecurse(P, Method, Methods, MovedToSuper);
1020 CollectOverriddenMethodsRecurse(P, Method, Methods, MovedToSuper);
1023 CollectOverriddenMethodsRecurse(Cat, Method, Methods, MovedToSuper);
1026 return CollectOverriddenMethodsRecurse(Super, Method, Methods,
1032 const ObjCMethodDecl *Method,
1034 CollectOverriddenMethodsRecurse(Container, Method, Methods,
1038 static void collectOverriddenMethodsSlow(const ObjCMethodDecl *Method,
1040 assert(Method->isOverriding());
1043 ProtD = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) {
1044 CollectOverriddenMethods(ProtD, Method, overridden);
1047 IMD = dyn_cast<ObjCImplDecl>(Method->getDeclContext())) {
1051 // Start searching for overridden methods using the method from the
1053 if (const ObjCMethodDecl *IFaceMeth = ID->getMethod(Method->getSelector(),
1054 Method->isInstanceMethod(),
1056 Method = IFaceMeth;
1057 CollectOverriddenMethods(ID, Method, overridden);
1060 CatD = dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) {
1064 // Start searching for overridden methods using the method from the
1066 if (const ObjCMethodDecl *IFaceMeth = ID->getMethod(Method->getSelector(),
1067 Method->isInstanceMethod(),
1069 Method = IFaceMeth;
1070 CollectOverriddenMethods(ID, Method, overridden);
1074 dyn_cast_or_null<ObjCContainerDecl>(Method->getDeclContext()),
1075 Method, overridden);
1081 const ObjCMethodDecl *Method = this;
1083 if (Method->isRedeclaration()) {
1084 Method = cast<ObjCContainerDecl>(Method->getDeclContext())->
1085 getMethod(Method->getSelector(), Method->isInstanceMethod());
1088 if (Method->isOverriding()) {
1089 collectOverriddenMethodsSlow(Method, Overridden);
1268 /// Caveat: The list returned by this method reflects the current
1565 // lookupMethod - Lookup a instance/class method in the protocol and protocols
1751 /// FindPropertyImplIvarDecl - This method lookup the ivar in the list of
1764 /// FindPropertyImplDecl - This method looks up a previous ObjCPropertyImplDecl