ClassElement

/**
* A ClassElement
*/

Inherit from Node

Primary key: id: int

schema ClassElement extends Node {
  @primary id: int
}

ClassElement::getEnclosingFunction

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

ClassElement::getADescendant

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

ClassElement::getRoot

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

ClassElement::getAnAncestor

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

ClassElement::getChild

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

ClassElement::getChildCount

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

ClassElement::getAChild

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

ClassElement::getStartColumnNumber

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

ClassElement::getStartLineNumber

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

ClassElement::getEndLineNumber

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

ClassElement::getATrailingComment

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

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

ClassElement::getALeadingComment

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

ClassElement::getFile

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

ClassElement::__all__

Data constraint method.

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

ClassElement::getLocation

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

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

ClassElement::getModifier

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

ClassElement::getText

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

ClassElement::getDecorator

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

ClassElement::getAComment

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

ClassElement::getADecorator

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

ClassElement::getAModifier

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

ClassElement::getKind

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

ClassElement::getParent

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

ClassElement::getEndColumnNumber

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

ClassElement::getLastChild

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

ClassElement::getRelativePath

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

ClassElement::getParentOid

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

ClassElement::getIndex

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

ClassElement::getAnAncestorEnclosingFunction

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

ClassElement::getSymbol

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