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