Module

Represents a module in the dclass system.

Members

Functions

findType
TypeDeclaration findType(string name)

Finds a ClassDeclaration or a StructDeclaration with the given name.

findType
TypeDeclaration findType(int id)
Undocumented in source. Be warned that the author may not have intended to support it.
typesById
TypeDeclaration[] typesById()

Gets an array of StructDeclaration and ClassDeclaration objects sorted by their id.

Variables

aliases
AliasDeclaration[] aliases;

The aliases defined in this module.

classes
ClassDeclaration[] classes;

The classes defined in this module.

importDeclarations
ImportDeclaration[] importDeclarations;

Get the import statements in this module.

keywords
KeywordDeclaration[] keywords;

The keywords defined in this module.

lastFieldId
ushort lastFieldId;

The id of the last field defined in this module.

lastTypeId
ushort lastTypeId;

The id of the last type defined in this module.

structs
StructDeclaration[] structs;

The structs defined in this module.

symbol
string symbol;

The optional name of this module.

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