ClassDeclaration

Represents a dclass declaration.

Members

Functions

getFields
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 chain of parents. The closest parent is first.

resolve
void resolve(Module file)

Resolves superclasses.

type
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.

superclass
ClassDeclaration superclass;

The superclass for this type.

superclassName
string superclassName;
Undocumented in source.

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
Type type()

Gets the Type associated with this TypeDeclaration.

getFields
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