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