IfStatement

/** * An `if` statement */ 

Inherit from Statement

Primary key: id: int

schema IfStatement extends Statement { @primary id: int } 

IfStatement::getSymbol

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

IfStatement::getAnAncestorEnclosingFunction

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

IfStatement::getIndex

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

IfStatement::getParentOid

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

IfStatement::getRelativePath

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

IfStatement::getLastChild

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

IfStatement::getEndColumnNumber

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

IfStatement::getParent

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

IfStatement::getKind

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

IfStatement::getAModifier

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

IfStatement::getADecorator

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

IfStatement::getAComment

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

IfStatement::getChild

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

IfStatement::getAnAncestor

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

IfStatement::getRoot

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

IfStatement::getEnclosingFunction

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

IfStatement::getADescendant

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

IfStatement::getCondition

/** * Gets the condition of this `if` statement. */ 
pub fn getCondition(self: IfStatement) -> Expression; 

IfStatement::getChildCount

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

IfStatement::__all__

Data constraint method.

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

IfStatement::getLocation

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

IfStatement::getElse

/** * Gets the "else" branch of this `if` statement, if any. */ 
pub fn getElse(self: IfStatement) -> Statement; 

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

IfStatement::getDecorator

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

IfStatement::getThen

/** * Gets the "then" branch of this `if` statement. */ 
pub fn getThen(self: IfStatement) -> Statement; 

IfStatement::hasElse

/** * Determine this IfStatement has else expr. */ 
pub fn hasElse(self: IfStatement) -> bool; 

IfStatement::getAChild

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

IfStatement::getStartColumnNumber

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

IfStatement::getStartLineNumber

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

IfStatement::getEndLineNumber

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

IfStatement::getATrailingComment

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

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

IfStatement::getALeadingComment

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

IfStatement::getFile

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

IfStatement::getModifier

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

IfStatement::getText

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