HeritageToken

/**
* A heritage token, that is an `extends` or `implements` keyword.
*/

Inherit from Node

Primary key: id: int

schema HeritageToken extends Node {
  @primary id: int
}

HeritageToken::getEnclosingFunction

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

HeritageToken::getADescendant

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

HeritageToken::getRoot

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

HeritageToken::getAnAncestor

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

HeritageToken::getChild

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

HeritageToken::getChildCount

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

HeritageToken::getAChild

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

HeritageToken::getStartColumnNumber

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

HeritageToken::getStartLineNumber

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

HeritageToken::getEndLineNumber

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

HeritageToken::getATrailingComment

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

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

HeritageToken::getALeadingComment

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

HeritageToken::getFile

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

HeritageToken::__all__

Data constraint method.

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

HeritageToken::getLocation

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

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

HeritageToken::getModifier

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

HeritageToken::getText

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

HeritageToken::getDecorator

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

HeritageToken::getAComment

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

HeritageToken::getADecorator

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

HeritageToken::getAModifier

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

HeritageToken::getKind

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

HeritageToken::getParent

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

HeritageToken::getEndColumnNumber

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

HeritageToken::getLastChild

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

HeritageToken::getRelativePath

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

HeritageToken::getParentOid

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

HeritageToken::getIndex

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

HeritageToken::getAnAncestorEnclosingFunction

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

HeritageToken::getSymbol

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