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