|
Porytiles
|
Represents a single designated initializer field from a C struct initialization. More...
#include <designated_initializer_field.hpp>
Public Member Functions | |
| DesignatedInitializerField (std::string field_name, std::string value, SourcePosition position) | |
| Constructs a DesignatedInitializerField. | |
| const std::string & | field_name () const |
| Returns the field name. | |
| const std::string & | value () const |
| Returns the field value. | |
| const SourcePosition & | position () const |
| Returns the source position of the field name. | |
Represents a single designated initializer field from a C struct initialization.
DesignatedInitializerField captures a .field = value entry from C designated initializers like:
Each field captures:
Definition at line 32 of file designated_initializer_field.hpp.
|
inline |
Constructs a DesignatedInitializerField.
| field_name | The field name (e.g., "isSecondary") |
| value | The value assigned to the field (e.g., "FALSE", "gTilesetTiles_General") |
| position | The source position of the field name |
Definition at line 41 of file designated_initializer_field.hpp.
|
inline |
Returns the field name.
Definition at line 51 of file designated_initializer_field.hpp.
|
inline |
Returns the source position of the field name.
Definition at line 71 of file designated_initializer_field.hpp.
|
inline |
Returns the field value.
Definition at line 61 of file designated_initializer_field.hpp.