BarToken

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

Inherit from Token

Primary key: id: int

schema BarToken extends Token {
  @primary id: int
}

BarToken::getSymbol

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

BarToken::getAnAncestorEnclosingFunction

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

BarToken::getIndex

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

BarToken::getParentOid

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

BarToken::getRelativePath

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

BarToken::getLastChild

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

BarToken::getEndColumnNumber

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

BarToken::getParent

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

BarToken::getChildCount

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

BarToken::getDecorator

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

BarToken::getEndLineNumber

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

BarToken::getATrailingComment

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

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

BarToken::getChild

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

BarToken::getRoot

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

BarToken::getAChild

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

BarToken::getStartColumnNumber

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

BarToken::getStartLineNumber

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

BarToken::__all__

Data constraint method.

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

BarToken::getLocation

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

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

BarToken::getKind

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

BarToken::getAModifier

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

BarToken::getAnAncestor

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

BarToken::getEnclosingFunction

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

BarToken::getADescendant

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

BarToken::getALeadingComment

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

BarToken::getFile

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

BarToken::getModifier

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

BarToken::getText

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

BarToken::getAComment

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

BarToken::getADecorator

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