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 */
- Parameter
self
:BarToken
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: BarToken) -> *FunctionLikeDeclaration;
BarToken::getIndex
- Parameter
self
:BarToken
- Return
int
pub fn getIndex(self: BarToken) -> int;
BarToken::getParentOid
/** * Gets the parent oid of this node. */
- Parameter
self
:BarToken
- Return
int
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
- Parameter
self
:BarToken
- Return
int
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. */
- Parameter
self
:BarToken
- Return
int
pub fn getChildCount(self: BarToken) -> int;
BarToken::getDecorator
/** * Gets the `i`th decorator. */
pub fn getDecorator(self: BarToken, i: int) -> Decorator;
BarToken::getEndLineNumber
- Parameter
self
:BarToken
- Return
int
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. */
- Parameter
self
:BarToken
- Return
TopLevelDO
pub fn getRoot(self: BarToken) -> TopLevelDO;
BarToken::getAChild
/** * Gets a child node of this node. */
pub fn getAChild(self: BarToken) -> *Node;
BarToken::getStartColumnNumber
- Parameter
self
:BarToken
- Return
int
pub fn getStartColumnNumber(self: BarToken) -> int;
BarToken::getStartLineNumber
- Parameter
self
:BarToken
- Return
int
pub fn getStartLineNumber(self: BarToken) -> int;
BarToken::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*BarToken
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 */
- Parameter
self
:BarToken
- Return
int
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 */
- Parameter
self
:BarToken
- Return
FunctionLikeDeclaration
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. */
- Parameter
self
:BarToken
- Return
*Decorator
pub fn getADecorator(self: BarToken) -> *Decorator;