ClassDeclaration

Represents a dclass declaration.

Members

Functions

getFields
inout(FieldDeclaration[]) getFields()

Gets whether this class has a constructor.

hasConstructor
bool hasConstructor()

Gets whether this class has a constructor.

hasSuperclass
bool hasSuperclass()

Checks whether this ClassDeclaration has a super class.

kind
TypeDeclaration.Kind kind()
Undocumented in source. Be warned that the author may not have intended to support it.
parents
ClassDeclaration[] parents()

Get the direct parents of this dclass.

resolve
void resolve(Module file)

Resolves superclasses.

type
inout(Type) type()

The fields and RPC methods defined on this class.

Variables

constructor
FieldDeclaration constructor;

The constructor for this type.

fields
FieldDeclaration[] fields;

The fields and RPC methods defined on this class.

isInterface
bool isInterface;

Whether this ClassDeclaration should be generated as an interface.

superclassNames
string[] superclassNames;
Undocumented in source.
superclasses
ClassDeclaration[] superclasses;

The superclasses for this type.

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