DefaultClause

/**
* A `default` clause.
*/

Inherit from Statement

Primary key: id: int

schema DefaultClause extends Statement {
  @primary id: int
}

DefaultClause::getSymbol

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

DefaultClause::getAnAncestorEnclosingFunction

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

DefaultClause::getIndex

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

DefaultClause::getParentOid

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

DefaultClause::getRelativePath

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

DefaultClause::getLastChild

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

DefaultClause::getEndColumnNumber

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

DefaultClause::getParent

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

DefaultClause::getKind

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

DefaultClause::getAModifier

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

DefaultClause::getADecorator

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

DefaultClause::getAComment

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

DefaultClause::getDecorator

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

DefaultClause::getChild

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

DefaultClause::getAnAncestor

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

DefaultClause::getChildCount

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

DefaultClause::getStatement

/**
* Gets the statement of this DefaultClause with index,
* starts from 0.
*/
pub fn getStatement(self: DefaultClause, index: int) -> Statement;

DefaultClause::getAStatement

/**
* Gets a statement of this DefaultClause.
*/
pub fn getAStatement(self: DefaultClause) -> *Statement;

DefaultClause::__all__

Data constraint method.

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

DefaultClause::getLocation

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

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

DefaultClause::getRoot

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

DefaultClause::getStatementCount

/**
* Gets the statement count of this DefaultClause.
*/
pub fn getStatementCount(self: DefaultClause) -> int;

DefaultClause::getADescendant

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

DefaultClause::getEnclosingFunction

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

DefaultClause::getAChild

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

DefaultClause::getStartColumnNumber

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

DefaultClause::getStartLineNumber

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

DefaultClause::getEndLineNumber

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

DefaultClause::getATrailingComment

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

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

DefaultClause::getALeadingComment

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

DefaultClause::getFile

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

DefaultClause::getModifier

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

DefaultClause::getText

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