Lines Matching refs:Container

3449 static ObjCContainerDecl *getContainerDef(ObjCContainerDecl *Container) {
3450 if (ObjCInterfaceDecl *Interface = dyn_cast<ObjCInterfaceDecl>(Container)) {
3457 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
3463 return Container;
3466 static void AddObjCProperties(ObjCContainerDecl *Container,
3475 Container = getContainerDef(Container);
3478 for (ObjCContainerDecl::prop_iterator P = Container->prop_begin(),
3479 PEnd = Container->prop_end();
3489 ASTContext &Context = Container->getASTContext();
3491 for (ObjCContainerDecl::method_iterator M = Container->meth_begin(),
3492 MEnd = Container->meth_end();
3512 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
3518 } else if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container)){
3542 = dyn_cast<ObjCCategoryDecl>(Container)) {
4834 /// \param Container the container in which we'll look to find methods.
4846 static void AddObjCMethods(ObjCContainerDecl *Container,
4856 Container = getContainerDef(Container);
4857 ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container);
4859 for (ObjCContainerDecl::method_iterator M = Container->meth_begin(),
4860 MEnd = Container->meth_end();
4884 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
5988 ObjCContainerDecl *Container
5990 if (!Container ||
5991 (!isa<ObjCImplementationDecl>(Container) &&
5992 !isa<ObjCCategoryImplDecl>(Container)))
5996 Container = getContainerDef(Container);
5997 for (DeclContext::decl_iterator D = Container->decls_begin(),
5998 DEnd = Container->decls_end();
6007 = dyn_cast<ObjCImplementationDecl>(Container))
6012 AddObjCProperties(cast<ObjCCategoryImplDecl>(Container)->getCategoryDecl(),
6030 ObjCContainerDecl *Container
6032 if (!Container ||
6033 (!isa<ObjCImplementationDecl>(Container) &&
6034 !isa<ObjCCategoryImplDecl>(Container)))
6040 = dyn_cast<ObjCImplementationDecl>(Container))
6043 Class = cast<ObjCCategoryImplDecl>(Container)->getCategoryDecl()
6125 ObjCContainerDecl *Container,
6130 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container)) {
6136 Container = IFace;
6162 if (ObjCCategoryDecl *Category = dyn_cast<ObjCCategoryDecl>(Container)) {
6179 if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Container)) {
6184 Container = Protocol;
6199 for (ObjCContainerDecl::method_iterator M = Container->meth_begin(),
6200 MEnd = Container->meth_end();