TypeDeclaration

Base class for module-level type declarations. A type is a keyword declaration, a class declaration, a struct declaration, or an alias/typedef declaration.

Members

Enums

Kind
enum Kind

Represents a type of TypeDeclaration.

Functions

getField
FieldDeclaration getField(int id)

Find a field by its id.

getField
FieldDeclaration getField(string symbol)

Find a field with its name.

getFields
inout(FieldDeclaration[]) getFields()

Gets all fields declared on this type.

kind
Kind kind()

Gets the kind of TypeDeclaration this object represents.

type
inout(Type) type()

Gets the Type associated with this TypeDeclaration.

Variables

id
int id;

The id of this Type.

symbol
string symbol;

The symbol name of this type.

Inherited Members

From SyntaxNode

syntaxKind
SyntaxKind syntaxKind()

Gets the SyntaxKind for this type of node.

visit
void visit(Visitor visitor)

Calls the $(S Visitor)'s analogous Visitor.visit method.

Meta