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
*/
pub fn getEnclosingFunction(self: VariableDeclaration) -> FunctionLikeDeclaration;

VariableDeclaration::getADescendant

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

VariableDeclaration::getRoot

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

VariableDeclaration::getAnAncestor

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

VariableDeclaration::getChild

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

VariableDeclaration::getChildCount

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

VariableDeclaration::getAChild

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

VariableDeclaration::getStartColumnNumber

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

VariableDeclaration::getAnAncestorEnclosingFunction

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

VariableDeclaration::getSymbol

/**
* Gets the symbol associated with this node.
*/
pub fn getSymbol(self: VariableDeclaration) -> Symbol;

VariableDeclaration::getIndex

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

VariableDeclaration::getParentOid

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

VariableDeclaration::getEndColumnNumber

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

VariableDeclaration::getParent

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

VariableDeclaration::getFile

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

VariableDeclaration::getRelativePath

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

VariableDeclaration::hasDefiniteAssignmentAssertion

/**
* Determines whether this variable declaration has the definite assignment assertion.
*/
pub fn hasDefiniteAssignmentAssertion(self: VariableDeclaration) -> bool;

VariableDeclaration::getModifierCount

/**
* Gets the number of modifiers.
*/
pub fn getModifierCount(self: VariableDeclaration) -> int;

VariableDeclaration::getLastChild

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

VariableDeclaration::getNameNode

/**
* Gets the declared variable name
*/
pub fn getNameNode(self: VariableDeclaration) -> BindingName;

VariableDeclaration::getModifier

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

VariableDeclaration::getTypeNode

/**
* Gets the type node of the variable declaration. (Optional)
*/
pub fn getTypeNode(self: VariableDeclaration) -> TypeNode;

VariableDeclaration::__all__

Data constraint method.

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

VariableDeclaration::getKind

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

VariableDeclaration::getAModifier

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

VariableDeclaration::getLocation

/**
* Gets the location of this node.
*/
pub fn getLocation(self: VariableDeclaration) -> Location;

VariableDeclaration::getExclamationToken

/**
* Gets the `!` token of this variable declaration. (Optional)
*/
pub fn getExclamationToken(self: VariableDeclaration) -> ExclamationToken;

VariableDeclaration::getDecorator

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

VariableDeclaration::getDecoratorCount

/**
* Gets the number of decorators.
*/
pub fn getDecoratorCount(self: VariableDeclaration) -> int;

VariableDeclaration::getInitializer

/**
* Gets the initialization expression. (Optional)
*/
pub fn getInitializer(self: VariableDeclaration) -> Expression;

VariableDeclaration::hasInitializer

/**
* Determines whether this variable declaration has the initializer.
*/
pub fn hasInitializer(self: VariableDeclaration) -> bool;

VariableDeclaration::getText

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

VariableDeclaration::getADecorator

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

VariableDeclaration::getAComment

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

VariableDeclaration::getALeadingComment

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

VariableDeclaration::getATrailingComment

/**
* Gets the trailing comments of it
*/
pub fn getATrailingComment(self: VariableDeclaration) -> *Comment;

VariableDeclaration::getEndLineNumber

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

VariableDeclaration::getNameNodeIndex

/**
* Get the index of name node.
*/
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.
*/
pub fn getAnAncestorByLevel(self: VariableDeclaration, level: int) -> Node;

VariableDeclaration::getStartLineNumber

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