clang  3.9.0
Public Member Functions | Public Attributes | List of all members
clang::ObjCDictionaryElement Struct Reference

An element in an Objective-C dictionary literal. More...

#include <ExprObjC.h>

Collaboration diagram for clang::ObjCDictionaryElement:
[legend]

Public Member Functions

bool isPackExpansion () const
 Determines whether this dictionary element is a pack expansion. More...
 

Public Attributes

ExprKey
 The key for the dictionary element. More...
 
ExprValue
 The value of the dictionary element. More...
 
SourceLocation EllipsisLoc
 The location of the ellipsis, if this is a pack expansion. More...
 
Optional< unsignedNumExpansions
 The number of elements this pack expansion will expand to, if this is a pack expansion and is known. More...
 

Detailed Description

An element in an Objective-C dictionary literal.

Definition at line 212 of file ExprObjC.h.

Member Function Documentation

bool clang::ObjCDictionaryElement::isPackExpansion ( ) const
inline

Determines whether this dictionary element is a pack expansion.

Definition at line 227 of file ExprObjC.h.

References EllipsisLoc, and clang::SourceLocation::isValid().

Member Data Documentation

SourceLocation clang::ObjCDictionaryElement::EllipsisLoc

The location of the ellipsis, if this is a pack expansion.

Definition at line 220 of file ExprObjC.h.

Referenced by isPackExpansion().

Expr* clang::ObjCDictionaryElement::Key

The key for the dictionary element.

Definition at line 214 of file ExprObjC.h.

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

Optional<unsigned> clang::ObjCDictionaryElement::NumExpansions

The number of elements this pack expansion will expand to, if this is a pack expansion and is known.

Definition at line 224 of file ExprObjC.h.

Expr* clang::ObjCDictionaryElement::Value

The value of the dictionary element.

Definition at line 217 of file ExprObjC.h.

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


The documentation for this struct was generated from the following file: