clang API Documentation
#include <ExprObjC.h>


Classes | |
| struct | ExpansionData |
| Data that describes an element that is a pack expansion, used if any of the elements in the dictionary literal are pack expansions. | |
| struct | KeyValuePair |
| Key/value pair used to store the key and value of a given element. | |
Public Member Functions | |
| unsigned | getNumElements () const |
| ObjCDictionaryElement | getKeyValueElement (unsigned Index) const |
| ObjCMethodDecl * | getDictWithObjectsMethod () const |
| SourceLocation | getLocStart () const LLVM_READONLY |
| SourceLocation | getLocEnd () const LLVM_READONLY |
| SourceRange | getSourceRange () const LLVM_READONLY |
| child_range | children () |
Static Public Member Functions | |
| static ObjCDictionaryLiteral * | Create (const ASTContext &C, ArrayRef< ObjCDictionaryElement > VK, bool HasPackExpansions, QualType T, ObjCMethodDecl *method, SourceRange SR) |
| static ObjCDictionaryLiteral * | CreateEmpty (const ASTContext &C, unsigned NumElements, bool HasPackExpansions) |
| static bool | classof (const Stmt *T) |
Friends | |
| class | ASTStmtReader |
| class | ASTStmtWriter |
ObjCDictionaryLiteral - AST node to represent objective-c dictionary literals; as in:"name" : NSUserName(), @"date" : [NSDate date] };
Definition at line 224 of file ExprObjC.h.
| child_range clang::ObjCDictionaryLiteral::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
Definition at line 332 of file ExprObjC.h.
| static bool clang::ObjCDictionaryLiteral::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 327 of file ExprObjC.h.
References clang::Stmt::getStmtClass().
| ObjCDictionaryLiteral * ObjCDictionaryLiteral::Create | ( | const ASTContext & | C, |
| ArrayRef< ObjCDictionaryElement > | VK, | ||
| bool | HasPackExpansions, | ||
| QualType | T, | ||
| ObjCMethodDecl * | method, | ||
| SourceRange | SR | ||
| ) | [static] |
Definition at line 4160 of file Expr.cpp.
References clang::ASTContext::Allocate().
Referenced by clang::Sema::BuildObjCDictionaryLiteral().
| ObjCDictionaryLiteral * ObjCDictionaryLiteral::CreateEmpty | ( | const ASTContext & | C, |
| unsigned | NumElements, | ||
| bool | HasPackExpansions | ||
| ) | [static] |
Definition at line 4175 of file Expr.cpp.
References clang::ASTContext::Allocate().
| ObjCMethodDecl* clang::ObjCDictionaryLiteral::getDictWithObjectsMethod | ( | ) | const [inline] |
Definition at line 320 of file ExprObjC.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitObjCDictionaryLiteral().
| ObjCDictionaryElement clang::ObjCDictionaryLiteral::getKeyValueElement | ( | unsigned | Index | ) | const [inline] |
Definition at line 307 of file ExprObjC.h.
References clang::ObjCDictionaryElement::EllipsisLoc, and clang::ObjCDictionaryElement::NumExpansions.
Referenced by clang::CodeGen::CodeGenFunction::EmitObjCCollectionLiteral().
| SourceLocation clang::ObjCDictionaryLiteral::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 324 of file ExprObjC.h.
References clang::SourceRange::getEnd().
| SourceLocation clang::ObjCDictionaryLiteral::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 323 of file ExprObjC.h.
References clang::SourceRange::getBegin().
| unsigned clang::ObjCDictionaryLiteral::getNumElements | ( | ) | const [inline] |
getNumElements - Return number of elements of objective-c dictionary literal.
Definition at line 305 of file ExprObjC.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitObjCCollectionLiteral().
| SourceRange clang::ObjCDictionaryLiteral::getSourceRange | ( | ) | const [inline] |
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.
Reimplemented from clang::Stmt.
Definition at line 325 of file ExprObjC.h.
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.
Definition at line 339 of file ExprObjC.h.
friend class ASTStmtWriter [friend] |
Reimplemented from clang::Stmt.
Definition at line 340 of file ExprObjC.h.