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