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