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.
*/
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.
*/
pub fn getADescendantByLevel(self: FunctionExpressionDeclaration, level: int) -> *Node;

FunctionExpressionDeclaration::getLocation

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

FunctionExpressionDeclaration::getFile

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

FunctionExpressionDeclaration::getADecorator

/**
* Gets a decorator of this FunctionLikeDeclaration.
*/
pub fn getADecorator(self: FunctionExpressionDeclaration) -> *Decorator;

FunctionExpressionDeclaration::getALeadingComment

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

FunctionExpressionDeclaration::getADescendant

/**
* Gets a descendant of this 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.
*/
pub fn getAnAncestorByLevel(self: FunctionExpressionDeclaration, level: int) -> Node;

FunctionExpressionDeclaration::isGenerator

/**
* Determines whether this FunctionLikeDeclaration is a generator.
*/
pub fn isGenerator(self: FunctionExpressionDeclaration) -> bool;

FunctionExpressionDeclaration::getKind

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

FunctionExpressionDeclaration::getAModifier

/**
* Gets a modifier of this FunctionLikeDeclaration.
*/
pub fn getAModifier(self: FunctionExpressionDeclaration) -> *Modifier;

FunctionExpressionDeclaration::getAComment

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

FunctionExpressionDeclaration::getBody

/**
* Gets the body of this function-like declaration
*/
pub fn getBody(self: FunctionExpressionDeclaration) -> BlockStatement;

FunctionExpressionDeclaration::getTypeParameterCount

/**
* Gets the count of type parameters.
*/
pub fn getTypeParameterCount(self: FunctionExpressionDeclaration) -> int;

FunctionExpressionDeclaration::getSymbol

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

FunctionExpressionDeclaration::getAnAncestorEnclosingFunction

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

FunctionExpressionDeclaration::getTypeParameter

/**
* Gets the `i`th type parameter.
*/
pub fn getTypeParameter(self: FunctionExpressionDeclaration, i: int) -> TypeParameter;

FunctionExpressionDeclaration::getIndex

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

FunctionExpressionDeclaration::getAParameter

/**
* Gets a parameter.
*/
pub fn getAParameter(self: FunctionExpressionDeclaration) -> *Parameter;

FunctionExpressionDeclaration::getEnclosingFunction

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

FunctionExpressionDeclaration::getRelativePath

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

FunctionExpressionDeclaration::getParameterCount

/**
* Gets the count of parameters.
*/
pub fn getParameterCount(self: FunctionExpressionDeclaration) -> int;

FunctionExpressionDeclaration::getParameterFirstIndex

pub fn getParameterFirstIndex(self: FunctionExpressionDeclaration) -> int;

FunctionExpressionDeclaration::__all__

Data constraint method.

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

FunctionExpressionDeclaration::hasParameter

/**
* Determine this FunctionLikeDeclaration contains any parameter.
*/
pub fn hasParameter(self: FunctionExpressionDeclaration) -> bool;

FunctionExpressionDeclaration::getATypeParameter

/**
* Gets a type parameter.
*/
pub fn getATypeParameter(self: FunctionExpressionDeclaration) -> *TypeParameter;

FunctionExpressionDeclaration::getTypeNode

/**
* Gets the type node.
*/
pub fn getTypeNode(self: FunctionExpressionDeclaration) -> TypeNode;

FunctionExpressionDeclaration::getLastChild

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

FunctionExpressionDeclaration::getParent

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

FunctionExpressionDeclaration::getEndColumnNumber

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

FunctionExpressionDeclaration::getDecorator

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

FunctionExpressionDeclaration::getDecoratorCount

/**
* Gets the number of decorators of this FunctionLikeDeclaration.
*/
pub fn getDecoratorCount(self: FunctionExpressionDeclaration) -> int;

FunctionExpressionDeclaration::getName

/**
* Gets the name of this function-like declaration
*/
pub fn getName(self: FunctionExpressionDeclaration) -> string;

FunctionExpressionDeclaration::getParameter

/**
* Gets the `i`th parameter.
*/
pub fn getParameter(self: FunctionExpressionDeclaration, i: int) -> Parameter;

FunctionExpressionDeclaration::getParentOid

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

FunctionExpressionDeclaration::getAReturnStatement

pub fn getAReturnStatement(self: FunctionExpressionDeclaration) -> *ReturnStatement;

FunctionExpressionDeclaration::getATrailingComment

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

FunctionExpressionDeclaration::getAnAncestor

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

FunctionExpressionDeclaration::getChild

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

FunctionExpressionDeclaration::getACallSite

/**
* Gets a call site of this function-like declaration
*/
pub fn getACallSite(self: FunctionExpressionDeclaration) -> *MayInvokeExpression;

FunctionExpressionDeclaration::getModifier

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

FunctionExpressionDeclaration::getTypeParameterFirstIndex

pub fn getTypeParameterFirstIndex(self: FunctionExpressionDeclaration) -> int;

FunctionExpressionDeclaration::getModifierCount

/**
* Gets the number of modifiers of this FunctionLikeDeclaration.
*/
pub fn getModifierCount(self: FunctionExpressionDeclaration) -> int;

FunctionExpressionDeclaration::getCyclomaticComplexity

/**
* Gets the cyclomatic complexity of this function-like declaration
*/
pub fn getCyclomaticComplexity(self: FunctionExpressionDeclaration) -> int;

FunctionExpressionDeclaration::getRoot

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

FunctionExpressionDeclaration::getNameNode

/**
* Gets the name node, which is a PropertyName.
*/
pub fn getNameNode(self: FunctionExpressionDeclaration) -> PropertyName;

FunctionExpressionDeclaration::getChildCount

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

FunctionExpressionDeclaration::getAReturnedExpression

pub fn getAReturnedExpression(self: FunctionExpressionDeclaration) -> *Expression;

FunctionExpressionDeclaration::getAChild

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

FunctionExpressionDeclaration::getStartColumnNumber

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

FunctionExpressionDeclaration::getStartLineNumber

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

FunctionExpressionDeclaration::getEndLineNumber

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