ClassLikeDeclaration
/**
* A ClassLikeDeclaration
*/
Inherit from Node
Primary key: id: int
schema ClassLikeDeclaration extends Node {
@primary id: int
}
ClassLikeDeclaration::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:ClassLikeDeclaration
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: ClassLikeDeclaration) -> FunctionLikeDeclaration;
ClassLikeDeclaration::getADescendant
/**
* Gets a descendant of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
*Node
pub fn getADescendant(self: ClassLikeDeclaration) -> *Node;
ClassLikeDeclaration::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
TopLevelDO
pub fn getRoot(self: ClassLikeDeclaration) -> TopLevelDO;
ClassLikeDeclaration::getAnAncestor
/**
* Gets an ancestor of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
*Node
pub fn getAnAncestor(self: ClassLikeDeclaration) -> *Node;
ClassLikeDeclaration::getChild
/**
* Gets the `i`th child of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Parameter
i
:int
- Return
Node
pub fn getChild(self: ClassLikeDeclaration, i: int) -> Node;
ClassLikeDeclaration::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
int
pub fn getChildCount(self: ClassLikeDeclaration) -> int;
ClassLikeDeclaration::getAChild
/**
* Gets a child node of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
*Node
pub fn getAChild(self: ClassLikeDeclaration) -> *Node;
ClassLikeDeclaration::getStartColumnNumber
- Parameter
self
:ClassLikeDeclaration
- Return
int
pub fn getStartColumnNumber(self: ClassLikeDeclaration) -> int;
ClassLikeDeclaration::getStartLineNumber
- Parameter
self
:ClassLikeDeclaration
- Return
int
pub fn getStartLineNumber(self: ClassLikeDeclaration) -> int;
ClassLikeDeclaration::getEndLineNumber
- Parameter
self
:ClassLikeDeclaration
- Return
int
pub fn getEndLineNumber(self: ClassLikeDeclaration) -> int;
ClassLikeDeclaration::getATrailingComment
/**
* Gets the trailing comments of it
*/
- Parameter
self
:ClassLikeDeclaration
- Return
*Comment
pub fn getATrailingComment(self: ClassLikeDeclaration) -> *Comment;
ClassLikeDeclaration::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.
*/
- Parameter
self
:ClassLikeDeclaration
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: ClassLikeDeclaration, level: int) -> Node;
ClassLikeDeclaration::getALeadingComment
/**
* Gets the leading comments of it
*/
- Parameter
self
:ClassLikeDeclaration
- Return
*Comment
pub fn getALeadingComment(self: ClassLikeDeclaration) -> *Comment;
ClassLikeDeclaration::getFile
/**
* Gets the file of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
File
pub fn getFile(self: ClassLikeDeclaration) -> File;
ClassLikeDeclaration::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*ClassLikeDeclaration
pub fn __all__(db: JavascriptDB) -> *ClassLikeDeclaration;
ClassLikeDeclaration::getLocation
/**
* Gets the location of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
Location
pub fn getLocation(self: ClassLikeDeclaration) -> Location;
ClassLikeDeclaration::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.
*/
- Parameter
self
:ClassLikeDeclaration
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: ClassLikeDeclaration, level: int) -> *Node;
ClassLikeDeclaration::getModifier
/**
* Gets the `i`th modifier.
*/
- Parameter
self
:ClassLikeDeclaration
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: ClassLikeDeclaration, i: int) -> Modifier;
ClassLikeDeclaration::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
string
pub fn getText(self: ClassLikeDeclaration) -> string;
ClassLikeDeclaration::getDecorator
/**
* Gets the `i`th decorator.
*/
- Parameter
self
:ClassLikeDeclaration
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: ClassLikeDeclaration, i: int) -> Decorator;
ClassLikeDeclaration::getAComment
/**
* Gets the comments related to it
*/
- Parameter
self
:ClassLikeDeclaration
- Return
*Comment
pub fn getAComment(self: ClassLikeDeclaration) -> *Comment;
ClassLikeDeclaration::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
*Decorator
pub fn getADecorator(self: ClassLikeDeclaration) -> *Decorator;
ClassLikeDeclaration::getAModifier
/**
* Gets a modifier.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
*Modifier
pub fn getAModifier(self: ClassLikeDeclaration) -> *Modifier;
ClassLikeDeclaration::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:ClassLikeDeclaration
- Return
int
pub fn getKind(self: ClassLikeDeclaration) -> int;
ClassLikeDeclaration::getParent
/**
* Gets the parent node of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
Node
pub fn getParent(self: ClassLikeDeclaration) -> Node;
ClassLikeDeclaration::getEndColumnNumber
- Parameter
self
:ClassLikeDeclaration
- Return
int
pub fn getEndColumnNumber(self: ClassLikeDeclaration) -> int;
ClassLikeDeclaration::getLastChild
/**
* Gets the last child of this node parent.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
Node
pub fn getLastChild(self: ClassLikeDeclaration) -> Node;
ClassLikeDeclaration::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
string
pub fn getRelativePath(self: ClassLikeDeclaration) -> string;
ClassLikeDeclaration::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
int
pub fn getParentOid(self: ClassLikeDeclaration) -> int;
ClassLikeDeclaration::getIndex
- Parameter
self
:ClassLikeDeclaration
- Return
int
pub fn getIndex(self: ClassLikeDeclaration) -> int;
ClassLikeDeclaration::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:ClassLikeDeclaration
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: ClassLikeDeclaration) -> *FunctionLikeDeclaration;
ClassLikeDeclaration::getSymbol
/**
* Gets the symbol associated with this node.
*/
- Parameter
self
:ClassLikeDeclaration
- Return
Symbol
pub fn getSymbol(self: ClassLikeDeclaration) -> Symbol;