Modifier

/**
* A modifier.
*/

Inherit from Token

Primary key: id: int

schema Modifier extends Token {
  @primary id: int
}

Modifier::getSymbol

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

Modifier::getAnAncestorEnclosingFunction

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

Modifier::getIndex

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

Modifier::getParentOid

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

Modifier::getRelativePath

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

Modifier::getLastChild

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

Modifier::getEndColumnNumber

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

Modifier::getParent

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

Modifier::getChildCount

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

Modifier::getDecorator

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

Modifier::getEndLineNumber

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

Modifier::getATrailingComment

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

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

Modifier::getChild

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

Modifier::getRoot

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

Modifier::getAChild

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

Modifier::getStartColumnNumber

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

Modifier::getStartLineNumber

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

Modifier::__all__

Data constraint method.

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

Modifier::getLocation

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

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

Modifier::getKind

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

Modifier::getAModifier

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

Modifier::getAnAncestor

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

Modifier::getEnclosingFunction

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

Modifier::getADescendant

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

Modifier::getALeadingComment

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

Modifier::getFile

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

Modifier::getModifier

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

Modifier::getText

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

Modifier::getAComment

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

Modifier::getADecorator

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