clang API Documentation

Classes | Public Member Functions | Static Public Member Functions | Friends
clang::ObjCDictionaryLiteral Class Reference

#include <ExprObjC.h>

Inheritance diagram for clang::ObjCDictionaryLiteral:
Inheritance graph
[legend]
Collaboration diagram for clang::ObjCDictionaryLiteral:
Collaboration graph
[legend]

List of all members.

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
ObjCMethodDeclgetDictWithObjectsMethod () const
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
SourceRange getSourceRange () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static ObjCDictionaryLiteralCreate (const ASTContext &C, ArrayRef< ObjCDictionaryElement > VK, bool HasPackExpansions, QualType T, ObjCMethodDecl *method, SourceRange SR)
static ObjCDictionaryLiteralCreateEmpty (const ASTContext &C, unsigned NumElements, bool HasPackExpansions)
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class ASTStmtWriter

Detailed Description

ObjCDictionaryLiteral - AST node to represent objective-c dictionary literals; as in:"name" : NSUserName(), @"date" : [NSDate date] };

Definition at line 224 of file ExprObjC.h.


Member Function Documentation

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().

Reimplemented from clang::Stmt.

Definition at line 324 of file ExprObjC.h.

References clang::SourceRange::getEnd().

Reimplemented from clang::Stmt.

Definition at line 323 of file ExprObjC.h.

References clang::SourceRange::getBegin().

getNumElements - Return number of elements of objective-c dictionary literal.

Definition at line 305 of file ExprObjC.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitObjCCollectionLiteral().

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.


Friends And Related Function Documentation

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.


The documentation for this class was generated from the following files: