ArrowFunction
/** * A ArrowFunction. */
Inherit from FunctionLikeDeclaration
Primary key: id: int
schema ArrowFunction extends FunctionLikeDeclaration { @primary id: int }
ArrowFunction::getText
/** * Gets the text of this node. */
- Parameter
self
:ArrowFunction
- Return
string
pub fn getText(self: ArrowFunction) -> string;
ArrowFunction::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
:ArrowFunction
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: ArrowFunction, level: int) -> *Node;
ArrowFunction::getLocation
/** * Gets the location of this node. */
- Parameter
self
:ArrowFunction
- Return
Location
pub fn getLocation(self: ArrowFunction) -> Location;
ArrowFunction::getFile
/** * Gets the file of this node. */
- Parameter
self
:ArrowFunction
- Return
File
pub fn getFile(self: ArrowFunction) -> File;
ArrowFunction::getADecorator
/** * Gets a decorator of this FunctionLikeDeclaration. */
- Parameter
self
:ArrowFunction
- Return
*Decorator
pub fn getADecorator(self: ArrowFunction) -> *Decorator;
ArrowFunction::getALeadingComment
/** * Gets the leading comments of it */
- Parameter
self
:ArrowFunction
- Return
*Comment
pub fn getALeadingComment(self: ArrowFunction) -> *Comment;
ArrowFunction::getADescendant
/** * Gets a descendant of this node. */
- Parameter
self
:ArrowFunction
- Return
*Node
pub fn getADescendant(self: ArrowFunction) -> *Node;
ArrowFunction::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
:ArrowFunction
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: ArrowFunction, level: int) -> Node;
ArrowFunction::isGenerator
/** * Determines whether this FunctionLikeDeclaration is a generator. */
- Parameter
self
:ArrowFunction
- Return
bool
pub fn isGenerator(self: ArrowFunction) -> bool;
ArrowFunction::getKind
/** * Get the syntax kind of this node */
- Parameter
self
:ArrowFunction
- Return
int
pub fn getKind(self: ArrowFunction) -> int;
ArrowFunction::getAModifier
/** * Gets a modifier of this FunctionLikeDeclaration. */
- Parameter
self
:ArrowFunction
- Return
*Modifier
pub fn getAModifier(self: ArrowFunction) -> *Modifier;
ArrowFunction::getAComment
/** * Gets the comments related to it */
- Parameter
self
:ArrowFunction
- Return
*Comment
pub fn getAComment(self: ArrowFunction) -> *Comment;
ArrowFunction::getBody
/** * Gets the body of this function-like declaration */
- Parameter
self
:ArrowFunction
- Return
BlockStatement
pub fn getBody(self: ArrowFunction) -> BlockStatement;
ArrowFunction::getTypeParameterCount
/** * Gets the count of type parameters. */
- Parameter
self
:ArrowFunction
- Return
int
pub fn getTypeParameterCount(self: ArrowFunction) -> int;
ArrowFunction::getSymbol
/** * Gets the symbol associated with this node. */
- Parameter
self
:ArrowFunction
- Return
Symbol
pub fn getSymbol(self: ArrowFunction) -> Symbol;
ArrowFunction::getAnAncestorEnclosingFunction
/** * Gets an ancestor enclosing function of it */
- Parameter
self
:ArrowFunction
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: ArrowFunction) -> *FunctionLikeDeclaration;
ArrowFunction::getTypeParameter
/** * Gets the `i`th type parameter. */
- Parameter
self
:ArrowFunction
- Parameter
i
:int
- Return
TypeParameter
pub fn getTypeParameter(self: ArrowFunction, i: int) -> TypeParameter;
ArrowFunction::getIndex
- Parameter
self
:ArrowFunction
- Return
int
pub fn getIndex(self: ArrowFunction) -> int;
ArrowFunction::getAParameter
/** * Gets a parameter. */
- Parameter
self
:ArrowFunction
- Return
*Parameter
pub fn getAParameter(self: ArrowFunction) -> *Parameter;
ArrowFunction::getEnclosingFunction
/** * Gets the enclosing function of it */
- Parameter
self
:ArrowFunction
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: ArrowFunction) -> FunctionLikeDeclaration;
ArrowFunction::getRelativePath
/** * Gets the relative path of this node. */
- Parameter
self
:ArrowFunction
- Return
string
pub fn getRelativePath(self: ArrowFunction) -> string;
ArrowFunction::getParameterCount
/** * Gets the count of parameters. */
- Parameter
self
:ArrowFunction
- Return
int
pub fn getParameterCount(self: ArrowFunction) -> int;
ArrowFunction::getParameterFirstIndex
- Parameter
self
:ArrowFunction
- Return
int
pub fn getParameterFirstIndex(self: ArrowFunction) -> int;
ArrowFunction::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*ArrowFunction
pub fn __all__(db: JavascriptDB) -> *ArrowFunction;
ArrowFunction::hasParameter
/** * Determine this FunctionLikeDeclaration contains any parameter. */
- Parameter
self
:ArrowFunction
- Return
bool
pub fn hasParameter(self: ArrowFunction) -> bool;
ArrowFunction::getATypeParameter
/** * Gets a type parameter. */
- Parameter
self
:ArrowFunction
- Return
*TypeParameter
pub fn getATypeParameter(self: ArrowFunction) -> *TypeParameter;
ArrowFunction::getTypeNode
/** * Gets the type node. */
- Parameter
self
:ArrowFunction
- Return
TypeNode
pub fn getTypeNode(self: ArrowFunction) -> TypeNode;
ArrowFunction::getLastChild
/** * Gets the last child of this node parent. */
- Parameter
self
:ArrowFunction
- Return
Node
pub fn getLastChild(self: ArrowFunction) -> Node;
ArrowFunction::getParent
/** * Gets the parent node of this node. */
- Parameter
self
:ArrowFunction
- Return
Node
pub fn getParent(self: ArrowFunction) -> Node;
ArrowFunction::getEndColumnNumber
- Parameter
self
:ArrowFunction
- Return
int
pub fn getEndColumnNumber(self: ArrowFunction) -> int;
ArrowFunction::getDecorator
/** * Gets the `i`th decorator of this FunctionLikeDeclaration. */
- Parameter
self
:ArrowFunction
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: ArrowFunction, i: int) -> Decorator;
ArrowFunction::getDecoratorCount
/** * Gets the number of decorators of this FunctionLikeDeclaration. */
- Parameter
self
:ArrowFunction
- Return
int
pub fn getDecoratorCount(self: ArrowFunction) -> int;
ArrowFunction::getName
/** * Gets the name of this function-like declaration */
- Parameter
self
:ArrowFunction
- Return
string
pub fn getName(self: ArrowFunction) -> string;
ArrowFunction::getParameter
/** * Gets the `i`th parameter. */
- Parameter
self
:ArrowFunction
- Parameter
i
:int
- Return
Parameter
pub fn getParameter(self: ArrowFunction, i: int) -> Parameter;
ArrowFunction::getParentOid
/** * Gets the parent oid of this node. */
- Parameter
self
:ArrowFunction
- Return
int
pub fn getParentOid(self: ArrowFunction) -> int;
ArrowFunction::getAReturnStatement
- Parameter
self
:ArrowFunction
- Return
*ReturnStatement
pub fn getAReturnStatement(self: ArrowFunction) -> *ReturnStatement;
ArrowFunction::getATrailingComment
/** * Gets the trailing comments of it */
- Parameter
self
:ArrowFunction
- Return
*Comment
pub fn getATrailingComment(self: ArrowFunction) -> *Comment;
ArrowFunction::getAnAncestor
/** * Gets an ancestor of this node. */
- Parameter
self
:ArrowFunction
- Return
*Node
pub fn getAnAncestor(self: ArrowFunction) -> *Node;
ArrowFunction::getChild
/** * Gets the `i`th child of this node. */
- Parameter
self
:ArrowFunction
- Parameter
i
:int
- Return
Node
pub fn getChild(self: ArrowFunction, i: int) -> Node;
ArrowFunction::getACallSite
/** * Gets a call site of this function-like declaration */
- Parameter
self
:ArrowFunction
- Return
*MayInvokeExpression
pub fn getACallSite(self: ArrowFunction) -> *MayInvokeExpression;
ArrowFunction::getModifier
/** * Gets the `i`th modifier of this FunctionLikeDeclaration. */
- Parameter
self
:ArrowFunction
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: ArrowFunction, i: int) -> Modifier;
ArrowFunction::getTypeParameterFirstIndex
- Parameter
self
:ArrowFunction
- Return
int
pub fn getTypeParameterFirstIndex(self: ArrowFunction) -> int;
ArrowFunction::getModifierCount
/** * Gets the number of modifiers of this FunctionLikeDeclaration. */
- Parameter
self
:ArrowFunction
- Return
int
pub fn getModifierCount(self: ArrowFunction) -> int;
ArrowFunction::getCyclomaticComplexity
/** * Gets the cyclomatic complexity of this function-like declaration */
- Parameter
self
:ArrowFunction
- Return
int
pub fn getCyclomaticComplexity(self: ArrowFunction) -> int;
ArrowFunction::getRoot
/** * Gets the root top-level of this node. */
- Parameter
self
:ArrowFunction
- Return
TopLevelDO
pub fn getRoot(self: ArrowFunction) -> TopLevelDO;
ArrowFunction::getNameNode
/** * Gets the name node, which is a PropertyName. */
- Parameter
self
:ArrowFunction
- Return
PropertyName
pub fn getNameNode(self: ArrowFunction) -> PropertyName;
ArrowFunction::getChildCount
/** * Gets the number of child nodes. */
- Parameter
self
:ArrowFunction
- Return
int
pub fn getChildCount(self: ArrowFunction) -> int;
ArrowFunction::getAReturnedExpression
- Parameter
self
:ArrowFunction
- Return
*Expression
pub fn getAReturnedExpression(self: ArrowFunction) -> *Expression;
ArrowFunction::getAChild
/** * Gets a child node of this node. */
- Parameter
self
:ArrowFunction
- Return
*Node
pub fn getAChild(self: ArrowFunction) -> *Node;
ArrowFunction::getStartColumnNumber
- Parameter
self
:ArrowFunction
- Return
int
pub fn getStartColumnNumber(self: ArrowFunction) -> int;
ArrowFunction::getStartLineNumber
- Parameter
self
:ArrowFunction
- Return
int
pub fn getStartLineNumber(self: ArrowFunction) -> int;
ArrowFunction::getEndLineNumber
- Parameter
self
:ArrowFunction
- Return
int
pub fn getEndLineNumber(self: ArrowFunction) -> int;