SlashToken

/**
* A `/` token.
*/

Inherit from Token

Primary key: id: int

schema SlashToken extends Token {
  @primary id: int
}

SlashToken::getSymbol

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

SlashToken::getAnAncestorEnclosingFunction

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

SlashToken::getIndex

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

SlashToken::getParentOid

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

SlashToken::getRelativePath

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

SlashToken::getLastChild

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

SlashToken::getEndColumnNumber

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

SlashToken::getParent

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

SlashToken::getChildCount

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

SlashToken::getDecorator

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

SlashToken::getEndLineNumber

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

SlashToken::getATrailingComment

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

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

SlashToken::getChild

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

SlashToken::getRoot

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

SlashToken::getAChild

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

SlashToken::getStartColumnNumber

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

SlashToken::getStartLineNumber

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

SlashToken::__all__

Data constraint method.

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

SlashToken::getLocation

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

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

SlashToken::getKind

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

SlashToken::getAModifier

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

SlashToken::getAnAncestor

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

SlashToken::getEnclosingFunction

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

SlashToken::getADescendant

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

SlashToken::getALeadingComment

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

SlashToken::getFile

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

SlashToken::getModifier

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

SlashToken::getText

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

SlashToken::getAComment

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

SlashToken::getADecorator

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