OptionalTypeNode

/**
* An optional type node.
*/

Inherit from TypeNode

Primary key: id: int

schema OptionalTypeNode extends TypeNode {
  @primary id: int
}

OptionalTypeNode::getSymbol

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

OptionalTypeNode::getAnAncestorEnclosingFunction

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

OptionalTypeNode::getIndex

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

OptionalTypeNode::getParentOid

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

OptionalTypeNode::getRelativePath

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

OptionalTypeNode::getLastChild

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

OptionalTypeNode::getEndColumnNumber

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

OptionalTypeNode::getParent

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

OptionalTypeNode::getChildCount

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

OptionalTypeNode::getDecorator

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

OptionalTypeNode::getEndLineNumber

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

OptionalTypeNode::getATrailingComment

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

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

OptionalTypeNode::getChild

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

OptionalTypeNode::getRoot

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

OptionalTypeNode::getAChild

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

OptionalTypeNode::getStartColumnNumber

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

OptionalTypeNode::getStartLineNumber

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

OptionalTypeNode::__all__

Data constraint method.

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

OptionalTypeNode::getLocation

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

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

OptionalTypeNode::getKind

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

OptionalTypeNode::getAModifier

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

OptionalTypeNode::getAnAncestor

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

OptionalTypeNode::getEnclosingFunction

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

OptionalTypeNode::getADescendant

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

OptionalTypeNode::getALeadingComment

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

OptionalTypeNode::getFile

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

OptionalTypeNode::getModifier

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

OptionalTypeNode::getText

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

OptionalTypeNode::getAComment

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

OptionalTypeNode::getADecorator

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