Lines Matching refs: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.
591 /// lookupInheritedClass - This method returns ObjCInterfaceDecl * of the super
621 /// lookupMethod - This method returns an instance/class method by looking in
623 /// When argument category "C" is specified, any implicit method found
680 // Will search "local" class/category implementations for a method decl.
681 // If failed, then we search in class's root for an instance method.
682 // Returns 0 if no method is found.
693 ObjCMethodDecl *Method = nullptr;
695 Method = Instance ? ImpDecl->getInstanceMethod(Sel)
699 if (!Method)
700 Method = getCategoryMethod(Sel, Instance);
702 // Before we give up, check if the selector is an instance method.
705 if (!Instance && !Method && !getSuperClass()) {
706 Method = lookupInstanceMethod(Sel);
709 if (!Method)
710 Method = lookupPrivateMethod(Sel, true);
713 if (!Method && getSuperClass())
715 return Method;
792 "No selector locs for non-implicit method");
843 // This is the last redeclaration, go back to the first method.
906 // init only has a conventional meaning for an instance method, and
989 } else // we have a factory method.
1002 // In addition, 'self' is const unless this is an init method.
1048 llvm_unreachable("unknown method context");
1073 const ObjCMethodDecl *Method,
1079 // In categories look for overriden methods from protocols. A method from
1080 // category is not "overriden" since it is considered as the "same" method
1084 // Check whether we have a matching method at this category but only if we
1088 Overridden = Container->getMethod(Method->getSelector(),
1089 Method->isInstanceMethod(),
1091 if (Method != Overridden) {
1099 CollectOverriddenMethodsRecurse(P, Method, Methods, MovedToSuper);
1103 // Check whether we have a matching method at this level.
1105 Overridden = Container->getMethod(Method->getSelector(),
1106 Method->isInstanceMethod(),
1108 if (Method != Overridden) {
1117 CollectOverriddenMethodsRecurse(P, Method, Methods, MovedToSuper);
1123 CollectOverriddenMethodsRecurse(P, Method, Methods, MovedToSuper);
1126 CollectOverriddenMethodsRecurse(Cat, Method, Methods, MovedToSuper);
1129 return CollectOverriddenMethodsRecurse(Super, Method, Methods,
1135 const ObjCMethodDecl *Method,
1137 CollectOverriddenMethodsRecurse(Container, Method, Methods,
1141 static void collectOverriddenMethodsSlow(const ObjCMethodDecl *Method,
1143 assert(Method->isOverriding());
1146 ProtD = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) {
1147 CollectOverriddenMethods(ProtD, Method, overridden);
1150 IMD = dyn_cast<ObjCImplDecl>(Method->getDeclContext())) {
1154 // Start searching for overridden methods using the method from the
1156 if (const ObjCMethodDecl *IFaceMeth = ID->getMethod(Method->getSelector(),
1157 Method->isInstanceMethod(),
1159 Method = IFaceMeth;
1160 CollectOverriddenMethods(ID, Method, overridden);
1163 CatD = dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) {
1167 // Start searching for overridden methods using the method from the
1169 if (const ObjCMethodDecl *IFaceMeth = ID->getMethod(Method->getSelector(),
1170 Method->isInstanceMethod(),
1172 Method = IFaceMeth;
1173 CollectOverriddenMethods(ID, Method, overridden);
1177 dyn_cast_or_null<ObjCContainerDecl>(Method->getDeclContext()),
1178 Method, overridden);
1184 const ObjCMethodDecl *Method = this;
1186 if (Method->isRedeclaration()) {
1187 Method = cast<ObjCContainerDecl>(Method->getDeclContext())->
1188 getMethod(Method->getSelector(), Method->isInstanceMethod());
1191 if (Method->isOverriding()) {
1192 collectOverriddenMethodsSlow(Method, Overridden);
1482 /// Caveat: The list returned by this method reflects the current
1784 // lookupMethod - Lookup a instance/class method in the protocol and protocols
1996 /// FindPropertyImplIvarDecl - This method lookup the ivar in the list of
2009 /// FindPropertyImplDecl - This method looks up a previous ObjCPropertyImplDecl