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.
*/
pub fn getSymbol(self: VariableStatement) -> Symbol;

VariableStatement::getAnAncestorEnclosingFunction

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

VariableStatement::getIndex

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

VariableStatement::getParentOid

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

VariableStatement::getRelativePath

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

VariableStatement::getLastChild

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

VariableStatement::getEndColumnNumber

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

VariableStatement::getParent

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

VariableStatement::getKind

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

VariableStatement::getAModifier

/**
* Gets a modifier.
*/
pub fn getAModifier(self: VariableStatement) -> *Modifier;

VariableStatement::getChildCount

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

VariableStatement::getDecorator

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

VariableStatement::getChild

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

VariableStatement::getAnAncestor

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

VariableStatement::getStartLineNumber

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

VariableStatement::getAChild

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

VariableStatement::getStartColumnNumber

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

VariableStatement::getRoot

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

VariableStatement::__all__

Data constraint method.

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

VariableStatement::getLocation

/**
* Gets the location of this node.
*/
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.
*/
pub fn getADescendantByLevel(self: VariableStatement, level: int) -> *Node;

VariableStatement::getEnclosingFunction

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

VariableStatement::getADescendant

/**
* Gets a descendant of this node. 
*/
pub fn getADescendant(self: VariableStatement) -> *Node;

VariableStatement::getEndLineNumber

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

VariableStatement::getATrailingComment

/**
* Gets the trailing comments of it
*/
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.
*/
pub fn getAnAncestorByLevel(self: VariableStatement, level: int) -> Node;

VariableStatement::getALeadingComment

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

VariableStatement::getFile

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

VariableStatement::getModifier

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

VariableStatement::getVariableDeclarationList

/**
* VariableStatement contains a VariableDeclarationList, get that list
*/
pub fn getVariableDeclarationList(self: VariableStatement) -> VariableDeclarationList;

VariableStatement::getText

/**
* Gets the text of this node.
*/
pub fn getText(self: VariableStatement) -> string;

VariableStatement::getAComment

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

VariableStatement::getADecorator

/**
* Gets a decorator.
*/
pub fn getADecorator(self: VariableStatement) -> *Decorator;