PercentToken

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

Inherit from Token

Primary key: id: int

schema PercentToken extends Token {
  @primary id: int
}

PercentToken::getSymbol

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

PercentToken::getAnAncestorEnclosingFunction

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

PercentToken::getIndex

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

PercentToken::getParentOid

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

PercentToken::getRelativePath

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

PercentToken::getLastChild

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

PercentToken::getEndColumnNumber

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

PercentToken::getParent

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

PercentToken::getChildCount

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

PercentToken::getDecorator

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

PercentToken::getEndLineNumber

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

PercentToken::getATrailingComment

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

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

PercentToken::getChild

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

PercentToken::getRoot

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

PercentToken::getAChild

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

PercentToken::getStartColumnNumber

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

PercentToken::getStartLineNumber

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

PercentToken::__all__

Data constraint method.

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

PercentToken::getLocation

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

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

PercentToken::getKind

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

PercentToken::getAModifier

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

PercentToken::getAnAncestor

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

PercentToken::getEnclosingFunction

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

PercentToken::getADescendant

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

PercentToken::getALeadingComment

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

PercentToken::getFile

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

PercentToken::getModifier

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

PercentToken::getText

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

PercentToken::getAComment

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

PercentToken::getADecorator

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