UnionTypeNode

/**
* An union type node.
*/

Inherit from TypeNode

Primary key: id: int

schema UnionTypeNode extends TypeNode {
  @primary id: int
}

UnionTypeNode::getSymbol

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

UnionTypeNode::getAnAncestorEnclosingFunction

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

UnionTypeNode::getIndex

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

UnionTypeNode::getParentOid

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

UnionTypeNode::getRelativePath

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

UnionTypeNode::getLastChild

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

UnionTypeNode::getEndColumnNumber

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

UnionTypeNode::getParent

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

UnionTypeNode::getKind

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

UnionTypeNode::getAModifier

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

UnionTypeNode::getChildCount

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

UnionTypeNode::getDecorator

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

UnionTypeNode::getChild

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

UnionTypeNode::getAnAncestor

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

UnionTypeNode::getRoot

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

UnionTypeNode::getAType

pub fn getAType(self: UnionTypeNode) -> *TypeNode;

UnionTypeNode::getAChild

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

UnionTypeNode::getStartColumnNumber

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

UnionTypeNode::getStartLineNumber

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

UnionTypeNode::__all__

Data constraint method.

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

UnionTypeNode::getLocation

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

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

UnionTypeNode::getType

pub fn getType(self: UnionTypeNode, i: int) -> TypeNode;

UnionTypeNode::getText

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

UnionTypeNode::getEnclosingFunction

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

UnionTypeNode::getADescendant

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

UnionTypeNode::getEndLineNumber

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

UnionTypeNode::getATrailingComment

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

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

UnionTypeNode::getALeadingComment

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

UnionTypeNode::getFile

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

UnionTypeNode::getADecorator

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

UnionTypeNode::getAComment

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

UnionTypeNode::getModifier

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