FunctionLike

/**
* A FunctionLike. It includes FunctionLikeDeclaration, FunctionType and Signature
*/

Inherit from Node

Primary key: id: int

schema FunctionLike extends Node {
  @primary id: int
}

FunctionLike::getEnclosingFunction

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

FunctionLike::getADescendant

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

FunctionLike::getRoot

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

FunctionLike::getAnAncestor

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

FunctionLike::getChild

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

FunctionLike::getChildCount

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

FunctionLike::getAChild

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

FunctionLike::getStartColumnNumber

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

FunctionLike::getStartLineNumber

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

FunctionLike::getEndLineNumber

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

FunctionLike::getATrailingComment

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

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

FunctionLike::getALeadingComment

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

FunctionLike::getFile

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

FunctionLike::__all__

Data constraint method.

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

FunctionLike::getLocation

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

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

FunctionLike::getModifier

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

FunctionLike::getText

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

FunctionLike::getDecorator

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

FunctionLike::getAComment

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

FunctionLike::getADecorator

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

FunctionLike::getAModifier

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

FunctionLike::getKind

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

FunctionLike::getParent

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

FunctionLike::getEndColumnNumber

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

FunctionLike::getLastChild

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

FunctionLike::getRelativePath

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

FunctionLike::getParentOid

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

FunctionLike::getIndex

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

FunctionLike::getAnAncestorEnclosingFunction

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

FunctionLike::getSymbol

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