AliasDeclaration

Represents a typedef statement.

Members

Functions

getFields
inout(FieldDeclaration[]) getFields()

The type to substitute the symbol for. For example, typedef doId uint32 would set the aliasedTypeName to uint32.

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

The type to substitute the symbol for. For example, typedef doId uint32 would set the aliasedTypeName to uint32.

Variables

aliasedType
TypeDeclaration aliasedType;
Undocumented in source.
aliasedTypeName
string aliasedTypeName;

The type to substitute the symbol for. For example, typedef doId uint32 would set the aliasedTypeName to uint32.

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