NamedDecl *getMethodContext() const { return MethodContext; }
- ObjCInterfaceDecl *const getClassInterface() const;
+ const ObjCInterfaceDecl *getClassInterface() const;
+ ObjCInterfaceDecl *getClassInterface() {
+ return (ObjCInterfaceDecl*)((ObjCMethodDecl*)this)->getClassInterface();
+ }
Selector getSelector() const { return SelName; }
unsigned getSynthesizedMethodSize() const;
ImplementationControl getImplementationControl() const {
return ImplementationControl(DeclImplementation);
}
- Stmt *const getBody() const { return Body; }
+ Stmt *getBody() { return Body; }
+ const Stmt *getBody() const { return Body; }
void setBody(Stmt *B) { Body = B; }
- ParmVarDecl *const getSelfDecl() const { return SelfDecl; }
+ const ParmVarDecl *getSelfDecl() const { return SelfDecl; }
+ ParmVarDecl *getSelfDecl() { return SelfDecl; }
void setSelfDecl(ParmVarDecl *PVD) { SelfDecl = PVD; }
// Implement isa/cast/dyncast/etc.
static ObjCCategoryDecl *Create(ASTContext &C,
SourceLocation L, IdentifierInfo *Id);
- ObjCInterfaceDecl *getClassInterface() const { return ClassInterface; }
+ ObjCInterfaceDecl *getClassInterface() { return ClassInterface; }
+ const ObjCInterfaceDecl *getClassInterface() const { return ClassInterface; }
void setClassInterface(ObjCInterfaceDecl *IDecl) { ClassInterface = IDecl; }
void setReferencedProtocolList(ObjCProtocolDecl **List, unsigned NumRPs);
SourceLocation L, IdentifierInfo *Id,
ObjCInterfaceDecl *classInterface);
- ObjCInterfaceDecl *getClassInterface() const { return ClassInterface; }
+ const ObjCInterfaceDecl *getClassInterface() const { return ClassInterface; }
+ ObjCInterfaceDecl *getClassInterface() { return ClassInterface; }
unsigned getNumInstanceMethods() const { return InstanceMethods.size(); }
unsigned getNumClassMethods() const { return ClassMethods.size(); }
SourceLocation getLocEnd() const { return EndLoc; }
void setLocEnd(SourceLocation LE) { EndLoc = LE; };
- ObjCInterfaceDecl *getClassInterface() const { return ClassInterface; }
- ObjCInterfaceDecl *getSuperClass() const { return SuperClass; }
+ const ObjCInterfaceDecl *getClassInterface() const { return ClassInterface; }
+ ObjCInterfaceDecl *getClassInterface() { return ClassInterface; }
+ const ObjCInterfaceDecl *getSuperClass() const { return SuperClass; }
+ ObjCInterfaceDecl *getSuperClass() { return SuperClass; }
void setSuperClass(ObjCInterfaceDecl * superCls) { SuperClass = superCls; }
ObjCIvarDecl *getDecl() { return D; }
const ObjCIvarDecl *getDecl() const { return D; }
virtual SourceRange getSourceRange() const { return SourceRange(Loc); }
- Expr *const getBase() const { return Base; }
+ const Expr *getBase() const { return Base; }
+ Expr *getBase() { return Base; }
void setBase(Expr * base) { Base = base; }
- const bool isArrow() const { return IsArrow; }
- const bool isFreeIvar() const { return IsFreeIvar; }
+ bool isArrow() const { return IsArrow; }
+ bool isFreeIvar() const { return IsFreeIvar; }
SourceLocation getLocation() const { return Loc; }