BlockStatement

/**
* A block of statements.
*/

Inherit from Statement

Primary key: id: int

schema BlockStatement extends Statement {
  @primary id: int
}

BlockStatement::getSymbol

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

BlockStatement::getAnAncestorEnclosingFunction

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

BlockStatement::getIndex

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

BlockStatement::getParentOid

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

BlockStatement::getRelativePath

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

BlockStatement::getLastChild

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

BlockStatement::getEndColumnNumber

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

BlockStatement::getParent

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

BlockStatement::getKind

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

BlockStatement::getAModifier

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

BlockStatement::getADecorator

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

BlockStatement::getAComment

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

BlockStatement::getDecorator

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

BlockStatement::getChild

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

BlockStatement::getAnAncestor

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

BlockStatement::getChildCount

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

BlockStatement::getStatement

/**
* Gets the `i`th statement in this block.
*/
pub fn getStatement(self: BlockStatement, i: int) -> Statement;

BlockStatement::getAStatement

/** 
* Gets a statement in this block.
*/
pub fn getAStatement(self: BlockStatement) -> *Statement;

BlockStatement::__all__

Data constraint method.

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

BlockStatement::getLocation

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

BlockStatement::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: BlockStatement, level: int) -> *Node;

BlockStatement::getRoot

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

BlockStatement::getStatementCount

/**
* Gets the number of statements in this block.
*/
pub fn getStatementCount(self: BlockStatement) -> int;

BlockStatement::getADescendant

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

BlockStatement::getEnclosingFunction

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

BlockStatement::getAChild

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

BlockStatement::getStartColumnNumber

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

BlockStatement::getStartLineNumber

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

BlockStatement::getEndLineNumber

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

BlockStatement::getATrailingComment

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

BlockStatement::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: BlockStatement, level: int) -> Node;

BlockStatement::getALeadingComment

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

BlockStatement::getFile

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

BlockStatement::getModifier

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

BlockStatement::getText

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