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