TypePredicateNode

/**
* A type predicate.
*/

Inherit from TypeNode

Primary key: id: int

schema TypePredicateNode extends TypeNode {
  @primary id: int
}

TypePredicateNode::getSymbol

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

TypePredicateNode::getAnAncestorEnclosingFunction

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

TypePredicateNode::getIndex

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

TypePredicateNode::getParentOid

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

TypePredicateNode::getRelativePath

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

TypePredicateNode::getLastChild

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

TypePredicateNode::getEndColumnNumber

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

TypePredicateNode::getParent

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

TypePredicateNode::getChildCount

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

TypePredicateNode::getDecorator

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

TypePredicateNode::getEndLineNumber

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

TypePredicateNode::getATrailingComment

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

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

TypePredicateNode::getChild

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

TypePredicateNode::getRoot

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

TypePredicateNode::getAChild

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

TypePredicateNode::getStartColumnNumber

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

TypePredicateNode::getStartLineNumber

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

TypePredicateNode::__all__

Data constraint method.

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

TypePredicateNode::getLocation

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

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

TypePredicateNode::getKind

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

TypePredicateNode::getAModifier

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

TypePredicateNode::getAnAncestor

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

TypePredicateNode::getEnclosingFunction

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

TypePredicateNode::getADescendant

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

TypePredicateNode::getALeadingComment

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

TypePredicateNode::getFile

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

TypePredicateNode::getModifier

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

TypePredicateNode::getText

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

TypePredicateNode::getAComment

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

TypePredicateNode::getADecorator

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