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