clang API Documentation
#include <ExprObjC.h>


Public Member Functions | |
| ObjCSubscriptRefExpr (Expr *base, Expr *key, QualType T, ExprValueKind VK, ExprObjectKind OK, ObjCMethodDecl *getMethod, ObjCMethodDecl *setMethod, SourceLocation RB) | |
| ObjCSubscriptRefExpr (EmptyShell Empty) | |
| SourceLocation | getRBracket () const |
| void | setRBracket (SourceLocation RB) |
| SourceLocation | getLocStart () const LLVM_READONLY |
| SourceLocation | getLocEnd () const LLVM_READONLY |
| Expr * | getBaseExpr () const |
| void | setBaseExpr (Stmt *S) |
| Expr * | getKeyExpr () const |
| void | setKeyExpr (Stmt *S) |
| ObjCMethodDecl * | getAtIndexMethodDecl () const |
| ObjCMethodDecl * | setAtIndexMethodDecl () const |
| bool | isArraySubscriptRefExpr () const |
| child_range | children () |
Static Public Member Functions | |
| static ObjCSubscriptRefExpr * | Create (const ASTContext &C, Expr *base, Expr *key, QualType T, ObjCMethodDecl *getMethod, ObjCMethodDecl *setMethod, SourceLocation RB) |
| static bool | classof (const Stmt *T) |
Friends | |
| class | ASTStmtReader |
ObjCSubscriptRefExpr - used for array and dictionary subscripting. array[4] = array[3]; dictionary[key] = dictionary[alt_key];
Definition at line 776 of file ExprObjC.h.
| clang::ObjCSubscriptRefExpr::ObjCSubscriptRefExpr | ( | Expr * | base, |
| Expr * | key, | ||
| QualType | T, | ||
| ExprValueKind | VK, | ||
| ExprObjectKind | OK, | ||
| ObjCMethodDecl * | getMethod, | ||
| ObjCMethodDecl * | setMethod, | ||
| SourceLocation | RB | ||
| ) | [inline] |
Definition at line 793 of file ExprObjC.h.
Referenced by Create().
| clang::ObjCSubscriptRefExpr::ObjCSubscriptRefExpr | ( | EmptyShell | Empty | ) | [inline, explicit] |
Definition at line 808 of file ExprObjC.h.
| child_range clang::ObjCSubscriptRefExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
Definition at line 848 of file ExprObjC.h.
| static bool clang::ObjCSubscriptRefExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 826 of file ExprObjC.h.
References clang::Stmt::getStmtClass().
| ObjCSubscriptRefExpr * ObjCSubscriptRefExpr::Create | ( | const ASTContext & | C, |
| Expr * | base, | ||
| Expr * | key, | ||
| QualType | T, | ||
| ObjCMethodDecl * | getMethod, | ||
| ObjCMethodDecl * | setMethod, | ||
| SourceLocation | RB | ||
| ) | [static] |
Definition at line 4186 of file Expr.cpp.
References clang::ASTContext::Allocate(), ObjCSubscriptRefExpr(), clang::OK_ObjCSubscript, and clang::VK_LValue.
Referenced by clang::Sema::BuildObjCSubscriptExpression().
| ObjCMethodDecl* clang::ObjCSubscriptRefExpr::getAtIndexMethodDecl | ( | ) | const [inline] |
Definition at line 836 of file ExprObjC.h.
| Expr* clang::ObjCSubscriptRefExpr::getBaseExpr | ( | ) | const [inline] |
Definition at line 830 of file ExprObjC.h.
| Expr* clang::ObjCSubscriptRefExpr::getKeyExpr | ( | ) | const [inline] |
Definition at line 833 of file ExprObjC.h.
Referenced by isArraySubscriptRefExpr().
| SourceLocation clang::ObjCSubscriptRefExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 824 of file ExprObjC.h.
| SourceLocation clang::ObjCSubscriptRefExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 821 of file ExprObjC.h.
References clang::Stmt::getLocStart().
| SourceLocation clang::ObjCSubscriptRefExpr::getRBracket | ( | ) | const [inline] |
Definition at line 818 of file ExprObjC.h.
| bool clang::ObjCSubscriptRefExpr::isArraySubscriptRefExpr | ( | ) | const [inline] |
Definition at line 844 of file ExprObjC.h.
References getKeyExpr(), clang::Expr::getType(), and clang::Type::isIntegralOrEnumerationType().
| ObjCMethodDecl* clang::ObjCSubscriptRefExpr::setAtIndexMethodDecl | ( | ) | const [inline] |
Definition at line 840 of file ExprObjC.h.
| void clang::ObjCSubscriptRefExpr::setBaseExpr | ( | Stmt * | S | ) | [inline] |
Definition at line 831 of file ExprObjC.h.
References S.
| void clang::ObjCSubscriptRefExpr::setKeyExpr | ( | Stmt * | S | ) | [inline] |
Definition at line 834 of file ExprObjC.h.
References S.
| void clang::ObjCSubscriptRefExpr::setRBracket | ( | SourceLocation | RB | ) | [inline] |
Definition at line 819 of file ExprObjC.h.
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.
Definition at line 852 of file ExprObjC.h.