🚧
Still under progress. Soon will be finished.
Description
Represents the reflected node of an enum member
Methods
-
getName
codeThe name of the enum member
getName(): string
Returns
string
:The name of the enum member
-
getValue
codeThe value of the enum member
getValue(): string | number
Returns
string | number
:The value of the enum member
-
getContext
codeThe context includes useful APIs that are shared across all the reflected symbols. Some APIs include the parsed configuration options, the system interface, the type checker
getContext(): ProjectContext
Returns
ProjectContext
:The analyser context
-
getLine
codeThe line position where the enum member is defined
getLine(): number
Returns
number
:The start line position number
-
getTSNode
codeThe original TypeScript node
getTSNode(): EnumMember
Returns
EnumMember
:The TypeScript AST node related to this reflected node
-
getJSDoc
codeThe reflected documentation comment
getJSDoc(): CommentNode
Returns
CommentNode
:The JSDoc node
-
serialize
codeSerializes the reflected node
serialize(): EnumMember
Returns
EnumMember
:The reflected node as a serializable object