VariableDeclaration
/**
* A variable declaration
*/
Inherit from Node
Primary key: id: int
schema VariableDeclaration extends Node {
@primary id: int
}
VariableDeclaration::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:VariableDeclaration
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: VariableDeclaration) -> FunctionLikeDeclaration;
VariableDeclaration::getADescendant
/**
* Gets a descendant of this node.
*/
- Parameter
self
:VariableDeclaration
- Return
*Node
pub fn getADescendant(self: VariableDeclaration) -> *Node;
VariableDeclaration::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:VariableDeclaration
- Return
TopLevelDO
pub fn getRoot(self: VariableDeclaration) -> TopLevelDO;
VariableDeclaration::getAnAncestor
/**
* Gets an ancestor of this node.
*/
- Parameter
self
:VariableDeclaration
- Return
*Node
pub fn getAnAncestor(self: VariableDeclaration) -> *Node;
VariableDeclaration::getChild
/**
* Gets the `i`th child of this node.
*/
- Parameter
self
:VariableDeclaration
- Parameter
i
:int
- Return
Node
pub fn getChild(self: VariableDeclaration, i: int) -> Node;
VariableDeclaration::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getChildCount(self: VariableDeclaration) -> int;
VariableDeclaration::getAChild
/**
* Gets a child node of this node.
*/
- Parameter
self
:VariableDeclaration
- Return
*Node
pub fn getAChild(self: VariableDeclaration) -> *Node;
VariableDeclaration::getStartColumnNumber
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getStartColumnNumber(self: VariableDeclaration) -> int;
VariableDeclaration::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:VariableDeclaration
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: VariableDeclaration) -> *FunctionLikeDeclaration;
VariableDeclaration::getSymbol
/**
* Gets the symbol associated with this node.
*/
- Parameter
self
:VariableDeclaration
- Return
Symbol
pub fn getSymbol(self: VariableDeclaration) -> Symbol;
VariableDeclaration::getIndex
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getIndex(self: VariableDeclaration) -> int;
VariableDeclaration::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getParentOid(self: VariableDeclaration) -> int;
VariableDeclaration::getEndColumnNumber
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getEndColumnNumber(self: VariableDeclaration) -> int;
VariableDeclaration::getParent
/**
* Gets the parent node of this node.
*/
- Parameter
self
:VariableDeclaration
- Return
Node
pub fn getParent(self: VariableDeclaration) -> Node;
VariableDeclaration::getFile
/**
* Gets the file of this node.
*/
- Parameter
self
:VariableDeclaration
- Return
File
pub fn getFile(self: VariableDeclaration) -> File;
VariableDeclaration::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
:VariableDeclaration
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: VariableDeclaration, level: int) -> *Node;
VariableDeclaration::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:VariableDeclaration
- Return
string
pub fn getRelativePath(self: VariableDeclaration) -> string;
VariableDeclaration::hasDefiniteAssignmentAssertion
/**
* Determines whether this variable declaration has the definite assignment assertion.
*/
- Parameter
self
:VariableDeclaration
- Return
bool
pub fn hasDefiniteAssignmentAssertion(self: VariableDeclaration) -> bool;
VariableDeclaration::getModifierCount
/**
* Gets the number of modifiers.
*/
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getModifierCount(self: VariableDeclaration) -> int;
VariableDeclaration::getLastChild
/**
* Gets the last child of this node parent.
*/
- Parameter
self
:VariableDeclaration
- Return
Node
pub fn getLastChild(self: VariableDeclaration) -> Node;
VariableDeclaration::getNameNode
/**
* Gets the declared variable name
*/
- Parameter
self
:VariableDeclaration
- Return
BindingName
pub fn getNameNode(self: VariableDeclaration) -> BindingName;
VariableDeclaration::getModifier
/**
* Gets the `i`th modifier.
*/
- Parameter
self
:VariableDeclaration
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: VariableDeclaration, i: int) -> Modifier;
VariableDeclaration::getTypeNode
/**
* Gets the type node of the variable declaration. (Optional)
*/
- Parameter
self
:VariableDeclaration
- Return
TypeNode
pub fn getTypeNode(self: VariableDeclaration) -> TypeNode;
VariableDeclaration::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*VariableDeclaration
pub fn __all__(db: JavascriptDB) -> *VariableDeclaration;
VariableDeclaration::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getKind(self: VariableDeclaration) -> int;
VariableDeclaration::getAModifier
/**
* Gets a modifier.
*/
- Parameter
self
:VariableDeclaration
- Return
*Modifier
pub fn getAModifier(self: VariableDeclaration) -> *Modifier;
VariableDeclaration::getLocation
/**
* Gets the location of this node.
*/
- Parameter
self
:VariableDeclaration
- Return
Location
pub fn getLocation(self: VariableDeclaration) -> Location;
VariableDeclaration::getExclamationToken
/**
* Gets the `!` token of this variable declaration. (Optional)
*/
- Parameter
self
:VariableDeclaration
- Return
ExclamationToken
pub fn getExclamationToken(self: VariableDeclaration) -> ExclamationToken;
VariableDeclaration::getDecorator
/**
* Gets the `i`th decorator.
*/
- Parameter
self
:VariableDeclaration
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: VariableDeclaration, i: int) -> Decorator;
VariableDeclaration::getDecoratorCount
/**
* Gets the number of decorators.
*/
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getDecoratorCount(self: VariableDeclaration) -> int;
VariableDeclaration::getInitializer
/**
* Gets the initialization expression. (Optional)
*/
- Parameter
self
:VariableDeclaration
- Return
Expression
pub fn getInitializer(self: VariableDeclaration) -> Expression;
VariableDeclaration::hasInitializer
/**
* Determines whether this variable declaration has the initializer.
*/
- Parameter
self
:VariableDeclaration
- Return
bool
pub fn hasInitializer(self: VariableDeclaration) -> bool;
VariableDeclaration::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:VariableDeclaration
- Return
string
pub fn getText(self: VariableDeclaration) -> string;
VariableDeclaration::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:VariableDeclaration
- Return
*Decorator
pub fn getADecorator(self: VariableDeclaration) -> *Decorator;
VariableDeclaration::getAComment
/**
* Gets the comments related to it
*/
- Parameter
self
:VariableDeclaration
- Return
*Comment
pub fn getAComment(self: VariableDeclaration) -> *Comment;
VariableDeclaration::getALeadingComment
/**
* Gets the leading comments of it
*/
- Parameter
self
:VariableDeclaration
- Return
*Comment
pub fn getALeadingComment(self: VariableDeclaration) -> *Comment;
VariableDeclaration::getATrailingComment
/**
* Gets the trailing comments of it
*/
- Parameter
self
:VariableDeclaration
- Return
*Comment
pub fn getATrailingComment(self: VariableDeclaration) -> *Comment;
VariableDeclaration::getEndLineNumber
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getEndLineNumber(self: VariableDeclaration) -> int;
VariableDeclaration::getNameNodeIndex
/**
* Get the index of name node.
*/
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getNameNodeIndex(self: VariableDeclaration) -> int;
VariableDeclaration::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
:VariableDeclaration
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: VariableDeclaration, level: int) -> Node;
VariableDeclaration::getStartLineNumber
- Parameter
self
:VariableDeclaration
- Return
int
pub fn getStartLineNumber(self: VariableDeclaration) -> int;