ModuleDeclaration
/**
* A module declaration.
*/
Inherit from DeclarationStatement
Primary key: id: int
schema ModuleDeclaration extends DeclarationStatement {
@primary id: int
}
ModuleDeclaration::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:ModuleDeclaration
- Return
*Decorator
pub fn getADecorator(self: ModuleDeclaration) -> *Decorator;
ModuleDeclaration::getAComment
/**
* Gets the comments related to it
*/
- Parameter
self
:ModuleDeclaration
- Return
*Comment
pub fn getAComment(self: ModuleDeclaration) -> *Comment;
ModuleDeclaration::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
string
pub fn getText(self: ModuleDeclaration) -> string;
ModuleDeclaration::getModifier
/**
* Gets the `i`th modifier.
*/
- Parameter
self
:ModuleDeclaration
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: ModuleDeclaration, i: int) -> Modifier;
ModuleDeclaration::getFile
/**
* Gets the file of this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
File
pub fn getFile(self: ModuleDeclaration) -> File;
ModuleDeclaration::getALeadingComment
/**
* Gets the leading comments of it
*/
- Parameter
self
:ModuleDeclaration
- Return
*Comment
pub fn getALeadingComment(self: ModuleDeclaration) -> *Comment;
ModuleDeclaration::getADescendant
/**
* Gets a descendant of this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
*Node
pub fn getADescendant(self: ModuleDeclaration) -> *Node;
ModuleDeclaration::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:ModuleDeclaration
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: ModuleDeclaration) -> FunctionLikeDeclaration;
ModuleDeclaration::getAnAncestor
/**
* Gets an ancestor of this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
*Node
pub fn getAnAncestor(self: ModuleDeclaration) -> *Node;
ModuleDeclaration::getDecorator
/**
* Gets the `i`th decorator.
*/
- Parameter
self
:ModuleDeclaration
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: ModuleDeclaration, i: int) -> Decorator;
ModuleDeclaration::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:ModuleDeclaration
- Return
int
pub fn getChildCount(self: ModuleDeclaration) -> int;
ModuleDeclaration::getEndColumnNumber
- Parameter
self
:ModuleDeclaration
- Return
int
pub fn getEndColumnNumber(self: ModuleDeclaration) -> int;
ModuleDeclaration::getParent
/**
* Gets the parent node of this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
Node
pub fn getParent(self: ModuleDeclaration) -> Node;
ModuleDeclaration::getLastChild
/**
* Gets the last child of this node parent.
*/
- Parameter
self
:ModuleDeclaration
- Return
Node
pub fn getLastChild(self: ModuleDeclaration) -> Node;
ModuleDeclaration::getIndex
- Parameter
self
:ModuleDeclaration
- Return
int
pub fn getIndex(self: ModuleDeclaration) -> int;
ModuleDeclaration::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*ModuleDeclaration
pub fn __all__(db: JavascriptDB) -> *ModuleDeclaration;
ModuleDeclaration::getLocation
/**
* Gets the location of this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
Location
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.
*/
- Parameter
self
:ModuleDeclaration
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: ModuleDeclaration, level: int) -> *Node;
ModuleDeclaration::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
string
pub fn getRelativePath(self: ModuleDeclaration) -> string;
ModuleDeclaration::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:ModuleDeclaration
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: ModuleDeclaration) -> *FunctionLikeDeclaration;
ModuleDeclaration::getSymbol
/**
* Gets the symbol associated with this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
Symbol
pub fn getSymbol(self: ModuleDeclaration) -> Symbol;
ModuleDeclaration::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
TopLevelDO
pub fn getRoot(self: ModuleDeclaration) -> TopLevelDO;
ModuleDeclaration::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
int
pub fn getParentOid(self: ModuleDeclaration) -> int;
ModuleDeclaration::getEndLineNumber
- Parameter
self
:ModuleDeclaration
- Return
int
pub fn getEndLineNumber(self: ModuleDeclaration) -> int;
ModuleDeclaration::getATrailingComment
/**
* Gets the trailing comments of it
*/
- Parameter
self
:ModuleDeclaration
- Return
*Comment
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.
*/
- Parameter
self
:ModuleDeclaration
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: ModuleDeclaration, level: int) -> Node;
ModuleDeclaration::getChild
/**
* Gets the `i`th child of this node.
*/
- Parameter
self
:ModuleDeclaration
- Parameter
i
:int
- Return
Node
pub fn getChild(self: ModuleDeclaration, i: int) -> Node;
ModuleDeclaration::getAChild
/**
* Gets a child node of this node.
*/
- Parameter
self
:ModuleDeclaration
- Return
*Node
pub fn getAChild(self: ModuleDeclaration) -> *Node;
ModuleDeclaration::getStartColumnNumber
- Parameter
self
:ModuleDeclaration
- Return
int
pub fn getStartColumnNumber(self: ModuleDeclaration) -> int;
ModuleDeclaration::getStartLineNumber
- Parameter
self
:ModuleDeclaration
- Return
int
pub fn getStartLineNumber(self: ModuleDeclaration) -> int;
ModuleDeclaration::getAModifier
/**
* Gets a modifier.
*/
- Parameter
self
:ModuleDeclaration
- Return
*Modifier
pub fn getAModifier(self: ModuleDeclaration) -> *Modifier;
ModuleDeclaration::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:ModuleDeclaration
- Return
int
pub fn getKind(self: ModuleDeclaration) -> int;