class
#include <slang/ast/symbols/SymbolBuilders.h>
StructBuilder A helper class for constructing struct types programmatically.
Public functions
-
void addField(std::string_view name,
const Type& fieldType,
bitmask<VariableFlags> flags = VariableFlags::
None) - Adds a field to the struct.
Public variables
- Compilation& compilation
- The compilation used to construct symbols.
- UnpackedStructType& type
- The struct type being constructed.