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