Parameter
/**
* A parameter declaration.
*/
Inherit from Node
Primary key: id: int
schema Parameter extends Node {
@primary id: int
}
Parameter::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:Parameter
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: Parameter) -> FunctionLikeDeclaration;
Parameter::getADescendant
/**
* Gets a descendant of this node.
*/
pub fn getADescendant(self: Parameter) -> *Node;
Parameter::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:Parameter
- Return
TopLevelDO
pub fn getRoot(self: Parameter) -> TopLevelDO;
Parameter::getAnAncestor
/**
* Gets an ancestor of this node.
*/
pub fn getAnAncestor(self: Parameter) -> *Node;
Parameter::getChild
/**
* Gets the `i`th child of this node.
*/
pub fn getChild(self: Parameter, i: int) -> Node;
Parameter::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:Parameter
- Return
int
pub fn getChildCount(self: Parameter) -> int;
Parameter::getIndex
- Parameter
self
:Parameter
- Return
int
pub fn getIndex(self: Parameter) -> int;
Parameter::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:Parameter
- Return
int
pub fn getParentOid(self: Parameter) -> int;
Parameter::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:Parameter
- Return
string
pub fn getRelativePath(self: Parameter) -> string;
Parameter::getEndColumnNumber
- Parameter
self
:Parameter
- Return
int
pub fn getEndColumnNumber(self: Parameter) -> int;
Parameter::getParent
/**
* Gets the parent node of this node.
*/
pub fn getParent(self: Parameter) -> Node;
Parameter::getFile
/**
* Gets the file of this node.
*/
pub fn getFile(self: Parameter) -> File;
Parameter::getDecorator
/**
* Gets the `i`th decorator.
*/
pub fn getDecorator(self: Parameter, i: int) -> Decorator;
Parameter::getAChild
/**
* Gets a child node of this node.
*/
pub fn getAChild(self: Parameter) -> *Node;
Parameter::getStartColumnNumber
- Parameter
self
:Parameter
- Return
int
pub fn getStartColumnNumber(self: Parameter) -> int;
Parameter::getQuestionToken
/**
* Gets the `?` token of this parameter declaration.
*/
- Parameter
self
:Parameter
- Return
QuestionToken
pub fn getQuestionToken(self: Parameter) -> QuestionToken;
Parameter::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:Parameter
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: Parameter) -> *FunctionLikeDeclaration;
Parameter::getSymbol
/**
* Gets the symbol associated with this node.
*/
pub fn getSymbol(self: Parameter) -> Symbol;
Parameter::isRestParameter
/**
* Determines whether this parameter declaration is a rest parameter.
*/
- Parameter
self
:Parameter
- Return
bool
pub fn isRestParameter(self: Parameter) -> bool;
Parameter::hasInitializer
/**
* Determines whether this parameter has the initializer.
*/
- Parameter
self
:Parameter
- Return
bool
pub fn hasInitializer(self: Parameter) -> bool;
Parameter::getInitializer
/**
* Gets the initializer expression of this parameter.
*/
- Parameter
self
:Parameter
- Return
Expression
pub fn getInitializer(self: Parameter) -> Expression;
Parameter::getModifier
/**
* Gets the `i`th modifier.
*/
pub fn getModifier(self: Parameter, i: int) -> Modifier;
Parameter::isOptionalParameter
/**
* Determines whether this parameter declaration is an optional parameter, which means it has a `?` token.
*/
- Parameter
self
:Parameter
- Return
bool
pub fn isOptionalParameter(self: Parameter) -> bool;
Parameter::getATrailingComment
/**
* Gets the trailing comments of it
*/
pub fn getATrailingComment(self: Parameter) -> *Comment;
Parameter::getEndLineNumber
- Parameter
self
:Parameter
- Return
int
pub fn getEndLineNumber(self: Parameter) -> int;
Parameter::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: Parameter, level: int) -> Node;
Parameter::getLastChild
/**
* Gets the last child of this node parent.
*/
pub fn getLastChild(self: Parameter) -> Node;
Parameter::getNameNode
/**
* Gets the name of this parameter declaration.
*/
- Parameter
self
:Parameter
- Return
BindingName
pub fn getNameNode(self: Parameter) -> BindingName;
Parameter::getType
/**
* Gets the type node of this parameter.
*/
pub fn getType(self: Parameter) -> TypeNode;
Parameter::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:Parameter
- Return
string
pub fn getText(self: Parameter) -> string;
Parameter::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*Parameter
pub fn __all__(db: JavascriptDB) -> *Parameter;
Parameter::getDotDotDotToken
/**
* Gets the `...` token of this parameter declaration.
*/
- Parameter
self
:Parameter
- Return
DotDotDotToken
pub fn getDotDotDotToken(self: Parameter) -> DotDotDotToken;
Parameter::getLocation
/**
* Gets the location of this node.
*/
pub fn getLocation(self: Parameter) -> Location;
Parameter::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: Parameter, level: int) -> *Node;
Parameter::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:Parameter
- Return
int
pub fn getKind(self: Parameter) -> int;
Parameter::getAModifier
/**
* Gets a modifier.
*/
pub fn getAModifier(self: Parameter) -> *Modifier;
Parameter::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:Parameter
- Return
*Decorator
pub fn getADecorator(self: Parameter) -> *Decorator;
Parameter::getAComment
/**
* Gets the comments related to it
*/
pub fn getAComment(self: Parameter) -> *Comment;
Parameter::getALeadingComment
/**
* Gets the leading comments of it
*/
pub fn getALeadingComment(self: Parameter) -> *Comment;
Parameter::getStartLineNumber
- Parameter
self
:Parameter
- Return
int
pub fn getStartLineNumber(self: Parameter) -> int;