clang 22.0.0git
clang::ObjCDictionaryElement Struct Reference

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

#include "clang/AST/ExprObjC.h"

Public Member Functions

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

Public Attributes

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

Detailed Description

An element in an Objective-C dictionary literal.

Definition at line 261 of file ExprObjC.h.

Member Function Documentation

◆ isPackExpansion()

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

Determines whether this dictionary element is a pack expansion.

Definition at line 276 of file ExprObjC.h.

References EllipsisLoc.

Member Data Documentation

◆ EllipsisLoc

SourceLocation clang::ObjCDictionaryElement::EllipsisLoc

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

Definition at line 269 of file ExprObjC.h.

Referenced by isPackExpansion().

◆ Key

Expr* clang::ObjCDictionaryElement::Key

The key for the dictionary element.

Definition at line 263 of file ExprObjC.h.

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

◆ NumExpansions

UnsignedOrNone 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 273 of file ExprObjC.h.

◆ Value

Expr* clang::ObjCDictionaryElement::Value

The value of the dictionary element.

Definition at line 266 of file ExprObjC.h.

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


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