[analyzer] Add a convinience method.

llvm-svn: 140092
This commit is contained in:
Anna Zaks 2011-09-19 23:18:44 +00:00
parent c2b3c1f14b
commit f1e2c40b1b
1 changed files with 5 additions and 0 deletions

View File

@ -123,6 +123,11 @@ public:
return cast<ObjCPropertyRefExpr>(MsgOrPropE)->getReceiverLocation();
}
const Expr *getMsgOrPropExpr() const {
assert(isValid() && "This ObjCMessage is uninitialized!");
return MsgOrPropE;
}
SourceRange getSourceRange() const {
assert(isValid() && "This ObjCMessage is uninitialized!");
return MsgOrPropE->getSourceRange();