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