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