Description
Represents the reflected node of an enumerable declaration
Methods
-
getNodeType
codeThe reflected node kind
getNodeType(): RootNodeTypeReturns
RootNodeType:A declaration kind node
-
getKind
codeThe reflected declaration kind
getKind(): DeclarationKind.EnumReturns
DeclarationKind.Enum:An Enum kind node
-
getTSNode
codeThe original TypeScript node
getTSNode(): EnumDeclarationReturns
EnumDeclaration:The TypeScript AST node related to this reflected node
-
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(): ProjectContextReturns
ProjectContext:The analyser context
-
getName
codeGets the name of the enum declaration
getName(): stringReturns
string:The name of the enum declaration
-
getLine
codeThe line position where the node is defined
getLine(): numberReturns
number:The start line position number
-
getNamespace
codeThe namespace where the enum declaration is defined.
getNamespace(): stringReturns
string:The namespace name if found one, otherwise an empty string
-
getJSDoc
codeThe reflected documentation comment
getJSDoc(): CommentNodeReturns
CommentNode:The JSDoc node
-
getMembers
codeThe reflected members of the enum declaration
getMembers(): EnumMemberNode[]Returns
EnumMemberNode[]:The array of reflected enum members
-
serialize
codeSerializes the reflected node
serialize(): EnumDeclarationReturns
EnumDeclaration:The reflected node as a serializable object