FunctionDeclarationStatement

/**
* A function declaration statement.
*/

Inherit from DeclarationStatement

Primary key: id: int

schema FunctionDeclarationStatement extends DeclarationStatement {
  @primary id: int
}

FunctionDeclarationStatement::getADecorator

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

FunctionDeclarationStatement::getAComment

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

FunctionDeclarationStatement::getText

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

FunctionDeclarationStatement::getModifier

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

FunctionDeclarationStatement::getFile

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

FunctionDeclarationStatement::getALeadingComment

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

FunctionDeclarationStatement::getADescendant

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

FunctionDeclarationStatement::getEnclosingFunction

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

FunctionDeclarationStatement::getAnAncestor

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

FunctionDeclarationStatement::getDecorator

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

FunctionDeclarationStatement::getChildCount

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

FunctionDeclarationStatement::getEndColumnNumber

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

FunctionDeclarationStatement::getParent

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

FunctionDeclarationStatement::getLastChild

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

FunctionDeclarationStatement::getIndex

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

FunctionDeclarationStatement::__all__

Data constraint method.

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

FunctionDeclarationStatement::getLocation

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

FunctionDeclarationStatement::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: FunctionDeclarationStatement, level: int) -> *Node;

FunctionDeclarationStatement::getRelativePath

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

FunctionDeclarationStatement::getAnAncestorEnclosingFunction

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

FunctionDeclarationStatement::getSymbol

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

FunctionDeclarationStatement::getRoot

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

FunctionDeclarationStatement::getParentOid

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

FunctionDeclarationStatement::getEndLineNumber

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

FunctionDeclarationStatement::getATrailingComment

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

FunctionDeclarationStatement::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: FunctionDeclarationStatement, level: int) -> Node;

FunctionDeclarationStatement::getChild

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

FunctionDeclarationStatement::getAChild

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

FunctionDeclarationStatement::getStartColumnNumber

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

FunctionDeclarationStatement::getStartLineNumber

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

FunctionDeclarationStatement::getAModifier

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

FunctionDeclarationStatement::getKind

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