SwitchStatement

/**
* An `switch` statement
*/

Inherit from Statement

Primary key: id: int

schema SwitchStatement extends Statement {
  @primary id: int
}

SwitchStatement::getSymbol

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

SwitchStatement::getAnAncestorEnclosingFunction

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

SwitchStatement::getIndex

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

SwitchStatement::getParentOid

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

SwitchStatement::getRelativePath

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

SwitchStatement::getLastChild

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

SwitchStatement::getEndColumnNumber

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

SwitchStatement::getKind

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

SwitchStatement::getAModifier

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

SwitchStatement::getChildCount

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

SwitchStatement::getDecorator

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

SwitchStatement::getChild

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

SwitchStatement::getAnAncestor

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

SwitchStatement::getRoot

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

SwitchStatement::getParent

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

SwitchStatement::getExpression

pub fn getExpression(self: SwitchStatement) -> Expression;

SwitchStatement::getEnclosingFunction

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

SwitchStatement::getADescendant

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

SwitchStatement::getAChild

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

SwitchStatement::getStartColumnNumber

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

SwitchStatement::getStartLineNumber

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

SwitchStatement::__all__

Data constraint method.

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

SwitchStatement::getLocation

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

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

SwitchStatement::getEndLineNumber

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

SwitchStatement::getATrailingComment

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

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

SwitchStatement::getALeadingComment

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

SwitchStatement::getFile

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

SwitchStatement::getADecorator

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

SwitchStatement::getAComment

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

SwitchStatement::getCaseBlock

pub fn getCaseBlock(self: SwitchStatement) -> CaseBlock;

SwitchStatement::getModifier

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

SwitchStatement::getText

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