aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/ExprObjC.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/clang/AST/ExprObjC.h b/include/clang/AST/ExprObjC.h
index 8a09f4e9a6..15b70075cb 100644
--- a/include/clang/AST/ExprObjC.h
+++ b/include/clang/AST/ExprObjC.h
@@ -242,14 +242,11 @@ public:
: Expr(ObjCPropertyRefExprClass, Empty) {}
ObjCPropertyDecl *getProperty() const { return AsProperty; }
- void setProperty(ObjCPropertyDecl *D) { AsProperty = D; }
const Expr *getBase() const { return cast<Expr>(Base); }
Expr *getBase() { return cast<Expr>(Base); }
- void setBase(Expr *base) { Base = base; }
SourceLocation getLocation() const { return IdLoc; }
- void setLocation(SourceLocation L) { IdLoc = L; }
virtual SourceRange getSourceRange() const {
return SourceRange(getBase()->getLocStart(), IdLoc);
@@ -263,6 +260,11 @@ public:
// Iterators
virtual child_iterator child_begin();
virtual child_iterator child_end();
+private:
+ friend class ASTStmtReader;
+ void setProperty(ObjCPropertyDecl *D) { AsProperty = D; }
+ void setBase(Expr *base) { Base = base; }
+ void setLocation(SourceLocation L) { IdLoc = L; }
};
/// ObjCImplicitSetterGetterRefExpr - A dot-syntax expression to access two