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