VariableStatement
/**
* A variable declaration statement, that is, a `var`, `const` or `let` declaration
*/
Inherit from Statement
Primary key: id: int
schema VariableStatement extends Statement {
@primary id: int
}
VariableStatement::getSymbol
/**
* Gets the symbol associated with this node.
*/
- Parameter
self
:VariableStatement
- Return
Symbol
pub fn getSymbol(self: VariableStatement) -> Symbol;
VariableStatement::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:VariableStatement
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: VariableStatement) -> *FunctionLikeDeclaration;
VariableStatement::getIndex
- Parameter
self
:VariableStatement
- Return
int
pub fn getIndex(self: VariableStatement) -> int;
VariableStatement::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:VariableStatement
- Return
int
pub fn getParentOid(self: VariableStatement) -> int;
VariableStatement::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:VariableStatement
- Return
string
pub fn getRelativePath(self: VariableStatement) -> string;
VariableStatement::getLastChild
/**
* Gets the last child of this node parent.
*/
- Parameter
self
:VariableStatement
- Return
Node
pub fn getLastChild(self: VariableStatement) -> Node;
VariableStatement::getEndColumnNumber
- Parameter
self
:VariableStatement
- Return
int
pub fn getEndColumnNumber(self: VariableStatement) -> int;
VariableStatement::getParent
/**
* Gets the parent node of this node.
*/
- Parameter
self
:VariableStatement
- Return
Node
pub fn getParent(self: VariableStatement) -> Node;
VariableStatement::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:VariableStatement
- Return
int
pub fn getKind(self: VariableStatement) -> int;
VariableStatement::getAModifier
/**
* Gets a modifier.
*/
- Parameter
self
:VariableStatement
- Return
*Modifier
pub fn getAModifier(self: VariableStatement) -> *Modifier;
VariableStatement::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:VariableStatement
- Return
int
pub fn getChildCount(self: VariableStatement) -> int;
VariableStatement::getDecorator
/**
* Gets the `i`th decorator.
*/
- Parameter
self
:VariableStatement
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: VariableStatement, i: int) -> Decorator;
VariableStatement::getChild
/**
* Gets the `i`th child of this node.
*/
- Parameter
self
:VariableStatement
- Parameter
i
:int
- Return
Node
pub fn getChild(self: VariableStatement, i: int) -> Node;
VariableStatement::getAnAncestor
/**
* Gets an ancestor of this node.
*/
- Parameter
self
:VariableStatement
- Return
*Node
pub fn getAnAncestor(self: VariableStatement) -> *Node;
VariableStatement::getStartLineNumber
- Parameter
self
:VariableStatement
- Return
int
pub fn getStartLineNumber(self: VariableStatement) -> int;
VariableStatement::getAChild
/**
* Gets a child node of this node.
*/
- Parameter
self
:VariableStatement
- Return
*Node
pub fn getAChild(self: VariableStatement) -> *Node;
VariableStatement::getStartColumnNumber
- Parameter
self
:VariableStatement
- Return
int
pub fn getStartColumnNumber(self: VariableStatement) -> int;
VariableStatement::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:VariableStatement
- Return
TopLevelDO
pub fn getRoot(self: VariableStatement) -> TopLevelDO;
VariableStatement::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*VariableStatement
pub fn __all__(db: JavascriptDB) -> *VariableStatement;
VariableStatement::getLocation
/**
* Gets the location of this node.
*/
- Parameter
self
:VariableStatement
- Return
Location
pub fn getLocation(self: VariableStatement) -> Location;
VariableStatement::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
:VariableStatement
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: VariableStatement, level: int) -> *Node;
VariableStatement::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:VariableStatement
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: VariableStatement) -> FunctionLikeDeclaration;
VariableStatement::getADescendant
/**
* Gets a descendant of this node.
*/
- Parameter
self
:VariableStatement
- Return
*Node
pub fn getADescendant(self: VariableStatement) -> *Node;
VariableStatement::getEndLineNumber
- Parameter
self
:VariableStatement
- Return
int
pub fn getEndLineNumber(self: VariableStatement) -> int;
VariableStatement::getATrailingComment
/**
* Gets the trailing comments of it
*/
- Parameter
self
:VariableStatement
- Return
*Comment
pub fn getATrailingComment(self: VariableStatement) -> *Comment;
VariableStatement::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
:VariableStatement
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: VariableStatement, level: int) -> Node;
VariableStatement::getALeadingComment
/**
* Gets the leading comments of it
*/
- Parameter
self
:VariableStatement
- Return
*Comment
pub fn getALeadingComment(self: VariableStatement) -> *Comment;
VariableStatement::getFile
/**
* Gets the file of this node.
*/
- Parameter
self
:VariableStatement
- Return
File
pub fn getFile(self: VariableStatement) -> File;
VariableStatement::getModifier
/**
* Gets the `i`th modifier.
*/
- Parameter
self
:VariableStatement
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: VariableStatement, i: int) -> Modifier;
VariableStatement::getVariableDeclarationList
/**
* VariableStatement contains a VariableDeclarationList, get that list
*/
- Parameter
self
:VariableStatement
- Return
VariableDeclarationList
pub fn getVariableDeclarationList(self: VariableStatement) -> VariableDeclarationList;
VariableStatement::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:VariableStatement
- Return
string
pub fn getText(self: VariableStatement) -> string;
VariableStatement::getAComment
/**
* Gets the comments related to it
*/
- Parameter
self
:VariableStatement
- Return
*Comment
pub fn getAComment(self: VariableStatement) -> *Comment;
VariableStatement::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:VariableStatement
- Return
*Decorator
pub fn getADecorator(self: VariableStatement) -> *Decorator;