TypeLiteralNode

/**
* A type literal node.
*/

Inherit from TypeNode

Primary key: id: int

schema TypeLiteralNode extends TypeNode {
  @primary id: int
}

TypeLiteralNode::getSymbol

/**
* Gets the symbol associated with this node.
*/
pub fn getSymbol(self: TypeLiteralNode) -> Symbol;

TypeLiteralNode::getAnAncestorEnclosingFunction

/**
* Gets an ancestor enclosing function of it
*/
pub fn getAnAncestorEnclosingFunction(self: TypeLiteralNode) -> *FunctionLikeDeclaration;

TypeLiteralNode::getIndex

pub fn getIndex(self: TypeLiteralNode) -> int;

TypeLiteralNode::getParentOid

/**
* Gets the parent oid of this node.
*/
pub fn getParentOid(self: TypeLiteralNode) -> int;

TypeLiteralNode::getRelativePath

/**
* Gets the relative path of this node.
*/
pub fn getRelativePath(self: TypeLiteralNode) -> string;

TypeLiteralNode::getLastChild

/**
* Gets the last child of this node parent.
*/
pub fn getLastChild(self: TypeLiteralNode) -> Node;

TypeLiteralNode::getEndColumnNumber

pub fn getEndColumnNumber(self: TypeLiteralNode) -> int;

TypeLiteralNode::getParent

/**
* Gets the parent node of this node.
*/
pub fn getParent(self: TypeLiteralNode) -> Node;

TypeLiteralNode::getChildCount

/**
* Gets the number of child nodes.
*/
pub fn getChildCount(self: TypeLiteralNode) -> int;

TypeLiteralNode::getDecorator

/**
* Gets the `i`th decorator.
*/
pub fn getDecorator(self: TypeLiteralNode, i: int) -> Decorator;

TypeLiteralNode::getEndLineNumber

pub fn getEndLineNumber(self: TypeLiteralNode) -> int;

TypeLiteralNode::getATrailingComment

/**
* Gets the trailing comments of it
*/
pub fn getATrailingComment(self: TypeLiteralNode) -> *Comment;

TypeLiteralNode::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: TypeLiteralNode, level: int) -> Node;

TypeLiteralNode::getChild

/**
* Gets the `i`th child of this node.
*/
pub fn getChild(self: TypeLiteralNode, i: int) -> Node;

TypeLiteralNode::getRoot

/**
* Gets the root top-level of this node. 
*/
pub fn getRoot(self: TypeLiteralNode) -> TopLevelDO;

TypeLiteralNode::getAChild

/**
* Gets a child node of this node.
*/
pub fn getAChild(self: TypeLiteralNode) -> *Node;

TypeLiteralNode::getStartColumnNumber

pub fn getStartColumnNumber(self: TypeLiteralNode) -> int;

TypeLiteralNode::getStartLineNumber

pub fn getStartLineNumber(self: TypeLiteralNode) -> int;

TypeLiteralNode::__all__

Data constraint method.

pub fn __all__(db: JavascriptDB) -> *TypeLiteralNode;

TypeLiteralNode::getLocation

/**
* Gets the location of this node.
*/
pub fn getLocation(self: TypeLiteralNode) -> Location;

TypeLiteralNode::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: TypeLiteralNode, level: int) -> *Node;

TypeLiteralNode::getKind

/**
* Get the syntax kind of this node
*/
pub fn getKind(self: TypeLiteralNode) -> int;

TypeLiteralNode::getAModifier

/**
* Gets a modifier.
*/
pub fn getAModifier(self: TypeLiteralNode) -> *Modifier;

TypeLiteralNode::getAnAncestor

/**
* Gets an ancestor of this node. 
*/
pub fn getAnAncestor(self: TypeLiteralNode) -> *Node;

TypeLiteralNode::getEnclosingFunction

/**
* Gets the enclosing function of it
*/
pub fn getEnclosingFunction(self: TypeLiteralNode) -> FunctionLikeDeclaration;

TypeLiteralNode::getADescendant

/**
* Gets a descendant of this node. 
*/
pub fn getADescendant(self: TypeLiteralNode) -> *Node;

TypeLiteralNode::getALeadingComment

/**
* Gets the leading comments of it
*/
pub fn getALeadingComment(self: TypeLiteralNode) -> *Comment;

TypeLiteralNode::getFile

/**
* Gets the file of this node.
*/
pub fn getFile(self: TypeLiteralNode) -> File;

TypeLiteralNode::getModifier

/**
* Gets the `i`th modifier.
*/
pub fn getModifier(self: TypeLiteralNode, i: int) -> Modifier;

TypeLiteralNode::getText

/**
* Gets the text of this node.
*/
pub fn getText(self: TypeLiteralNode) -> string;

TypeLiteralNode::getAComment

/**
* Gets the comments related to it
*/
pub fn getAComment(self: TypeLiteralNode) -> *Comment;

TypeLiteralNode::getADecorator

/**
* Gets a decorator.
*/
pub fn getADecorator(self: TypeLiteralNode) -> *Decorator;