|
Porytiles
|
Represents a parsed C pointer array declaration. More...
#include <array_declaration.hpp>
Public Member Functions | |
| ArrayDeclaration (std::string name, std::vector< std::string > elements, SourcePosition position) | |
| Constructs an ArrayDeclaration. | |
| const std::string & | name () const |
| Returns the array variable name. | |
| const std::vector< std::string > & | elements () const |
| Returns the initializer list elements. | |
| const SourcePosition & | position () const |
| Returns the source position of the array name. | |
Represents a parsed C pointer array declaration.
ArrayDeclaration captures the structure of C pointer array declarations like:
The parser extracts the array name and all identifier elements from the initializer list. This is used by AnimCodeParser to extract animation frame sequences from tileset animation code.
Definition at line 29 of file array_declaration.hpp.
|
inline |
Constructs an ArrayDeclaration.
| name | The array variable name |
| elements | The identifier elements from the initializer list |
| position | The source position of the array name |
Definition at line 38 of file array_declaration.hpp.
|
inline |
Returns the initializer list elements.
Returns the identifiers from the array initializer in declaration order. For frame arrays, these are typically frame pointer names like "gTilesetAnims_General_Flower_Frame0".
Definition at line 62 of file array_declaration.hpp.
|
inline |
Returns the array variable name.
Definition at line 48 of file array_declaration.hpp.
|
inline |
Returns the source position of the array name.
Definition at line 72 of file array_declaration.hpp.