CaseClause
/**
* A `case` clause.
*/
Inherit from Statement
Primary key: id: int
schema CaseClause extends Statement {
@primary id: int
}
CaseClause::getSymbol
/**
* Gets the symbol associated with this node.
*/
- Parameter
self
:CaseClause
- Return
Symbol
pub fn getSymbol(self: CaseClause) -> Symbol;
CaseClause::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:CaseClause
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: CaseClause) -> *FunctionLikeDeclaration;
CaseClause::getIndex
- Parameter
self
:CaseClause
- Return
int
pub fn getIndex(self: CaseClause) -> int;
CaseClause::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:CaseClause
- Return
int
pub fn getParentOid(self: CaseClause) -> int;
CaseClause::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:CaseClause
- Return
string
pub fn getRelativePath(self: CaseClause) -> string;
CaseClause::getLastChild
/**
* Gets the last child of this node parent.
*/
- Parameter
self
:CaseClause
- Return
Node
pub fn getLastChild(self: CaseClause) -> Node;
CaseClause::getEndColumnNumber
- Parameter
self
:CaseClause
- Return
int
pub fn getEndColumnNumber(self: CaseClause) -> int;
CaseClause::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:CaseClause
- Return
int
pub fn getKind(self: CaseClause) -> int;
CaseClause::getAModifier
/**
* Gets a modifier.
*/
- Parameter
self
:CaseClause
- Return
*Modifier
pub fn getAModifier(self: CaseClause) -> *Modifier;
CaseClause::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:CaseClause
- Return
*Decorator
pub fn getADecorator(self: CaseClause) -> *Decorator;
CaseClause::getAComment
/**
* Gets the comments related to it
*/
- Parameter
self
:CaseClause
- Return
*Comment
pub fn getAComment(self: CaseClause) -> *Comment;
CaseClause::getDecorator
/**
* Gets the `i`th decorator.
*/
- Parameter
self
:CaseClause
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: CaseClause, i: int) -> Decorator;
CaseClause::getChild
/**
* Gets the `i`th child of this node.
*/
- Parameter
self
:CaseClause
- Parameter
i
:int
- Return
Node
pub fn getChild(self: CaseClause, i: int) -> Node;
CaseClause::getAnAncestor
/**
* Gets an ancestor of this node.
*/
- Parameter
self
:CaseClause
- Return
*Node
pub fn getAnAncestor(self: CaseClause) -> *Node;
CaseClause::getADescendant
/**
* Gets a descendant of this node.
*/
- Parameter
self
:CaseClause
- Return
*Node
pub fn getADescendant(self: CaseClause) -> *Node;
CaseClause::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:CaseClause
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: CaseClause) -> FunctionLikeDeclaration;
CaseClause::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:CaseClause
- Return
TopLevelDO
pub fn getRoot(self: CaseClause) -> TopLevelDO;
CaseClause::getStatementCount
/**
* Gets the statement count of this CaseClause.
*/
- Parameter
self
:CaseClause
- Return
int
pub fn getStatementCount(self: CaseClause) -> int;
CaseClause::getAStatement
/**
* Gets a statement of this CaseClause.
*/
- Parameter
self
:CaseClause
- Return
*Statement
pub fn getAStatement(self: CaseClause) -> *Statement;
CaseClause::getStatement
/**
* Gets the statement of this CaseClause with index,
* starts from 0.
*/
- Parameter
self
:CaseClause
- Parameter
index
:int
- Return
Statement
pub fn getStatement(self: CaseClause, index: int) -> Statement;
CaseClause::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:CaseClause
- Return
int
pub fn getChildCount(self: CaseClause) -> int;
CaseClause::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*CaseClause
pub fn __all__(db: JavascriptDB) -> *CaseClause;
CaseClause::getLocation
/**
* Gets the location of this node.
*/
- Parameter
self
:CaseClause
- Return
Location
pub fn getLocation(self: CaseClause) -> Location;
CaseClause::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.
*/
- Parameter
self
:CaseClause
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: CaseClause, level: int) -> *Node;
CaseClause::getParent
/**
* Gets the parent node of this node.
*/
- Parameter
self
:CaseClause
- Return
Node
pub fn getParent(self: CaseClause) -> Node;
CaseClause::getExpression
/**
* Gets the expression of this CaseClause.
*/
- Parameter
self
:CaseClause
- Return
Expression
pub fn getExpression(self: CaseClause) -> Expression;
CaseClause::getAChild
/**
* Gets a child node of this node.
*/
- Parameter
self
:CaseClause
- Return
*Node
pub fn getAChild(self: CaseClause) -> *Node;
CaseClause::getStartColumnNumber
- Parameter
self
:CaseClause
- Return
int
pub fn getStartColumnNumber(self: CaseClause) -> int;
CaseClause::getStartLineNumber
- Parameter
self
:CaseClause
- Return
int
pub fn getStartLineNumber(self: CaseClause) -> int;
CaseClause::getEndLineNumber
- Parameter
self
:CaseClause
- Return
int
pub fn getEndLineNumber(self: CaseClause) -> int;
CaseClause::getATrailingComment
/**
* Gets the trailing comments of it
*/
- Parameter
self
:CaseClause
- Return
*Comment
pub fn getATrailingComment(self: CaseClause) -> *Comment;
CaseClause::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.
*/
- Parameter
self
:CaseClause
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: CaseClause, level: int) -> Node;
CaseClause::getALeadingComment
/**
* Gets the leading comments of it
*/
- Parameter
self
:CaseClause
- Return
*Comment
pub fn getALeadingComment(self: CaseClause) -> *Comment;
CaseClause::getFile
/**
* Gets the file of this node.
*/
- Parameter
self
:CaseClause
- Return
File
pub fn getFile(self: CaseClause) -> File;
CaseClause::getModifier
/**
* Gets the `i`th modifier.
*/
- Parameter
self
:CaseClause
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: CaseClause, i: int) -> Modifier;
CaseClause::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:CaseClause
- Return
string
pub fn getText(self: CaseClause) -> string;