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