|
Porytiles
|
Represents a parsed C struct variable declaration. More...
#include <struct_variable_declaration.hpp>
Public Member Functions | |
| StructVariableDeclaration (std::string struct_type, std::string variable_name, SourcePosition position) | |
| Constructs a StructVariableDeclaration. | |
| const std::string & | struct_type () const |
| Returns the struct type name. | |
| const std::string & | variable_name () const |
| Returns the variable name. | |
| const SourcePosition & | position () const |
| Returns the source position of the variable name. | |
Represents a parsed C struct variable declaration.
StructVariableDeclaration captures the structure of C struct variable declarations like:
The parser extracts the struct type name and variable name. The initializer body contents are not captured as only the variable name is needed for tileset discovery. This is used by ProjectTilesetMetadataProvider to extract tileset names from headers.h files.
Definition at line 31 of file struct_variable_declaration.hpp.
|
inline |
Constructs a StructVariableDeclaration.
| struct_type | The struct type name (e.g., "Tileset") |
| variable_name | The variable name (e.g., "gTileset_General") |
| position | The source position of the variable name |
Definition at line 40 of file struct_variable_declaration.hpp.
|
inline |
Returns the source position of the variable name.
Definition at line 70 of file struct_variable_declaration.hpp.
|
inline |
Returns the struct type name.
Definition at line 50 of file struct_variable_declaration.hpp.
|
inline |
Returns the variable name.
Definition at line 60 of file struct_variable_declaration.hpp.