StructDeclaration

Represents a struct declaration.

Members

Functions

getFields
inout(FieldDeclaration[]) getFields()
Undocumented in source. Be warned that the author may not have intended to support it.
kind
TypeDeclaration.Kind kind()
Undocumented in source. Be warned that the author may not have intended to support it.
type
inout(Type) type()

The atomic parts of this struct.

Variables

parameters
ParameterField[] parameters;

The atomic parts of this struct.

Inherited Members

From TypeDeclaration

Kind
enum Kind

Represents a type of TypeDeclaration.

id
int id;

The id of this Type.

symbol
string symbol;

The symbol name of this type.

kind
Kind kind()

Gets the kind of TypeDeclaration this object represents.

type
inout(Type) type()

Gets the Type associated with this TypeDeclaration.

getFields
inout(FieldDeclaration[]) getFields()

Gets all fields declared on this type.

getField
FieldDeclaration getField(int id)

Find a field by its id.

getField
FieldDeclaration getField(string symbol)

Find a field with its name.

Meta