KeywordToken

/**
* A keyword token.
*/

Inherit from Token

Primary key: id: int

schema KeywordToken extends Token {
  @primary id: int
}

KeywordToken::getSymbol

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

KeywordToken::getAnAncestorEnclosingFunction

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

KeywordToken::getIndex

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

KeywordToken::getParentOid

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

KeywordToken::getRelativePath

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

KeywordToken::getLastChild

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

KeywordToken::getEndColumnNumber

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

KeywordToken::getParent

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

KeywordToken::getChildCount

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

KeywordToken::getDecorator

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

KeywordToken::getEndLineNumber

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

KeywordToken::getATrailingComment

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

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

KeywordToken::getChild

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

KeywordToken::getRoot

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

KeywordToken::getAChild

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

KeywordToken::getStartColumnNumber

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

KeywordToken::getStartLineNumber

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

KeywordToken::__all__

Data constraint method.

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

KeywordToken::getLocation

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

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

KeywordToken::getKind

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

KeywordToken::getAModifier

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

KeywordToken::getAnAncestor

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

KeywordToken::getEnclosingFunction

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

KeywordToken::getADescendant

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

KeywordToken::getALeadingComment

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

KeywordToken::getFile

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

KeywordToken::getModifier

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

KeywordToken::getText

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

KeywordToken::getAComment

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

KeywordToken::getADecorator

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