🚧 Still under progress. Soon will be finished.

EnumMemberNode

CLASS code

Description

Represents the reflected node of an enum member

Methods

  • getName

    code

    The name of the enum member

    getName(): string

    Returns

    string:

    The name of the enum member

  • getValue

    code

    The value of the enum member

    getValue(): string | number

    Returns

    string | number:

    The value of the enum member

  • getContext

    code

    The 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

    code

    The line position where the enum member is defined

    getLine(): number

    Returns

    number:

    The start line position number

  • getTSNode

    code

    The original TypeScript node

    getTSNode(): EnumMember

    Returns

    EnumMember:

    The TypeScript AST node related to this reflected node

  • getJSDoc

    code

    The reflected documentation comment

    getJSDoc(): CommentNode

    Returns

    CommentNode:

    The JSDoc node

  • serialize

    code

    Serializes the reflected node

    serialize(): EnumMember

    Returns

    EnumMember:

    The reflected node as a serializable object