ModuleDeclaration

/**
* A module declaration.
*/

Inherit from DeclarationStatement

Primary key: id: int

schema ModuleDeclaration extends DeclarationStatement {
  @primary id: int
}

ModuleDeclaration::getADecorator

/**
* Gets a decorator.
*/
pub fn getADecorator(self: ModuleDeclaration) -> *Decorator;

ModuleDeclaration::getAComment

/**
* Gets the comments related to it
*/
pub fn getAComment(self: ModuleDeclaration) -> *Comment;

ModuleDeclaration::getText

/**
* Gets the text of this node.
*/
pub fn getText(self: ModuleDeclaration) -> string;

ModuleDeclaration::getModifier

/**
* Gets the `i`th modifier.
*/
pub fn getModifier(self: ModuleDeclaration, i: int) -> Modifier;

ModuleDeclaration::getFile

/**
* Gets the file of this node.
*/
pub fn getFile(self: ModuleDeclaration) -> File;

ModuleDeclaration::getALeadingComment

/**
* Gets the leading comments of it
*/
pub fn getALeadingComment(self: ModuleDeclaration) -> *Comment;

ModuleDeclaration::getADescendant

/**
* Gets a descendant of this node. 
*/
pub fn getADescendant(self: ModuleDeclaration) -> *Node;

ModuleDeclaration::getEnclosingFunction

/**
* Gets the enclosing function of it
*/
pub fn getEnclosingFunction(self: ModuleDeclaration) -> FunctionLikeDeclaration;

ModuleDeclaration::getAnAncestor

/**
* Gets an ancestor of this node. 
*/
pub fn getAnAncestor(self: ModuleDeclaration) -> *Node;

ModuleDeclaration::getDecorator

/**
* Gets the `i`th decorator.
*/
pub fn getDecorator(self: ModuleDeclaration, i: int) -> Decorator;

ModuleDeclaration::getChildCount

/**
* Gets the number of child nodes.
*/
pub fn getChildCount(self: ModuleDeclaration) -> int;

ModuleDeclaration::getEndColumnNumber

pub fn getEndColumnNumber(self: ModuleDeclaration) -> int;

ModuleDeclaration::getParent

/**
* Gets the parent node of this node.
*/
pub fn getParent(self: ModuleDeclaration) -> Node;

ModuleDeclaration::getLastChild

/**
* Gets the last child of this node parent.
*/
pub fn getLastChild(self: ModuleDeclaration) -> Node;

ModuleDeclaration::getIndex

pub fn getIndex(self: ModuleDeclaration) -> int;

ModuleDeclaration::__all__

Data constraint method.

pub fn __all__(db: JavascriptDB) -> *ModuleDeclaration;

ModuleDeclaration::getLocation

/**
* Gets the location of this node.
*/
pub fn getLocation(self: ModuleDeclaration) -> Location;

ModuleDeclaration::getADescendantByLevel

/**
* Gets a descendant of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
pub fn getADescendantByLevel(self: ModuleDeclaration, level: int) -> *Node;

ModuleDeclaration::getRelativePath

/**
* Gets the relative path of this node.
*/
pub fn getRelativePath(self: ModuleDeclaration) -> string;

ModuleDeclaration::getAnAncestorEnclosingFunction

/**
* Gets an ancestor enclosing function of it
*/
pub fn getAnAncestorEnclosingFunction(self: ModuleDeclaration) -> *FunctionLikeDeclaration;

ModuleDeclaration::getSymbol

/**
* Gets the symbol associated with this node.
*/
pub fn getSymbol(self: ModuleDeclaration) -> Symbol;

ModuleDeclaration::getRoot

/**
* Gets the root top-level of this node. 
*/
pub fn getRoot(self: ModuleDeclaration) -> TopLevelDO;

ModuleDeclaration::getParentOid

/**
* Gets the parent oid of this node.
*/
pub fn getParentOid(self: ModuleDeclaration) -> int;

ModuleDeclaration::getEndLineNumber

pub fn getEndLineNumber(self: ModuleDeclaration) -> int;

ModuleDeclaration::getATrailingComment

/**
* Gets the trailing comments of it
*/
pub fn getATrailingComment(self: ModuleDeclaration) -> *Comment;

ModuleDeclaration::getAnAncestorByLevel

/**
* Gets an ancestor of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
pub fn getAnAncestorByLevel(self: ModuleDeclaration, level: int) -> Node;

ModuleDeclaration::getChild

/**
* Gets the `i`th child of this node.
*/
pub fn getChild(self: ModuleDeclaration, i: int) -> Node;

ModuleDeclaration::getAChild

/**
* Gets a child node of this node.
*/
pub fn getAChild(self: ModuleDeclaration) -> *Node;

ModuleDeclaration::getStartColumnNumber

pub fn getStartColumnNumber(self: ModuleDeclaration) -> int;

ModuleDeclaration::getStartLineNumber

pub fn getStartLineNumber(self: ModuleDeclaration) -> int;

ModuleDeclaration::getAModifier

/**
* Gets a modifier.
*/
pub fn getAModifier(self: ModuleDeclaration) -> *Modifier;

ModuleDeclaration::getKind

/**
* Get the syntax kind of this node
*/
pub fn getKind(self: ModuleDeclaration) -> int;