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